macOS - QT application crash after going out of sleep
-
I'm running QT 6.2.2 on macOS version 12.5.1 (Monterey)
Sometimes when my mac is coming out of sleep the QT application crash (see below crash trace).
Is that a known bug in QT ?
Any workaround for it ?
Thanks,
Talcrash trace:
Crashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: exc handler [37643]Application Specific Information:
*** CFRetain() called with NULL ***Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 CoreFoundation 0x7ff803ba8f5f CFRetain.cold.1 + 14
1 CoreFoundation 0x7ff8039f421e CFRetain + 113
2 libqcocoa.dylib 0x10c900dea 0x10c8f5000 + 48618
3 QtGui 0x10b7f4379 QBackingStore::beginPaint(QRegion const&) + 377
4 QtWidgets 0x10c33f0c9 0x10c2c8000 + 487625
5 QtWidgets 0x10c33d6c4 0x10c2c8000 + 480964
6 QtWidgets 0x10c34771f 0x10c2c8000 + 522015
7 QtWidgets 0x10c344cf7 0x10c2c8000 + 511223
8 QtWidgets 0x10c2d5177 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247
9 QtWidgets 0x10c2d62f5 QApplication::notify(QObject*, QEvent*) + 501
10 QtCore 0x10d4278f9 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 169
11 QtGui 0x10b79b3ee QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) + 398
12 QtGui 0x10b7e178a bool QWindowSystemInterfacePrivate::handleWindowSystemEventQWindowSystemInterface::SynchronousDelivery(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 186
13 QtGui 0x10b7e8309 bool QWindowSystemInterface::handleExposeEventQWindowSystemInterface::SynchronousDelivery(QWindow*, QRegion const&) + 185
14 libqcocoa.dylib 0x10c93ece2 0x10c8f5000 + 302306
15 libqcocoa.dylib 0x10c95985b 0x10c8f5000 + 411739
16 AppKit 0x7ff806602e05 -[_NSBackingLayer display] + 462
17 AppKit 0x7ff8065783ad -[_NSViewBackingLayer display] + 554
18 QuartzCore 0x7ff80ab3ea07 CA::Layer::display_if_needed(CA::Transaction*) + 873
19 QuartzCore 0x7ff80ac962aa CA::Context::commit_transaction(CA::Transaction*, double, double*) + 640
20 QuartzCore 0x7ff80ab1fe6d CA::Transaction::commit() + 777
21 AppKit 0x7ff806be5ebc -[NSMenuWindowManager flush] + 715
22 HIToolbox 0x7ff80c7273ba FlushWindowObject(WindowData*, void**, unsigned char) + 947
23 HIToolbox 0x7ff80c76781d _FlushWindow + 82
24 HIToolbox 0x7ff80c7677b2 HIWindowFlush + 22
25 HIToolbox 0x7ff80c78132d ShowMenuWindow + 368
26 HIToolbox 0x7ff80c8a0963 ShowAndCacheMenu(MenuSelectData*, MenuData*, unsigned char, Rect const*, __CFArray*, unsigned char) + 106
27 HIToolbox 0x7ff80c89c6eb PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short, unsigned int, unsigned int, Rect const*, unsigned short, unsigned int, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) + 1400
28 HIToolbox 0x7ff80c89bc98 _HandlePopUpMenuSelection8(OpaqueMenuRef*, OpaqueEventRef*, unsigned int, Point, unsigned short, unsigned int, unsigned int, Rect const*, unsigned short, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) + 410
29 HIToolbox 0x7ff80c76fdd5 _HandlePopUpMenuSelectionWithDictionary + 329
30 AppKit 0x7ff80693fa7a SLMPerformPopUpCarbonMenu + 2217
31 AppKit 0x7ff8067e4969 _NSSLMPopUpCarbonMenu3 + 1125
32 AppKit 0x7ff8067e445e -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 462
33 AppKit 0x7ff806bf0a89 +[NSStatusBarButtonCell popupStatusBarMenu:ofBar:inRect:ofView:withEvent:] + 388
34 AppKit 0x7ff806bf3c05 -[NSStatusItem popUpStatusItemMenu:] + 139
35 AppKit 0x7ff8066ac0ce -[NSApplication(NSResponder) sendAction:to:from:] + 288
36 AppKit 0x7ff8066abf74 -[NSControl sendAction:to:] + 86
37 AppKit 0x7ff806b137d8 __NSControlTrackMouse_block_invoke + 60
38 AppKit 0x7ff8066a87a5 NSControlTrackMouse + 843
39 AppKit 0x7ff8066a8436 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
40 AppKit 0x7ff8066a8306 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
41 AppKit 0x7ff806beff09 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 321
42 AppKit 0x7ff8066a76d6 -[NSControl mouseDown:] + 678
43 AppKit 0x7ff8066a5bc1 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4859
44 AppKit 0x7ff806619d7e -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
45 AppKit 0x7ff80661914e -[NSWindow(NSEventRouting) sendEvent:] + 352
46 AppKit 0x7ff806bf22ff -[NSStatusBarWindow sendEvent:] + 618
47 AppKit 0x7ff806617524 -[NSApplication(NSEvent) sendEvent:] + 352
48 libqcocoa.dylib 0x10c8fdc0a 0x10c8f5000 + 35850
49 AppKit 0x7ff8068d018b -[NSApplication _handleEvent:] + 65
50 AppKit 0x7ff806498d3e -[NSApplication run] + 623
51 libqcocoa.dylib 0x10c90b008 0x10c8f5000 + 90120
52 QtCore 0x10d430be6 QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 470
53 QtCore 0x10d427f22 QCoreApplication::exec() + 130
54 AZTClient 0x10b42e3f6 main + 3062
55 dyld 0x111d2c52e start + 462 -
I'm running QT 6.2.2 on macOS version 12.5.1 (Monterey)
Sometimes when my mac is coming out of sleep the QT application crash (see below crash trace).
Is that a known bug in QT ?
Any workaround for it ?
Thanks,
Talcrash trace:
Crashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: exc handler [37643]Application Specific Information:
*** CFRetain() called with NULL ***Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 CoreFoundation 0x7ff803ba8f5f CFRetain.cold.1 + 14
1 CoreFoundation 0x7ff8039f421e CFRetain + 113
2 libqcocoa.dylib 0x10c900dea 0x10c8f5000 + 48618
3 QtGui 0x10b7f4379 QBackingStore::beginPaint(QRegion const&) + 377
4 QtWidgets 0x10c33f0c9 0x10c2c8000 + 487625
5 QtWidgets 0x10c33d6c4 0x10c2c8000 + 480964
6 QtWidgets 0x10c34771f 0x10c2c8000 + 522015
7 QtWidgets 0x10c344cf7 0x10c2c8000 + 511223
8 QtWidgets 0x10c2d5177 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247
9 QtWidgets 0x10c2d62f5 QApplication::notify(QObject*, QEvent*) + 501
10 QtCore 0x10d4278f9 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 169
11 QtGui 0x10b79b3ee QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) + 398
12 QtGui 0x10b7e178a bool QWindowSystemInterfacePrivate::handleWindowSystemEventQWindowSystemInterface::SynchronousDelivery(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 186
13 QtGui 0x10b7e8309 bool QWindowSystemInterface::handleExposeEventQWindowSystemInterface::SynchronousDelivery(QWindow*, QRegion const&) + 185
14 libqcocoa.dylib 0x10c93ece2 0x10c8f5000 + 302306
15 libqcocoa.dylib 0x10c95985b 0x10c8f5000 + 411739
16 AppKit 0x7ff806602e05 -[_NSBackingLayer display] + 462
17 AppKit 0x7ff8065783ad -[_NSViewBackingLayer display] + 554
18 QuartzCore 0x7ff80ab3ea07 CA::Layer::display_if_needed(CA::Transaction*) + 873
19 QuartzCore 0x7ff80ac962aa CA::Context::commit_transaction(CA::Transaction*, double, double*) + 640
20 QuartzCore 0x7ff80ab1fe6d CA::Transaction::commit() + 777
21 AppKit 0x7ff806be5ebc -[NSMenuWindowManager flush] + 715
22 HIToolbox 0x7ff80c7273ba FlushWindowObject(WindowData*, void**, unsigned char) + 947
23 HIToolbox 0x7ff80c76781d _FlushWindow + 82
24 HIToolbox 0x7ff80c7677b2 HIWindowFlush + 22
25 HIToolbox 0x7ff80c78132d ShowMenuWindow + 368
26 HIToolbox 0x7ff80c8a0963 ShowAndCacheMenu(MenuSelectData*, MenuData*, unsigned char, Rect const*, __CFArray*, unsigned char) + 106
27 HIToolbox 0x7ff80c89c6eb PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short, unsigned int, unsigned int, Rect const*, unsigned short, unsigned int, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) + 1400
28 HIToolbox 0x7ff80c89bc98 _HandlePopUpMenuSelection8(OpaqueMenuRef*, OpaqueEventRef*, unsigned int, Point, unsigned short, unsigned int, unsigned int, Rect const*, unsigned short, Rect const*, Rect const*, __CFDictionary const*, __CFString const*, OpaqueMenuRef**, unsigned short*) + 410
29 HIToolbox 0x7ff80c76fdd5 _HandlePopUpMenuSelectionWithDictionary + 329
30 AppKit 0x7ff80693fa7a SLMPerformPopUpCarbonMenu + 2217
31 AppKit 0x7ff8067e4969 _NSSLMPopUpCarbonMenu3 + 1125
32 AppKit 0x7ff8067e445e -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 462
33 AppKit 0x7ff806bf0a89 +[NSStatusBarButtonCell popupStatusBarMenu:ofBar:inRect:ofView:withEvent:] + 388
34 AppKit 0x7ff806bf3c05 -[NSStatusItem popUpStatusItemMenu:] + 139
35 AppKit 0x7ff8066ac0ce -[NSApplication(NSResponder) sendAction:to:from:] + 288
36 AppKit 0x7ff8066abf74 -[NSControl sendAction:to:] + 86
37 AppKit 0x7ff806b137d8 __NSControlTrackMouse_block_invoke + 60
38 AppKit 0x7ff8066a87a5 NSControlTrackMouse + 843
39 AppKit 0x7ff8066a8436 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
40 AppKit 0x7ff8066a8306 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
41 AppKit 0x7ff806beff09 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 321
42 AppKit 0x7ff8066a76d6 -[NSControl mouseDown:] + 678
43 AppKit 0x7ff8066a5bc1 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4859
44 AppKit 0x7ff806619d7e -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
45 AppKit 0x7ff80661914e -[NSWindow(NSEventRouting) sendEvent:] + 352
46 AppKit 0x7ff806bf22ff -[NSStatusBarWindow sendEvent:] + 618
47 AppKit 0x7ff806617524 -[NSApplication(NSEvent) sendEvent:] + 352
48 libqcocoa.dylib 0x10c8fdc0a 0x10c8f5000 + 35850
49 AppKit 0x7ff8068d018b -[NSApplication _handleEvent:] + 65
50 AppKit 0x7ff806498d3e -[NSApplication run] + 623
51 libqcocoa.dylib 0x10c90b008 0x10c8f5000 + 90120
52 QtCore 0x10d430be6 QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 470
53 QtCore 0x10d427f22 QCoreApplication::exec() + 130
54 AZTClient 0x10b42e3f6 main + 3062
55 dyld 0x111d2c52e start + 462@TalOz said in macOS - QT application crash after going out of sleep:
Is that a known bug in QT ?
Any workaround for it ?Did you check Qt bug tracker (https://bugreports.qt.io/secure/Dashboard.jspa)?
-
@TalOz said in macOS - QT application crash after going out of sleep:
Is that a known bug in QT ?
Any workaround for it ?Did you check Qt bug tracker (https://bugreports.qt.io/secure/Dashboard.jspa)?
@jsulm said in macOS - QT application crash after going out of sleep:
I found this ticket QTBUG-79944 where the comment in that ticket has same trace as mine.
Unfortunately this ticket is closed.
I will open a ticket for that issue -
@jsulm said in macOS - QT application crash after going out of sleep:
I found this ticket QTBUG-79944 where the comment in that ticket has same trace as mine.
Unfortunately this ticket is closed.
I will open a ticket for that issue