[PySide] PySide crash on Vista

5 views
Skip to first unread message

anatoly techtonik

unread,
Sep 25, 2010, 4:07:56 PM9/25/10
to pys...@lists.openbossa.org
Hello,

I am trying to port a big PyQt4 application to PySide, and I have face
many stacktraces, but now I've got a condition when PySide crashes
Python. Is this ok in PySide world? Shouldn't this condition be
intercepted and displayed as Python stacktrace? How can I quickly
debug why this happens?

Problem signature:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp: 4c73f7b6
Fault Module Name: pyside.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4c8a4a67
Exception Code: c0000005
Exception Offset: 000075fc
OS Version: 6.0.6002.2.2.0.768.2
Locale ID: 1033
Additional Information 1: 6b10
Additional Information 2: f4cb88429c2d2426938798bc8ad92e70
Additional Information 3: b088
Additional Information 4: 1bc51873acf931b0d4f41c4bc4fa2232

--
anatoly t.
_______________________________________________
PySide mailing list
PyS...@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

anatoly techtonik

unread,
Sep 25, 2010, 5:44:24 PM9/25/10
to pys...@lists.openbossa.org
This is a minimal example that causes crash with PySide 0.4.1
If you comment line ''self.light_mode = False' - this won't happen.
I do not remember any restriction that parent constructors must
be called first in Python. Can anybody explain?


from PySide.QtGui import QWidget, QApplication, QMainWindow

class ExternalConsole(QWidget):
def __init__(self, parent):
self.light_mode = False
QWidget.__init__(self, parent)

class MainWindow(QMainWindow):

def __init__(self):
super(MainWindow, self).__init__()
self.extconsole = ExternalConsole(self)

app = QApplication([])
main = MainWindow()
print "impossible"
main.show()
app.exec_()

--
anatoly t.

Renato Araujo Oliveira Filho

unread,
Sep 25, 2010, 11:11:26 PM9/25/10
to anatoly techtonik, pys...@lists.openbossa.org
This bugs was fixed on GIT mainline, check details on:
http://bugs.openbossa.org/show_bug.cgi?id=378

You can make this work in current release just changing the order of
you call the base constructor.


class ExternalConsole(QWidget):
def __init__(self, parent):

QWidget.__init__(self, parent)
self.light_mode = False # << put this after base constructor call


BR

--
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144

anatoly techtonik

unread,
Sep 26, 2010, 2:20:41 AM9/26/10
to Renato Araujo Oliveira Filho, pys...@lists.openbossa.org
Hi, Renano.

Thanks. Are there any plans to release 0.4.2 version?
--
anatoly t.

Matti Airas

unread,
Sep 28, 2010, 11:35:53 AM9/28/10
to pys...@srvrec006.openbossa.org
On 26.09.2010 09:20, ext anatoly techtonik wrote:
> Hi, Renano.
>
> Thanks. Are there any plans to release 0.4.2 version?

(sorry about the delay.)

We have had initial discussion about doing the next release in the
beginning of our next sprint. In practice, the source packages would be
available approximately two weeks from now.

Cheers,

ma.

Reply all
Reply to author
Forward
0 new messages