[Python-apps-team] Bug#522317: spe (tools->run / dialog) python got 99% cpu
Matthias Fulz
olz1983 at googlemail.com
Thu Apr 2 18:46:13 UTC 2009
Package: spe
Version: 0.8.4.h-1
Hi in spe the tools->run dialog dont works and give errors. The run in
terminal works fine.
I found out that the problem occures cause spe is using python-wxgtk2.6
by default here is the output i got with debugging flag:
spe --debug
SPE v0.8.4.h (c)2003-2008 www.stani.be
If spe fails to start:
- type "python SPE.py --debug > debug.txt 2>&1" at the command prompt
(or if you use tcsh: "python SPE.py --debug >& debug.txt")
- send debug.txt with some info to spe.stani.be[at]gmail.com
Blender support disabled (run SPE inside Blender to enable).
Encrypted debugging enabled.
Spe is running in debugging mode with this configuration:
- platform : linux2
- python : 2.5.4
- wxPython : 2.6.3.2
- interface : <default>
- encoding : UTF8
Launching single instance application (with xml-rpc server) ...
20:39:26: Deleted stale lock file '/home/olz/SPE 0.8.4.holz'.
Create: Framework: menu.
Create: Framework: toolbar.
Create: Framework: statusbar.
(python:12611): Gdk-CRITICAL **: gdk_draw_drawable: assertion `src !=
NULL' failed
Creating tabs...
Shell
Locals
Session
Output
Find
Browser
Recent
Todo
Index
Notes
Donate
Opening /home/olz/Projects/PythonTraining/01.py
Create: MdiSplit: <class 'sm.wxp.smdi.MdiSplitChildFrame'> 01.py
/home/olz/Projects/PythonTraining/01.py
Create: Sdi: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.tabs
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event: Parent: <class 'Parent.Panel'>.onSize
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event: Parent: <class 'Parent.Panel'>.onMove
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Move
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)
Event: Parent: <class 'Parent.Panel'>.onActivate
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event: Parent: <class 'Parent.Panel'>.onSize
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
Event<: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event>: Framework: <class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size
Event: Child: /home/olz/Projects/PythonTraining/01.py: <class
'Child.Panel'>.onKillFocus(dead=False)
Traceback (most recent call last):
File "/usr/share/spe/_spe/Menu.py", line 489, in
menu_run_without_arguments
self.app.parentPanel.run_with_arguments()
File "/usr/share/spe/_spe/Parent.py", line 787, in run_with_arguments
self.output.Execute("""%(python)s -u
%(label)s"""%params,label=label,beep=beep)
File "/usr/share/spe/_spe/tabs/Output.py", line 57, in Execute
self.Bind(wx.EVT_TEXT_COPY,self.Copy)
AttributeError: 'module' object has no attribute 'EVT_TEXT_COPY'
Traceback (most recent call last):
File "/usr/share/spe/_spe/tabs/Output.py", line 121, in OnIdle
if self.inputstream.CanRead():
AttributeError: 'Panel' object has no attribute 'inputstream'
Traceback (most recent call last):
File "/usr/share/spe/_spe/tabs/Output.py", line 121, in OnIdle
if self.inputstream.CanRead():
AttributeError: 'Panel' object has no attribute 'inputstream'
the above last 4 lines are repeating and causing to push the cpu to its
limit....
I found following solution / workaround:
in /usr/share/spe/_spe/SPE.py change the following line to:
MIN_WX_VERSION = '2.8'
Now everything is working as it should.
Perhaps change Dependency in spe package to python-wxgtk2.8 ?
Im using Deibian 5.0 (Sid), kernel 2.6.26-1-686, libc6 2.9-6
but the error I mentioned occured also on Lenny (stable) and testing.
Greetz
matthias
More information about the Python-apps-team
mailing list