PiRSquared17 / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Launch plugin: SDL windows don't close when Python script is aborted #623

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using libtcod ( http://doryen.eptalys.net/libtcod/ ), which in turn uses 
SDL. Unfortunately, I have no other experience with SDL, and I'm not sure 
whether this is a libtcod-specific issue or a general SDL one.

What steps will reproduce the problem?
1. Download libtcod and place the files libtcodpy.py, libtcod.so, and 
terminal.png in the same directory.
2. Download the attached script and place it in the same directory.
3. Open Editra, and run the script using the Launch plugin. A small, blank 
window should appear, titled "Test."
4. Press Abort.

What is the expected output? What do you see instead?
The script should abort, and the SDL window should disappear with it. However, 
although the script appears to abort, the SDL window remains.

Even worse, after I force close the SDL window, a ghost python process starts 
hogging extreme amounts of CPU.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?

Running SVN r67079 on Ubuntu 10.10 (32-bit)

What method of install was your version installed with (Binary/Source)?

I installed directly from the source code.

If from source: What version of python and wxPython are you using?

Python 2.6.6, wxPython 2.8.11.0

Please provide any additional information below.

Original issue reported on code.google.com by when.pos...@gmail.com on 27 Feb 2011 at 11:04

Attachments:

GoogleCodeExporter commented 9 years ago
Not sure if this is an Editra issue or not.

The Launch Plugin will attempt to kill the processes and then it will 
disconnect from it. If the process does not listen to the kill request there is 
not much that can be done from Editra itself.

May want to look into the libtcodtest code to see if it is doing any special 
SIG_KILL handling that may prevent it from being closed.

Will leave this issue open for further verification for now

Original comment by CodyPrec...@gmail.com on 28 Feb 2011 at 8:38

GoogleCodeExporter commented 9 years ago
Closing this issue as it doesn't appear to be an issue with Editra itself. If 
the process is ignoring the SIG_KILL message there isn't much else that can be 
done unfortunately. Feel free to reopen if more information becomes available.

Original comment by CodyPrec...@gmail.com on 10 Apr 2011 at 5:28