Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.3
-
None
-
b41b1a3f6f (qt/qtbase/dev) b41b1a3f6f (qt/tqtc-qtbase/dev) 85e639ce0d (qt/qtbase/6.3) 85e639ce0d (qt/tqtc-qtbase/6.3) d2fa4c9223 (qt/tqtc-qtbase/6.2)
Description
when creating a QApplication via static initialization, we run in to a static initialization fiasco with initializeWindowManager
[2022-02-22T01:49:16.640Z] 2022-02-22 02:49:16.357 ABAUTest[98368:3611837] *** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <KeyValueObserver_NI_6_2_3_R1 0x7fa766c18e50> for the key path "modalWindow" from <NSApplication 0x7fa765416ec0> because it is not registered as an observer.' [2022-02-22T01:49:16.640Z] *** First throw call stack: [2022-02-22T01:49:16.640Z] ( [2022-02-22T01:49:16.640Z] 0 CoreFoundation 0x00007fff314c90b7 __exceptionPreprocess + 250 [2022-02-22T01:49:16.640Z] 1 libobjc.A.dylib 0x00007fff6a0ffa9e objc_exception_throw + 48 [2022-02-22T01:49:16.640Z] 2 Foundation 0x00007fff33b00981 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 578 [2022-02-22T01:49:16.640Z] 3 Foundation 0x00007fff33b006f2 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 74 [2022-02-22T01:49:16.640Z] 4 Foundation 0x00007fff33b003df -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 190 [2022-02-22T01:49:16.640Z] 5 ABAUTest 0x0000000105f9a95d _ZN11NI_6_2_3_R120QMacKeyValueObserver14removeObserverEv + 45 [2022-02-22T01:49:16.640Z] 6 ABAUTest 0x0000000105b0fa0f _ZN11NI_6_2_3_R120QMacKeyValueObserverD2Ev + 15 [2022-02-22T01:49:16.640Z] 7 libsystem_c.dylib 0x00007fff6b34913c __cxa_finalize_ranges + 319 [2022-02-22T01:49:16.640Z] 8 libsystem_c.dylib 0x00007fff6b349412 exit + 55 [2022-02-22T01:49:16.640Z] 9 libdyld.dylib 0x00007fff6b29fcd0 start + 8 [2022-02-22T01:49:16.640Z] ) [2022-02-22T01:49:16.640Z] libc++abi.dylib: terminating with uncaught exception of type NSException
vestbo, suggested that it might be possible to tie the lifetime to the qcocoaintegration
Attachments
For Gerrit Dashboard: QTBUG-101150 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
407351,2 | macOS: Tie QCocoaWindowManager lifetime to QCocoaIntegration | dev | qt/qtbase | Status: MERGED | +2 | 0 |
408832,2 | macOS: Tie QCocoaWindowManager lifetime to QCocoaIntegration | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
409016,3 | macOS: Tie QCocoaWindowManager lifetime to QCocoaIntegration | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |