← Back to team overview

yade-users team mailing list archive

Re: [Question #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

 

Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Christian Jakob posted a new comment:
I found out, that fusionDetection=True is running, when no particle is
deleted. If particles are deleted, e.g. using updSph()

def updSph(rad=1.0):
	i = 0
	for ii in sphID:
		tempID = O.bodies.append(utils.sphere([O.bodies[ii].state.pos[0],O.bodies[ii].state.pos[1],O.bodies[ii].state.pos[2]], material=O.bodies[ii].material.id, radius=O.bodies[ii].shape.radius*rad))
		sphID[i] = tempID
		O.bodies.erase(ii)
		i+=1

, then there is a segmentation fault:

me@debian ~/YADE/my-yade-projects/06-converted-PFC-model >/home/me/YADE/YADE-CapTest-Debug/bin/yade-unknown --debug 2-relaxation.py 
Welcome to Yade unknown (debug build)
TCP python prompt on localhost:9001, auth cookie `cskuea'
XMLRPC info provider on http://localhost:21001
Running script 2-relaxation.py

radius of particles increased by factor 2.000000, step 1 of 5
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-RIsqC1/tmp-0'
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f62865ef700 (LWP 3159)]
[New Thread 0x7f6296f04700 (LWP 3155)]
[New Thread 0x7f6297705700 (LWP 3154)]
0x00007f62bbdf286d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82      ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht gefunden.
        in ../sysdeps/unix/syscall-template.S
Current language:  auto
The current source language is "auto; currently asm".
Thread ID 0 not known.

Thread 4 (Thread 0x7f6297705700 (LWP 3154)):
#0  0x00007f62bacb51a3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00000000004f7fd3 in ?? ()
#2  0x00000000004a7ba5 in PyEval_EvalFrameEx ()
#3  0x00000000004a95c1 in PyEval_EvalCodeEx ()
#4  0x00000000004a7752 in PyEval_EvalFrameEx ()
#5  0x00000000004a95c1 in PyEval_EvalCodeEx ()
#6  0x0000000000538a10 in ?? ()
#7  0x000000000041ef47 in PyObject_Call ()
#8  0x0000000000427c1f in ?? ()
#9  0x000000000041ef47 in PyObject_Call ()
#10 0x00000000004a1a53 in PyEval_CallObjectWithKeywords ()
#11 0x00007f629770fcab in ?? () from /usr/lib/pymodules/python2.6/sip.so
#12 0x00007f62979b6498 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#13 0x00007f62979e668a in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#14 0x00007f62b6d60e15 in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f62bbdea8ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007f62bacbb92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f6296f04700 (LWP 3155)):
#0  0x00007f62bacb51a3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00000000004f7fd3 in ?? ()
#2  0x00000000004a7ba5 in PyEval_EvalFrameEx ()
#3  0x00000000004a95c1 in PyEval_EvalCodeEx ()
#4  0x00000000004a7752 in PyEval_EvalFrameEx ()
#5  0x00000000004a95c1 in PyEval_EvalCodeEx ()
#6  0x0000000000538a10 in ?? ()
#7  0x000000000041ef47 in PyObject_Call ()
#8  0x0000000000427c1f in ?? ()
#9  0x000000000041ef47 in PyObject_Call ()
#10 0x00000000004a1a53 in PyEval_CallObjectWithKeywords ()
#11 0x00007f629770fcab in ?? () from /usr/lib/pymodules/python2.6/sip.so
#12 0x00007f62979b6498 in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#13 0x00007f62979e668a in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtCore.so
#14 0x00007f62b6d60e15 in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f62bbdea8ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007f62bacbb92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f62865ef700 (LWP 3159)):
#0  0x00007f62bac8c63d in __libc_waitpid (pid=3160, stat_loc=<value optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1  0x00007f62bac2a2c9 in do_system (line=<value optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f62bac2a600 in __libc_system (line=<value optimized out>) at ../sysdeps/posix/system.c:190
#3  0x00007f62b9eff88a in crashHandler (sig=11) at core/main/pyboot.cpp:45
#4  <signal handler called>
#5  0x00007f62a0fd807b in Law2_ScGeom_CapillaryPhys_Capillarity::checkFusion (this=0x2677240) at /home/me/YADE/trunk/pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity.cpp:295
#6  0x00007f62a0fd74b7 in Law2_ScGeom_CapillaryPhys_Capillarity::action (this=0x2677240) at /home/me/YADE/trunk/pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity.cpp:178
#7  0x00007f62b16bb3a5 in Scene::moveToNextTimeStep (this=0x26725b0) at /home/me/YADE/trunk/core/Scene.cpp:97
#8  0x00007f62b16c28e5 in SimulationFlow::singleAction (this=0xe46550) at /home/me/YADE/trunk/core/SimulationFlow.cpp:20
#9  0x00007f62b16c3e7e in ThreadWorker::callSingleAction (this=0xe46550) at /home/me/YADE/trunk/core/ThreadWorker.cpp:71
#10 0x00007f62b16c33e3 in ThreadRunner::call (this=0x26728b0) at /home/me/YADE/trunk/core/ThreadRunner.cpp:53
#11 0x00007f62b16c3125 in ThreadRunner::run (this=0x26728b0) at /home/me/YADE/trunk/core/ThreadRunner.cpp:27
#12 0x00007f62b179823d in boost::_mfi::mf0<void, ThreadRunner>::operator() (this=0x2f596e8, p=0x26728b0) at /usr/include/boost/bind/mem_fn_template.hpp:49
#13 0x00007f62b1787f18 in boost::_bi::list1<boost::_bi::value<ThreadRunner*> >::operator()<boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list0> (this=0x2f596f8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#14 0x00007f62b1776f3b in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list1<boost::_bi::value<ThreadRunner*> > >::operator() (this=0x2f596e8) at /usr/include/boost/bind/bind_template.hpp:20
#15 0x00007f62b1763284 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list1<boost::_bi::value<ThreadRunner*> > >, void>::invoke (function_obj_ptr=...) at /usr/include/boost/function/function_template.hpp:153
#16 0x00007f62b183eef3 in boost::function0<void>::operator() (this=0x2f596e0) at /usr/include/boost/function/function_template.hpp:1013
#17 0x00007f62b18179f2 in boost::detail::thread_data<boost::function0<void> >::run (this=0x2f595b0) at /usr/include/boost/thread/detail/thread.hpp:56
#18 0x00007f62b9621200 in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0
#19 0x00007f62bbdea8ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#20 0x00007f62bacbb92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#21 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f62bc1f6700 (LWP 3149)):
#0  0x00007f62bbdf286d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f629dce1f66 in pyOmega::wait (this=0xdc6b10) at py/wrapper/yadeWrapper.cpp:370
#2  0x00007f629dce1ac0 in pyOmega::run (this=0xdc6b10, numIter=3000, doWait=true) at py/wrapper/yadeWrapper.cpp:364
#3  0x00007f629ddf8384 in boost::python::detail::invoke<int, void (pyOmega::*)(long, bool), boost::python::arg_from_python<pyOmega&>, boost::python::arg_from_python<long>, boost::python::arg_from_python<bool> > (f=@0xecd828, tc=..., ac0=..., ac1=...) at /usr/include/boost/python/detail/invoke.hpp:94
#4  0x00007f629ddd931a in boost::python::detail::caller_arity<3u>::impl<void (pyOmega::*)(long, bool), boost::python::default_call_policies, boost::mpl::vector4<void, pyOmega&, long, bool> >::operator() (this=0xecd828, args_=0x23f7af0) at /usr/include/boost/python/detail/caller.hpp:223
#5  0x00007f629ddb6549 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<void (pyOmega::*)(long, bool), boost::python::default_call_policies, boost::mpl::vector4<void, pyOmega&, long, bool> > >::operator() (this=0xecd820, args=0x23f7af0, kw=0x0) at /usr/include/boost/python/object/py_function.hpp:38
#6  0x00007f62b85d9bde in boost::python::objects::function::call(_object*, _object*) const () from /usr/lib/libboost_python-py26.so.1.42.0
#7  0x00007f62b85d9e88 in ?? () from /usr/lib/libboost_python-py26.so.1.42.0
#8  0x00007f62b85e14fb in boost::python::handle_exception_impl(boost::function0<void>) () from /usr/lib/libboost_python-py26.so.1.42.0
#9  0x00007f62b85d6788 in ?? () from /usr/lib/libboost_python-py26.so.1.42.0
#10 0x000000000041ef47 in PyObject_Call ()
#11 0x00000000004a72b8 in PyEval_EvalFrameEx ()
#12 0x00000000004a95c1 in PyEval_EvalCodeEx ()
#13 0x00000000004a9692 in PyEval_EvalCode ()
#14 0x00000000004c98be in PyRun_FileExFlags ()
#15 0x00000000004a0b87 in ?? ()
#16 0x00000000004a7ba5 in PyEval_EvalFrameEx ()
#17 0x00000000004a95c1 in PyEval_EvalCodeEx ()
#18 0x00000000004a7752 in PyEval_EvalFrameEx ()
#19 0x00000000004a95c1 in PyEval_EvalCodeEx ()
#20 0x00000000004a7752 in PyEval_EvalFrameEx ()
#21 0x00000000004a95c1 in PyEval_EvalCodeEx ()
#22 0x00000000004a9692 in PyEval_EvalCode ()
#23 0x00000000004c98be in PyRun_FileExFlags ()
#24 0x00000000004c9ad4 in PyRun_SimpleFileExFlags ()
#25 0x000000000041a6bd in Py_Main ()
#26 0x00007f62bac0ac8d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffaf4ba2c8) at libc-start.c:228
#27 0x00000000004198d9 in _start ()
Current language:  auto
The current source language is "auto; currently c".
Current language:  auto
The current source language is "auto; currently asm".
Speicherzugriffsfehler

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.