thegooglecodearchive / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 1 forks source link

Ticket for tracking crashes in PyTools during dev #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This ticket is to help with tracking crashes in the PyTools plugin during 
development.

1) While closing Editra (wxPy2.9.1.1) - seems EVT_SHOW is getting sent after 
some of the window objects have been destroyed. Add separate handler and only 
handle during the show event and not during the hide event.

*** Mon Apr 04 08:42:53 2011 ***
Traceback (most recent call last):
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\plugins\editra-plugin
s\pytools\PyTools\Debugger\DebugShelfWindow.py", line 124, in <lambda>
    self.Bind(wx.EVT_SHOW, lambda evt: self.OnButtonsUpdate(), self)
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\plugins\editra-plugin
s\pytools\PyTools\Debugger\DebugShelfWindow.py", line 180, in OnButtonsUpdate
    self._onbuttonsupdate(False)
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\plugins\editra-plugin
s\pytools\PyTools\Debugger\DebugShelfWindow.py", line 160, in _onbuttonsupdate
    self.taskbtn.Enable(not attached)
  File "C:\Python26\lib\site-packages\wx-2.9.1-msw\wx\_core.py", line 16237, in
__getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
PyDeadObjectError: The C++ part of the PlateButton object has been deleted, attr
ibute access no longer allowed.

Original issue reported on code.google.com by CodyPrec...@gmail.com on 4 Apr 2011 at 1:55

GoogleCodeExporter commented 9 years ago
Above issue corrected in latest svn

Original comment by CodyPrec...@gmail.com on 4 Apr 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Issue 2: Attach to script then close Editra

*** Mon Apr 04 13:18:49 2011 ***
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\wx-2.9.1-msw\wx\_core.py", line 16291, in
<lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\plugins\editra-plugin
s\pytools\PyTools\Debugger\RpdbStateManager.py", line 57, in callback_state
    self.rpdb2debugger.processcreator.AddText(self.rpdb2debugger.debuggerdetache
dtext)
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\src\eclib\outbuff.py"
, line 323, in AppendUpdate
    self._updating.acquire()
  File "C:\Python26\lib\site-packages\wx-2.9.1-msw\wx\_core.py", line 16237, in
__getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
PyDeadObjectError: The C++ part of the DebuggeeWindow object has been deleted, a
ttribute access no longer allowed.

Original comment by CodyPrec...@gmail.com on 4 Apr 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Got this one under the following scenario

1) Debug a script
2) Abort debug when stopped on breakpoint
3) Close debug window
4) Close Variables window
5) Close Stack window
6) Crash occured at this point, guess is from some async callback calling on 
one of the deleted shelf windows.

*** Mon Apr 18 21:09:55 2011 ***
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 14640, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Users\cody\Desktop\Editra\plugins\editra-plugins\pytools\PyTools\Debugger\RpdbStateManager.py", line 57, in callback_state
    self.rpdb2debugger.processcreator.AddText(self.rpdb2debugger.debuggerdetachedtext)
  File "C:\Users\cody\Desktop\Editra\src\eclib\outbuff.py", line 323, in AppendUpdate
    self._updating.acquire()
  File "C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 14590, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
PyDeadObjectError: The C++ part of the DebuggeeWindow object has been deleted, 
attribute access no longer allowed.

Original comment by CodyPrec...@gmail.com on 19 Apr 2011 at 2:14

GoogleCodeExporter commented 9 years ago
Issue noted in Comment 2 above corrected in latest svn

Original comment by CodyPrec...@gmail.com on 20 Apr 2011 at 1:28

GoogleCodeExporter commented 9 years ago
All above issues appear to be fixed with latest svn

Noting one more inconsistancy to investigate:

1) Open Debug window
2) Click start button
3) While its attaching close the debug window
4) Notice that the attach continues and that the first breakpoint will be hit
5) Reopening the debug window allows user to regain control over the debug 
session

Seems that the attach should either be aborted or canceled when the debug 
window is destroyed.

* possibly should add callbacks to shelf to check if a window can be closed. As 
a better solution may be to disallow closing the tab until after the attach 
completes. Needs further evaluation.

Original comment by CodyPrec...@gmail.com on 20 Apr 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Additional not on above post:

Clicking Stop Debugging on the newly opened Debug window raises the following 
error:

*** Wed Apr 20 15:28:44 2011 ***
Traceback (most recent call last):
  File "C:\Documents and Settings\cjprecord\Desktop\Editra\plugins\editra-plugin
s\pytools\PyTools\Debugger\DebugShelfWindow.py", line 341, in OnAbort
    self.abortfn()
AttributeError: 'DebugShelfWindow' object has no attribute 'abortfn'

Original comment by CodyPrec...@gmail.com on 20 Apr 2011 at 8:37

GoogleCodeExporter commented 9 years ago
Open PyExpressions shelf. Debug program.

You get error:
  File "build\bdist.win32\egg\PyTools\Debugger\ExpressionsList.py", line 120, in clearexpressionvalues
AttributeError: 'ExpressionsList' object has no attribute '_data'

Original comment by rans1...@gmail.com on 28 Apr 2011 at 1:14

GoogleCodeExporter commented 9 years ago
Error above fixed

Original comment by rans1...@gmail.com on 28 Apr 2011 at 7:05

GoogleCodeExporter commented 9 years ago
Regarding comment 6 
http://code.google.com/p/editra-plugins/issues/detail?id=166#c6

I have initialised self.abortfn

Original comment by rans1...@gmail.com on 28 Apr 2011 at 7:22

GoogleCodeExporter commented 9 years ago
5 now fixed

Original comment by rans1...@gmail.com on 5 May 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Closing this as initial release has been made open new tickets for all future 
crash reports.

Original comment by CodyPrec...@gmail.com on 23 May 2011 at 3:44