Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.8.0
-
None
-
Mac OS X 10.7
Description
The fortuneserver example included in Qt 4.8.0 crashes on startup on Mac OS X 10.7. The crash does not occur if the example is run in a debugger, or if the statusLabel is not added to mainLayout (i.e. line 102 of server.cpp is commented out). A stacktrace from the crash is below.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 QtGui 0x00000001002ec480 QTextLineItemIterator::next() + 448 1 QtGui 0x00000001002f8e3f QTextLine::draw(QPainter*, QPointF const&, QTextLayout::FormatRange const*) const + 1087 2 QtGui 0x00000001001ee4fc qt_format_text(QFont const&, QRectF const&, int, QTextOption const*, QString const&, QRectF*, int, int*, int, QPainter*) + 4108 3 QtGui 0x00000001001eed05 QPainter::drawText(QRect const&, int, QString const&, QRect*) + 293 4 QtGui 0x0000000100388915 QStyle::drawItemText(QPainter*, QRect const&, int, QPalette const&, bool, QString const&, QPalette::ColorRole) const + 629 5 QtGui 0x000000010048e431 QLabel::paintEvent(QPaintEvent*) + 1857 6 QtGui 0x00000001000f6926 QWidget::event(QEvent*) + 2294 7 QtGui 0x0000000100489b6c QFrame::event(QEvent*) + 44 8 QtGui 0x000000010048cefb QLabel::event(QEvent*) + 91 9 QtGui 0x000000010009ecdd QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189 10 QtGui 0x00000001000a52c4 QApplication::notify(QObject*, QEvent*) + 1060 11 QtCore 0x0000000100e3bc0c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124 12 QtGui 0x00000001000f42ce QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1822 13 QtGui 0x00000001000f4d44 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1460 14 QtGui 0x00000001000f4c05 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1141 15 QtGui 0x00000001000f4060 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) + 1200 16 QtGui 0x0000000100043d7a -[QCocoaView drawRect:] + 1786 17 com.apple.AppKit 0x00007fff8727bfdf -[NSView _drawRect:clip:] + 3758 18 com.apple.AppKit 0x00007fff872a98c4 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583 19 com.apple.AppKit 0x00007fff872a9cf0 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651 20 com.apple.AppKit 0x00007fff872795ba -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032 21 com.apple.AppKit 0x00007fff87278ab3 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 270 22 com.apple.AppKit 0x00007fff87273ec9 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755 23 com.apple.AppKit 0x00007fff8726c93e -[NSView displayIfNeeded] + 1676 24 com.apple.AppKit 0x00007fff8726c07d _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 648 25 com.apple.CoreFoundation 0x00007fff82c08f37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 26 com.apple.CoreFoundation 0x00007fff82c08e96 __CFRunLoopDoObservers + 374 27 com.apple.CoreFoundation 0x00007fff82bde159 __CFRunLoopRun + 825 28 com.apple.CoreFoundation 0x00007fff82bddae6 CFRunLoopRunSpecific + 230 29 com.apple.HIToolbox 0x00007fff8b0a03d3 RunCurrentEventLoopInMode + 277 30 com.apple.HIToolbox 0x00007fff8b0a758f ReceiveNextEventCommon + 181 31 com.apple.HIToolbox 0x00007fff8b0a74ca BlockUntilNextEventMatchingListInMode + 62 32 com.apple.AppKit 0x00007fff872303f1 _DPSNextEvent + 659 33 com.apple.AppKit 0x00007fff8722fcf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 34 com.apple.AppKit 0x00007fff87334c47 -[NSWindow nextEventMatchingMask:] + 89 35 com.apple.AppKit 0x00007fff87334827 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1493 36 com.apple.AppKit 0x00007fff873b48e0 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489 37 com.apple.AppKit 0x00007fff8733363a -[NSControl mouseDown:] + 786 38 com.apple.AppKit 0x00007fff872fe0e0 -[NSWindow sendEvent:] + 6306 39 com.apple.AppKit 0x00007fff8729668f -[NSApplication sendEvent:] + 5593 40 QtGui 0x000000010004d074 -[QNSApplication sendEvent:] + 84 41 com.apple.AppKit 0x00007fff874e6f27 -[NSApplication _realDoModalLoop:peek:] + 708 42 com.apple.AppKit 0x00007fff874e6af9 -[NSApplication runModalForWindow:] + 120 43 com.apple.AppKit 0x00007fff874da195 -[NSAlert runModal] + 159 44 com.apple.AppKit 0x00007fff8725f1e3 __-[NSPersistentUIManager promptToIgnorePersistentState]_block_invoke_1 + 815 45 com.apple.AppKit 0x00007fff874dff4a -[NSApplication _suppressFinishLaunchingFromEventHandlersWhilePerformingBlock:] + 31 46 com.apple.AppKit 0x00007fff8725ee7c -[NSPersistentUIManager promptToIgnorePersistentState] + 178 47 com.apple.AppKit 0x00007fff87233666 -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completionHandler:] + 180 48 com.apple.AppKit 0x00007fff872334c3 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 227 49 com.apple.AppKit 0x00007fff87233233 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 330 50 com.apple.CoreFoundation 0x00007fff82c3b851 -[NSObject performSelector:withObject:withObject:] + 65 51 com.apple.Foundation 0x00007fff8d7de89b __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 + 101 52 com.apple.Foundation 0x00007fff8d7dd822 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 283 53 com.apple.Foundation 0x00007fff8d7dd6b0 _NSAppleEventManagerGenericHandler + 105 54 com.apple.AE 0x00007fff81d47c25 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 200 55 com.apple.AE 0x00007fff81d47b03 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 38 56 com.apple.AE 0x00007fff81d479f7 aeProcessAppleEvent + 250 57 com.apple.HIToolbox 0x00007fff8b0aeb6d AEProcessAppleEvent + 102 58 com.apple.AppKit 0x00007fff8723063d _DPSNextEvent + 1247 59 com.apple.AppKit 0x00007fff8722fcf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135 60 com.apple.AppKit 0x00007fff8722c62d -[NSApplication run] + 470 61 QtGui 0x0000000100057e50 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824 62 QtCore 0x0000000100e3ab24 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68 63 QtCore 0x0000000100e3aed4 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324 64 QtGui 0x0000000100545925 QDialog::exec() + 229 65 com.yourcompany.fortuneserver 0x0000000100009ee2 main + 226 (main.cpp:59) 66 com.yourcompany.fortuneserver 0x00000001000028ca _start + 248 67 com.yourcompany.fortuneserver 0x00000001000027d1 start + 33