Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91835 > unrolled thread

Python.exe has stopped working

Started byAlexis Dubois <alex@duboaa.net>
First post2015-06-02 06:09 -0700
Last post2015-06-05 09:24 -0700
Articles 8 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-02 06:09 -0700
    Re: Python.exe has stopped working Laura Creighton <lac@openend.se> - 2015-06-02 16:12 +0200
      Re: Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-02 07:29 -0700
    Re: Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-05 02:03 -0700
      Re: Python.exe has stopped working Christian Gollwitzer <auriocus@gmx.de> - 2015-06-05 11:15 +0200
        Re: Python.exe has stopped working Laura Creighton <lac@openend.se> - 2015-06-06 13:39 +0200
          [Solved] Python.exe has stopped working Alexis Dubois <alex@duboaa.net> - 2015-06-19 00:01 -0700
      Re: Python.exe has stopped working Stephen Hansen <me+python@ixokai.io> - 2015-06-05 09:24 -0700

#91835 — Python.exe has stopped working

FromAlexis Dubois <alex@duboaa.net>
Date2015-06-02 06:09 -0700
SubjectPython.exe has stopped working
Message-ID<8a6ed08d-7dd6-4a4a-a466-9d3ad98f8dff@googlegroups.com>
Hello !

I have this kind of message every time I quit my PyQt4 app whatever the method to quit is: a quit action menu, the windows "red cross", by quit(), close(), destroy(), deletelater(), ...

"python.exe has stopped working"
->Check online for a solution
->Close the program

I need to specify that the app is working nice, just have this message when quit.
Do you have an idea to help me understand this issue?

Thanks in advance
Best regards
Alexis

[toc] | [next] | [standalone]


#91842

FromLaura Creighton <lac@openend.se>
Date2015-06-02 16:12 +0200
Message-ID<mailman.62.1433254395.13271.python-list@python.org>
In reply to#91835
In a message of Tue, 02 Jun 2015 06:09:34 -0700, Alexis Dubois writes:
>Hello !
>
>I have this kind of message every time I quit my PyQt4 app whatever the method to quit is: a quit action menu, the windows "red cross", by quit(), close(), destroy(), deletelater(), ...
>
>"python.exe has stopped working"
>->Check online for a solution
>->Close the program
>
>I need to specify that the app is working nice, just have this message when quit.
>Do you have an idea to help me understand this issue?
>
>Thanks in advance
>Best regards
>Alexis
>-- 
>https://mail.python.org/mailman/listinfo/python-list

You can override closeEvent

def closeEvent(self, event):
    QtGui.qApp.quit()
        event.ignore()

This just shuts it up, you may have more complicated things you want to do.

Laura


[toc] | [prev] | [next] | [standalone]


#91844

FromAlexis Dubois <alex@duboaa.net>
Date2015-06-02 07:29 -0700
Message-ID<7c4cd02a-adfa-44c1-80f6-406b3447fb0c@googlegroups.com>
In reply to#91842
On Tuesday, June 2, 2015 at 4:13:27 PM UTC+2, Laura Creighton wrote:
> In a message of Tue, 02 Jun 2015 06:09:34 -0700, Alexis Dubois writes:
> >Hello !
> >
> >I have this kind of message every time I quit my PyQt4 app whatever the method to quit is: a quit action menu, the windows "red cross", by quit(), close(), destroy(), deletelater(), ...
> >
> >"python.exe has stopped working"
> >->Check online for a solution
> >->Close the program
> >
> >I need to specify that the app is working nice, just have this message when quit.
> >Do you have an idea to help me understand this issue?
> >
> >Thanks in advance
> >Best regards
> >Alexis
> >-- 
> >https://mail.python.org/mailman/listinfo/python-list
> 
> You can override closeEvent
> 
> def closeEvent(self, event):
>     QtGui.qApp.quit()
>         event.ignore()
> 
> This just shuts it up, you may have more complicated things you want to do.
> 
> Laura

Thanks Laura,

Unfortunately, my closeEvent is already override as this:

def closeEvent(self, event):        
        reply = QtGui.QMessageBox.question(self, 'Message',
            "Are you sure to quit HWL?", QtGui.QMessageBox.Yes | 
            QtGui.QMessageBox.No, QtGui.QMessageBox.No)

        if reply == QtGui.QMessageBox.Yes:
            app.quit()
        else:
            event.ignore()

Replacing app.quit() by QtGui.qApp.quit() doesn't change anything.

[toc] | [prev] | [next] | [standalone]


#92128

FromAlexis Dubois <alex@duboaa.net>
Date2015-06-05 02:03 -0700
Message-ID<c5370bc0-00ee-49be-9ecd-2e25008a78c5@googlegroups.com>
In reply to#91835
Anyone else for an idea on that?

[toc] | [prev] | [next] | [standalone]


#92129

FromChristian Gollwitzer <auriocus@gmx.de>
Date2015-06-05 11:15 +0200
Message-ID<mkrp99$b6d$1@dont-email.me>
In reply to#92128
Am 05.06.15 um 11:03 schrieb Alexis Dubois:
> Anyone else for an idea on that?
>
Well, it is a crash on exit. Looks like a memory error inside of PyQT. 
If you've got the time, you could run it inside of a debugger, or 
better, a memory checker like AppVerifier to find the culprit. These 
things are usually quite hard to diagnose, and unless someone has seen 
it here already, the fun starts now ;) Another possible reason might be 
mixing up DLLs from PyQT and another QT installation. You can find out 
by listing all loaded DLLs when the program is running, e.g. from a 
debugger or this tool: 
https://technet.microsoft.com/sysinternals/bb896653.aspx

	Christian

[toc] | [prev] | [next] | [standalone]


#92181

FromLaura Creighton <lac@openend.se>
Date2015-06-06 13:39 +0200
Message-ID<mailman.216.1433590803.13271.python-list@python.org>
In reply to#92129
In a message of Fri, 05 Jun 2015 11:15:31 +0200, Christian Gollwitzer writes:
>Am 05.06.15 um 11:03 schrieb Alexis Dubois:
>> Anyone else for an idea on that?
>>
>Well, it is a crash on exit. Looks like a memory error inside of PyQT. 
>If you've got the time, you could run it inside of a debugger, or 
>better, a memory checker like AppVerifier to find the culprit. These 
>things are usually quite hard to diagnose, and unless someone has seen 
>it here already, the fun starts now ;) Another possible reason might be 
>mixing up DLLs from PyQT and another QT installation. You can find out 
>by listing all loaded DLLs when the program is running, e.g. from a 
>debugger or this tool: 
>https://technet.microsoft.com/sysinternals/bb896653.aspx
>
>	Christian
>-- 
>https://mail.python.org/mailman/listinfo/python-list

I don't have a windows machine, so I cannot do any more looking for this,
but this may be relevant.
http://stackoverflow.com/questions/20102419/pyqt-5-error-on-exit

Laura

[toc] | [prev] | [next] | [standalone]


#92872 — [Solved] Python.exe has stopped working

FromAlexis Dubois <alex@duboaa.net>
Date2015-06-19 00:01 -0700
Subject[Solved] Python.exe has stopped working
Message-ID<ea13e85b-bb82-4cb2-99d7-5296ebce733c@googlegroups.com>
In reply to#92181
Le samedi 6 juin 2015 13:40:13 UTC+2, Laura Creighton a écrit :
> In a message of Fri, 05 Jun 2015 11:15:31 +0200, Christian Gollwitzer writes:
> >Am 05.06.15 um 11:03 schrieb Alexis Dubois:
> >> Anyone else for an idea on that?
> >>
> >Well, it is a crash on exit. Looks like a memory error inside of PyQT. 
> >If you've got the time, you could run it inside of a debugger, or 
> >better, a memory checker like AppVerifier to find the culprit. These 
> >things are usually quite hard to diagnose, and unless someone has seen 
> >it here already, the fun starts now ;) Another possible reason might be 
> >mixing up DLLs from PyQT and another QT installation. You can find out 
> >by listing all loaded DLLs when the program is running, e.g. from a 
> >debugger or this tool: 
> >https://technet.microsoft.com/sysinternals/bb896653.aspx
> >
> >	Christian
> >-- 
> >https://mail.python.org/mailman/listinfo/python-list
> 
> I don't have a windows machine, so I cannot do any more looking for this,
> but this may be relevant.
> http://stackoverflow.com/questions/20102419/pyqt-5-error-on-exit
> 
> Laura

Hello Everybody,
Thank you for your support and sorry for the late answer, I'm back from holidays.
I tried each solution but unfortunately, nothing works.
Finally, I solved my issue by adding "sip.setdestroyonexit(False)" just before "sys.exit(app.exec_())"
I don't really know what it does but it works well and I don't see any beside effect.
It seems that my issue was linked with a QtGui4.dll crash.

[toc] | [prev] | [next] | [standalone]


#92159

FromStephen Hansen <me+python@ixokai.io>
Date2015-06-05 09:24 -0700
Message-ID<mailman.205.1433521465.13271.python-list@python.org>
In reply to#92128
On Fri, Jun 5, 2015, at 02:03 AM, Alexis Dubois wrote:
> Anyone else for an idea on that?

Sorry, I have no idea.

Have you tried asking on the PyQT mailing list where there is likely
more of a concentration of PyQT expertise?
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

-- 
Stephen Hansen
  m e @ i x o k a i . i o

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web