Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101150

static initialisation fiasco with initializeWindowManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.6, 6.4.0 Beta1
    • 6.2.3
    • QPA
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            timblechmann tim blechmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes