[Eric] QProcess: Destroyed while process is still running.

Christof Hanke hanke at rzg.mpg.de
Tue Aug 7 10:33:11 BST 2007


Detlev Offenbach wrote:
> On Montag, 6. August 2007, Darren Dale wrote:
>> I am running eric4 on a system with Qt-4.3 and PyQt-4.3 on a 64 bit
>> computer. I frequently (maybe every 10 minutes or so) get a message that
>> says:
>>
>> QProcess: Destroyed while process is still running.
>>
>> I found a post on qt-interest that might be relevant, it suggests using
>> QProcess.close() rather than terminate(), but it is not clear that it
>> resolved that report:
>>
>> http://lists.trolltech.com/qt-interest/2007-06/thread00544-0.html
>>
>> Has anyone else seen this?
Me. But it was not that often, it varied quite a bit.
>>
> 
> When does the above happen? Do you have a project open at that time? Is the 
> project version controlled? What kind of VCS interface is used? What is the 
> settings of the VCS monitor thread? Any indication on what is happening at 
> the time you get this message could help to find the cause of the problem.
> 

The situation is quite similar (the same in terms of svn and 
pvn-version-numbers) to Darren's,
except I'm running it on 32bit.

Unfortunately I don't have a running eric4 anymore, since I wanted to 
recompile everything with --debug or similar and now PyQT4 doesn't 
produce me anymore a "Qsci.so" ... Don't know what I did last time to 
create it (I don't have the previous snapshot anymore)
What's more annoying is that with the new 
QScintilla-gpl-2-snapshot-20070722 my old eric4 segfaults now at startup 
:-(
(Well, I recompiled qt4 as well, but that didn't change between my last 
two tries).
I have removed the kde-bindings from the system.

Any hints ?

Christof

The Traceback of the segfault is :

# gdb --args /usr/bin/python /usr/lib/python2.5/site-packages/eric4/eric4.py
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/python 
/usr/lib/python2.5/site-packages/eric4/eric4.py
Failed to read a valid object file image from memory.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1211025728 (LWP 5994)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Qt: gdb: -nograb added to command-line options.
          Use the -dograb option to enforce grabbing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211025728 (LWP 5994)]
0xb752b842 in ?? () from /usr/lib/python2.5/site-packages/PyQt4/QtGui.so
(gdb) where
#0  0xb752b842 in ?? () from /usr/lib/python2.5/site-packages/PyQt4/QtGui.so
#1  0xb689f4d9 in sm_performSaveYourself (smd=0x82d3360) at 
kernel/qapplication_x11.cpp:4932
#2  0xb689f8eb in sm_saveYourselfCallback (smcConn=0x82cf968, 
clientData=0x82d3360, saveType=1, shutdown=0, interactStyle=0)
     at kernel/qapplication_x11.cpp:4881
#3  0xb78ca6f9 in _SmcProcessMessage () from /usr/lib/libSM.so.6
#4  0xb66e9d7c in IceProcessMessages () from /usr/lib/libICE.so.6
#5  0xb689f9ce in QSmSocketReceiver::socketActivated (this=0x82d34a0) at 
kernel/qapplication_x11.cpp:5020
#6  0xb689fa3f in QSmSocketReceiver::qt_metacall (this=0x82d34a0, 
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf9fde6c)
     at .moc/debug-shared/qapplication_x11.moc:63
#7  0xb79fd2ba in QMetaObject::activate (sender=0x82cf930, 
from_signal_index=4, to_signal_index=4, argv=0xbf9fde6c)
     at kernel/qobject.cpp:3066
#8  0xb79fd7eb in QMetaObject::activate (sender=0x82cf930, m=0xb7aaf970, 
local_signal_index=0, argv=0xbf9fde6c) at kernel/qobject.cpp:3125
#9  0xb7a25218 in QSocketNotifier::activated (this=0x82cf930, _t1=11) at 
.moc/debug-shared/moc_qsocketnotifier.cpp:80
#10 0xb7a08e35 in QSocketNotifier::event (this=0x82cf930, e=0xbf9fe3d8) 
at kernel/qsocketnotifier.cpp:304
#11 0xb68344dd in QApplicationPrivate::notify_helper (this=0x82a55b8, 
receiver=0x82cf930, e=0xbf9fe3d8) at kernel/qapplication.cpp:3538
#12 0xb68347f6 in QApplication::notify (this=0x82a5528, 
receiver=0x82cf930, e=0xbf9fe3d8) at kernel/qapplication.cpp:3097
#13 0xb74bcd03 in initQtGui () from 
/usr/lib/python2.5/site-packages/PyQt4/QtGui.so
#14 0xb79e9a10 in QCoreApplication::notifyInternal (this=0x82a5528, 
receiver=0x82cf930, event=0xbf9fe3d8)
     at kernel/qcoreapplication.cpp:509
#15 0xb79ed559 in QCoreApplication::sendEvent (receiver=0x82cf930, 
event=0xbf9fe3d8)
     at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
#16 0xb7a16b58 in QEventDispatcherUNIX::activateSocketNotifiers 
(this=0x82afec0) at kernel/qeventdispatcher_unix.cpp:831
#17 0xb7a18dad in QEventDispatcherUNIXPrivate::doSelect (this=0x82affe8, 
flags=@0xbf9fe58c, timeout=0xbf9fe578)
#17 0xb7a18dad in QEventDispatcherUNIXPrivate::doSelect (this=0x82affe8, 
flags=@0xbf9fe58c, timeout=0xbf9fe578)
     at kernel/qeventdispatcher_unix.cpp:230
#18 0xb7a18f93 in QEventDispatcherUNIX::processEvents (this=0x82afec0, 
flags=@0xbf9fe6ac) at kernel/qeventdispatcher_unix.cpp:873
#19 0xb68dbfeb in QEventDispatcherX11::processEvents (this=0x82afec0, 
flags=@0xbf9fe6e8) at kernel/qeventdispatcher_x11.cpp:132
#20 0xb79e7168 in QCoreApplication::processEvents (flags=@0xbf9fe744) at 
kernel/qcoreapplication.cpp:659
#21 0xb7b87a66 in initQtCore () from 
/usr/lib/python2.5/site-packages/PyQt4/QtCore.so
#22 0xb7edaddd in PyCFunction_Call () from /usr/lib/libpython2.5.so.1.0
#23 0xb7f232bf in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#24 0xb7f2308b in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#25 0xb7f2308b in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#26 0xb7f24734 in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#27 0xb7f247b3 in PyEval_EvalCode () from /usr/lib/libpython2.5.so.1.0
#28 0xb7f3cb66 in Py_CompileString () from /usr/lib/libpython2.5.so.1.0
#29 0xb7f3cc1e in PyRun_FileExFlags () from /usr/lib/libpython2.5.so.1.0
#30 0xb7f3e2a8 in PyRun_SimpleFileExFlags () from 
/usr/lib/libpython2.5.so.1.0
#31 0xb7f3ea0a in PyRun_AnyFileExFlags () from /usr/lib/libpython2.5.so.1.0
#32 0xb7f47ea3 in Py_Main () from /usr/lib/libpython2.5.so.1.0
#33 0x080485f2 in main ()
(gdb) info threads
* 1 Thread -1211025728 (LWP 5994)  0xb752b842 in ?? () from 
/usr/lib/python2.5/site-packages/PyQt4/QtGui.so


More information about the Eric mailing list