thegooglecodearchive / editra-plugins

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

Windows 7 32bit Editra Repo Revision 75344 PyStudio activated PyDebug tab Crash on Python file load/save #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?
PyStudio

What steps will reproduce the problem?
1. Start with Windows 7 32 bit (Enterprise)
2. Install from python.org the 2.7.6 version for 32 bit windows:
...
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on 
win32
...
3. Using subversion, download Revision 75344 of Editra
4. Use command -- python setup.py install -- from inside the downloaded Editra 
subversion repository
5. Run Editra from command prompt (editra <CR>) and configure it -- I need 
authenticating proxy to get to the network -- Install the PyStudio plugin 
(version 0.7)
6. Restart as requested to enable plugin to be loaded next time Editra starts
7. Enable/View Shelf, Enable/Add-to-Shelf all the PyStudio Tabs
8. Open a python file *or* create a new python file and save it
9. **CRASH** (normally pythonw.exe has stopped as its run in editra.bat) or if 
you force 'python.exe editra' then python.exe crashes the same way as 
pythonw.exe

10. Disable/Turn Off the PyDebug Tab from Pystudio
11. Repeat Step 8. above
12. NO CRASH
13. Disable/Turn Off/On all the Shelf Tabs (such as PyShell, etc.) to create 
multiple permutations of editra state and repeat Step 8. above
14. NO CRASH until you enable the PyDebug Tab then CRASH

What is the expected output? What do you see instead?
File Loads or File Saves. Instead pythonw.exe or python.exe stops working/crash

What version of Editra are you using? On what operating system?
v0.7.20 (svn Revision 75344) on Windows 7 32bit Enterprise

Please provide any additional information below.
I was running Editra v0.7.20 from the binary from Editra's website. However 
this did not use the system python, so all my modules I installed in the system 
python where not available to the PyShell Tab which ran an older version of 
Python 2.7 series.  In order to develop to the same version and modules as the 
system python I am installing Editra from repository source, however I now can 
not save or load python files with debugging support provided by the PyStudio 
plugin.

Original issue reported on code.google.com by peterdil...@gmail.com on 4 Dec 2013 at 2:31

GoogleCodeExporter commented 9 years ago
I've done some more testing and started looking outside of Editra.

I run the Windows Classic theme in Windows 7.

I switched the theme to Windows 7 Basic and launched Editra and opened a python 
file with the PyDebug Tab enabled and it worked this time with no crash.

I then switched the them back to Windows Classic and launched Editra and opened 
a python file with the PyDebug Tab enabled and it crashed again.

This may be an issue higher up the software stack in the Editra dependencies 
such as wxwidgets?

Original comment by peterdil...@gmail.com on 4 Dec 2013 at 4:03

GoogleCodeExporter commented 9 years ago
Possibly I do seem to remember some similar sounding issues reported to 
wxwidgets before for other things.

So just to be clear, the crash only happens when the Debug Window is open?

And saving a file can trigger the crash?

Original comment by CodyPrec...@gmail.com on 4 Dec 2013 at 4:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Yes. It you type some code into the editor window and then save it triggers a 
crash. Also triggers if you load a file into the editor.

Yes. Having the Debug tab open is required for triggering the crash.

And at least on my system, having the windows desktop theme set to Windows 
Classic is required to trigger the crash.

Original comment by peterdil...@gmail.com on 4 Dec 2013 at 7:03

GoogleCodeExporter commented 9 years ago
Looking over the code and nothing is really jumping out. If you want to debug 
further you can try running a local copy of Editra with a 'develop' mode 
version of the PyStudio plugin setup in it and try to add some print statements 
or something to narrow it down further.

When a file is saved the only thing that appears to get invoked after a short 
delay is the UpdateForEditorMethod in the MessageHandler class that is found in 
PyStudios Debugger subsystem.

If this is a hard crash that your getting it would seem that it may possibly be 
related to some sort of thread safety issue but as far as I can tell all of 
this code on this path gets executed the main thread so it may be something in 
how Windows behaves differently between what theme is enabled.

Original comment by CodyPrec...@gmail.com on 4 Dec 2013 at 7:46