[PyQt] Crash under MacOSX with QT 4.5 + snapshot 20090306

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Sun Mar 8 10:18:53 GMT 2009


Hello.

I have been using pyqt 4.4 without problems for some time and decided  
to try the 4.5 version along with the pyqt snapshot. All pyqt programs  
I have start up and crash before showing any gui. I'm wondering if  
this is normal (until the snapshots become stable) or should I start  
reporting these crashes. Here's a crash error example thrown by one of  
my programs.

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010
Crashed Thread:  0

Thread 0 Crashed:
0   QtCore                        	0x023b4fb6 QObject::~QObject() + 38
1   QtGui                         	0x01875a25  
QBoxLayoutPrivate::setupGeom() + 421
2   QtGui                         	0x01876658  
QBoxLayout::maximumSize() const + 136
3   QtGui.so                      	0x01381cf5  
sipQHBoxLayout::maximumSize() const + 95
4   QtGui                         	0x01875a0f  
QBoxLayoutPrivate::setupGeom() + 399
5   QtGui                         	0x01876658  
QBoxLayout::maximumSize() const + 136
6   QtGui.so                      	0x0137ff8f  
sipQVBoxLayout::maximumSize() const + 95
7   QtGui                         	0x01875a0f  
QBoxLayoutPrivate::setupGeom() + 399
8   QtGui                         	0x018766ae QBoxLayout::sizeHint()  
const + 30
9   QtGui.so                      	0x0137fe97  
sipQVBoxLayout::sizeHint() const + 95
10  QtGui                         	0x018924bb QLayout::totalSizeHint()  
const + 59
11  QtGui                         	0x018a94ae QWidget::sizeHint()  
const + 46
12  QtGui.so                      	0x013d2217 sipQWidget::sizeHint()  
const + 95
13  QtGui                         	0x01895e0b  
QWidgetItemV2::updateCacheIfNecessary() const + 59
14  QtGui                         	0x018962ed  
QWidgetItemV2::minimumSize() const + 77
15  QtGui                         	0x01c54ae7  
QDockAreaLayout::minimumSize() const + 263
16  QtGui                         	0x01c817f9  
QMainWindowLayoutState::minimumSize() const + 41
17  QtGui                         	0x01c81ce2  
QMainWindowLayout::minimumSize() const + 82
18  QtGui                         	0x018926b1  
QLayout::totalMinimumSize() const + 97
19  QtGui                         	0x01892bc3 QLayout::activate() + 867
20  QtGui                         	0x018bb775  
QWidget::setVisible(bool) + 325
21  QtGui.so                      	0x011f11d4  
sipQMainWindow::setVisible(bool) + 110
22  QtGui.so                      	0x013d9bf5 meth_QWidget_show + 121
23  org.python.python             	0x0018f51e PyEval_EvalFrameEx + 17116
24  org.python.python             	0x0018f700 PyEval_EvalFrameEx + 17598
25  org.python.python             	0x00191173 PyEval_EvalCodeEx + 1638
26  org.python.python             	0x00191260 PyEval_EvalCode + 87
27  org.python.python             	0x001a883c PyErr_Display + 1896
28  org.python.python             	0x001a8e66 PyRun_FileExFlags + 135
29  org.python.python             	0x001aa7d2 PyRun_SimpleFileExFlags  
+ 421
30  org.python.python             	0x001b5a57 Py_Main + 3095
31  org.python.pythonapp          	0x00001fca 0x1000 + 4042

Thread 0 crashed with X86 Thread State (32-bit):
   eax: 0x0246f3e8  ebx: 0x023b4fa1  ecx: 0x00000000  edx: 0x0036fde0
   edi: 0x02969cb0  esi: 0x02969030  ebp: 0xbfffe288  esp: 0xbfffe220
    ss: 0x0000001f  efl: 0x00010282  eip: 0x023b4fb6   cs: 0x00000017
    ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
   cr2: 0x00000010

Going into the pyqt example directory, simple examples like dialogs or  
other stuff work. None of the designer or pyuic examples work, here's  
the calculatorform crash:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c00f9dfb
Crashed Thread:  0

Thread 0 Crashed:
0   QtGui                         	0x01ae8940  
QLayout::activateRecursiveHelper(QLayoutItem*) + 16
1   QtGui                         	0x01ae8968  
QLayout::activateRecursiveHelper(QLayoutItem*) + 56
2   QtGui                         	0x01aea8c0 QLayout::activate() + 96
3   QtGui                         	0x01b13775  
QWidget::setVisible(bool) + 325
4   QtGui.so                      	0x0162a192  
sipQWidget::setVisible(bool) + 110
5   QtGui.so                      	0x01631bf5 meth_QWidget_show + 121
6   org.python.python             	0x0018f51e PyEval_EvalFrameEx + 17116
7   org.python.python             	0x00191173 PyEval_EvalCodeEx + 1638
8   org.python.python             	0x00191260 PyEval_EvalCode + 87
9   org.python.python             	0x001a883c PyErr_Display + 1896
10  org.python.python             	0x001a8e66 PyRun_FileExFlags + 135
11  org.python.python             	0x001aa7d2 PyRun_SimpleFileExFlags  
+ 421
12  org.python.python             	0x001b5a57 Py_Main + 3095
13  org.python.pythonapp          	0x00001fca 0x1000 + 4042

Thread 0 crashed with X86 Thread State (32-bit):
   eax: 0xc00f9dcb  ebx: 0x01aea87a  ecx: 0x00000000  edx: 0x0036f9d0
   edi: 0x00000001  esi: 0x003c8970  ebp: 0xbfffec48  esp: 0xbfffec30
    ss: 0x0000001f  efl: 0x00010286  eip: 0x01ae8940   cs: 0x00000017
    ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
   cr2: 0xc00f9dfb



More information about the PyQt mailing list