[PyQt] Segmentation fault with an application based on PyQt
André Sintzoff
andre.sintzoff at gmail.com
Sun Jun 5 16:57:22 BST 2011
Hello,
I'm facing a weird issue with TortoiseHg application based on PyQt,
QScintilla, sip and Qt.
I'm not sure if it is a PyQt, or a QScintilla or a Qt issue.
The following trace occurs on Mac OS X 10.6.7 with:
Python 2.6.6
Qt 4.7.2
QScintilla 2.4.6
PyQt 4.8.3
sip 4.12.1
The versions are not the latest ones but I tried with these versions
to be at the same level as Ubuntu 11.04 (except for QScintilla 2.4.5
and Python 2.7.1).
On Ubuntu, no issue occurs.
I get a similar trace with latest versions PyQt (4.8.4), QScintilla
(2.5.1) and sip (4.12.3).
I'm completely puzzled. So if somebody has any idea, I would be glad to know it.
Thanks
André
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bf7fffec
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.AppKit 0x91aa95ef -[NSView
_convertRectToSuperview:] + 9
1 com.apple.AppKit 0x91aa9561 -[NSView
_convertRect:toAncestor:] + 83
2 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
3 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
4 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
5 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
6 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
7 com.apple.AppKit 0x91aa95a7 -[NSView
_convertRect:toAncestor:] + 153
8 com.apple.AppKit 0x91aa93c9 -[NSView
convertRect:toView:] + 190
9 com.apple.AppKit 0x91aa86b5 -[NSView
setNeedsDisplayInRect:] + 273
10 com.apple.AppKit 0x91aa844b -[NSView setNeedsDisplay:] + 76
11 QtGui 0x029a5d8b -[QCocoaView
setNeedsDisplay:] + 107
12 QtGui 0x029a4272 -[QCocoaView setFrameSize:] + 290
13 com.apple.AppKit 0x91aac385 -[NSView setFrame:] + 284
14 QtGui 0x02999097
QWidgetPrivate::setWSGeometry(bool, QRect const&) + 1143
15 QtGui 0x0299ea1d
QWidgetPrivate::setGeometry_sys_helper(int, int, int, int, bool) + 669
16 QtGui 0x0299f7eb
QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 123
17 QtGui 0x02a54b6c QWidget::resize(QSize
const&) + 108
18 QtGui 0x02e8607a
QScrollAreaPrivate::updateScrollBars() + 314
19 QtGui 0x02e86642
QScrollArea::eventFilter(QObject*, QEvent*) + 50
20 QtGui.so 0x02255d53
sipQScrollArea::eventFilter(QObject*, QEvent*) + 163
21 QtCore 0x0152152f
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*,
QEvent*) + 143
22 QtGui 0x02a00173
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 147
23 QtGui 0x02a06137
QApplication::notify(QObject*, QEvent*) + 327
24 QtGui.so 0x0248e363
sipQApplication::notify(QObject*, QEvent*) + 163
25 QtCore 0x0143135c
QCoreApplication::notifyInternal(QObject*, QEvent*) + 108
26 QtGui 0x0299ec82
QWidgetPrivate::setGeometry_sys_helper(int, int, int, int, bool) +
1282
27 QtGui 0x0299f7eb
QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 123
28 QtGui 0x02a54b6c QWidget::resize(QSize
const&) + 108
29 QtGui 0x02e8607a
QScrollAreaPrivate::updateScrollBars() + 314
30 QtGui 0x02e86642
QScrollArea::eventFilter(QObject*, QEvent*) + 50
31 QtGui.so 0x02255d53
sipQScrollArea::eventFilter(QObject*, QEvent*) + 163
32 QtCore 0x0152152f
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*,
QEvent*) + 143
33 QtGui 0x02a00173
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 147
[...]
496 QtGui 0x02a06137
QApplication::notify(QObject*, QEvent*) + 327
497 QtGui.so 0x0248e363
sipQApplication::notify(QObject*, QEvent*) + 163
498 QtCore 0x0143135c
QCoreApplication::notifyInternal(QObject*, QEvent*) + 108
499 QtGui 0x0299ec82
QWidgetPrivate::setGeometry_sys_helper(int, int, int, int, bool) +
1282
500 QtGui 0x0299f7eb
QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 123
501 QtGui 0x02a54b6c QWidget::resize(QSize
const&) + 108
502 QtGui 0x02e8607a
QScrollAreaPrivate::updateScrollBars() + 314
503 QtGui 0x02e86642
QScrollArea::eventFilter(QObject*, QEvent*) + 50
504 QtGui.so 0x02255d53
sipQScrollArea::eventFilter(QObject*, QEvent*) + 163
505 QtCore 0x0152152f
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*,
QEvent*) + 143
506 QtGui 0x02a00173
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 147
507 QtGui 0x02a06137
QApplication::notify(QObject*, QEvent*) + 327
508 QtGui.so 0x0248e363
sipQApplication::notify(QObject*, QEvent*) + 163
509 QtCore 0x0143135c
QCoreApplication::notifyInternal(QObject*, QEvent*) + 108
510 QtGui 0x0299ec82
QWidgetPrivate::setGeometry_sys_helper(int, int, int, int, bool) +
1282
511 QtGui 0x0299f7eb
QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 123
André
More information about the PyQt
mailing list