masroore / pyscripter

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

PyScripter Crash - For Windowless PyQt #490

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Type the following code:
import sys
from PyQt4 import QtGui,QtCore
app = QtGui.QApplication(sys.argv)
ec=app.exec_()
sys.exit(ec)
2. save to some location.
3. run the code.

What is the expected output? What do you see instead?
As No Mainwindow displayed. PyQt app runs in background which in turns makes 
pyscripter goes to infinite loop.
There is no way I can kill my PyQt app running behind. All I have to 
do is Force kill/terminate pyscripter execution and restart.

Try this too..
While pyscripter goes disabled, modify the code and try saving the file. this 
will trough memory access violation errors and crashes pyscripter, even that 
goes to infinite loop and force us to kill pyscripter. its really annoying.

OK. I was using Internal Engine, If I do this is remote engine.
even that locks the scripter. But I have one chance.. I can Reinitalize Engine. 
In which I can get scripter back. But still its annoying.

Is there any way,I can handle these situation. Can we have button to force 
kill/all reinitialize engines with out crashing the pyscripter.

bcos, during debugging sessions. we do immideate corrections to the code and 
during that time it crashes pyscripter and doesnt save the changes. Its really 
annoying.

What version of the product are you using? On what operating system?
PYSCRIPTER 2.4.1 - PYTHON 2.6 - WIN 7, WIN XP

Original issue reported on code.google.com by kaymatrix on 13 Mar 2011 at 3:51

GoogleCodeExporter commented 9 years ago
Pyscript 2.4.1.0 for python 2.7.1 with PyQt 4.8.3-1 tried the same code and it 
didnt crashed it froze pyscripter for a moment and then came back i was able to 
kill the running code hitting ctrl+f2.
Ran on Windows 7 Service Pack 1

Original comment by guillerm...@gmail.com on 10 Apr 2011 at 1:50

GoogleCodeExporter commented 9 years ago
The recommended way to run GUI scripts is to use the remote Python engine.  If 
you need to terminate anything by force just reinitialize the Python engine.  
It is simple enough.

Original comment by pyscripter on 31 May 2011 at 11:44