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

QMediaPlayer crashes on Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.0, 6.5.1, 6.6.0
    • 6.4.3, 6.5.0
    • Multimedia
    • None
    • macOS
    • 2e43d29e1 (dev), 3e23caf2d (6.5.0), 0a51a9a2e (6.5)

    Description

      Strangest thing. I've got a simple media player to play instruction video's. When an instruction video is selected it creates a Separate Window with a media player and plays the video. Normally over an internet connection.

      On Windows, using Qt 6.4.0, no problems, On Mac OS X, using Qt 6.4.3, the player crashes. 

      I've created a test application. I see following behavior:

      • When I create the media player widget with the MainWindow, no problems. 
      • When I create the media player widget manually and add it to the MainWindow: crash. I narrowed the crash down, e.g. instead of playing right away, I've prevented it from playing right away. Then, when I click te 'play' button, it crashes when it starts playing. 

      Using Qt 6.5.0 on Mac OS X, the player does not crash anymore, but is also not able to play video's directly from the internet anymore.

       

      Some logging (6.4.3):

       

      12:04:18: Debugging /Users/hans/devel/libs_with_qt/zcvideowidget/build-zcVideoWidgetTest-Qt_6_4_3_for_macOS-Debug/zcVideoWidgetTest.app/Contents/MacOS/zcVideoWidgetTest ...got fallback qt version 0x604032023-05-15 12:04:24.335634+0200 zcVideoWidgetTest[8779:308343] Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,reconfigure your locale. See the locale(1) manual for more information.2023-05-15 12:04:24.571607+0200 zcVideoWidgetTest[8779:308343] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:24.571754+0200 zcVideoWidgetTest[8779:308343] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#1 LF=02023-05-15 12:04:30.548498+0200 zcVideoWidgetTest[8779:308343] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000244840> F8BB1C28-BAE8-11D6-9C31-00039315CD462023-05-15 12:04:30.583455+0200 zcVideoWidgetTest[8779:308343]  HALC_ShellObject::HasProperty: initial inner method call failed, Error: 560947818 (!obj)2023-05-15 12:04:30.583504+0200 zcVideoWidgetTest[8779:308343]  HALC_ShellObject::HasProperty: initial inner method call failed, Error: 560947818 (!obj)2023-05-15 12:04:30.587858+0200 zcVideoWidgetTest[8779:308343]  HALC_ShellObject::HasProperty: initial inner method call failed, Error: 560947818 (!obj)2023-05-15 12:04:31.262158+0200 zcVideoWidgetTest[8779:308343] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000002493c0> 30010C1C-93BF-11D8-8B5B-000A95AF9C6A2023-05-15 12:04:31.314543+0200 zcVideoWidgetTest[8779:308343]  HALC_ShellObject::HasProperty: initial inner method call failed, Error: 560947818 (!obj)2023-05-15 12:04:31.316518+0200 zcVideoWidgetTest[8779:308343]  HALC_ShellObject::HasProperty: initial inner method call failed, Error: 560947818 (!obj)2023-05-15 12:04:35.911429+0200 zcVideoWidgetTest[8779:308343] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:35.911550+0200 zcVideoWidgetTest[8779:308343] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#1 LF=02023-05-15 12:04:37.046820+0200 zcVideoWidgetTest[8779:308466] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID2023-05-15 12:04:37.048576+0200 zcVideoWidgetTest[8779:308373] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}{}2023-05-15 12:04:37.048714+0200 zcVideoWidgetTest[8779:308373] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}{}2023-05-15 12:04:37.446857+0200 zcVideoWidgetTest[8779:308373] [logging] volume does not support data protection, stripping SQLITE_OPEN_FILEPROTECTION_* flags2023-05-15 12:04:37.447362+0200 zcVideoWidgetTest[8779:308373] [logging] volume does not support data protection, stripping SQLITE_OPEN_FILEPROTECTION_* flags2023-05-15 12:04:37.493654+0200 zcVideoWidgetTest[8779:308374] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.493774+0200 zcVideoWidgetTest[8779:308374] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:37.493810+0200 zcVideoWidgetTest[8779:308374] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.493851+0200 zcVideoWidgetTest[8779:308374] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:37.657393+0200 zcVideoWidgetTest[8779:308366] [tcp] tcp_output [C3.1:3] flags=[R.] seq=3035323657, ack=2711921430, win=1980 state=CLOSED rcv_nxt=2711921430, snd_una=30353236332023-05-15 12:04:37.872872+0200 zcVideoWidgetTest[8779:308516] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}{}2023-05-15 12:04:37.879972+0200 zcVideoWidgetTest[8779:308512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.880126+0200 zcVideoWidgetTest[8779:308512] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:37.880159+0200 zcVideoWidgetTest[8779:308512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.880205+0200 zcVideoWidgetTest[8779:308512] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:37.881913+0200 zcVideoWidgetTest[8779:308512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.882011+0200 zcVideoWidgetTest[8779:308512] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:37.882043+0200 zcVideoWidgetTest[8779:308512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:37.882088+0200 zcVideoWidgetTest[8779:308512] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:38.121464+0200 zcVideoWidgetTest[8779:308512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:38.121605+0200 zcVideoWidgetTest[8779:308512] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:38.333030+0200 zcVideoWidgetTest[8779:308513] [logging-persist] cannot open file at line 45530 of [9ff244ce07]2023-05-15 12:04:38.333071+0200 zcVideoWidgetTest[8779:308513] [logging-persist] os_unix.c:45530: (0) open(/var/db/DetachedSignatures) - Undefined error: 02023-05-15 12:04:38.334645+0200 zcVideoWidgetTest[8779:308513] [logging-persist] cannot open file at line 45530 of [9ff244ce07]2023-05-15 12:04:38.334680+0200 zcVideoWidgetTest[8779:308513] [logging-persist] os_unix.c:45530: (0) open(/var/db/DetachedSignatures) - Undefined error: 02023-05-15 12:04:38.360781+0200 zcVideoWidgetTest[8779:308466] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}{}2023-05-15 12:04:39.268970+0200 zcVideoWidgetTest[8779:308365] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}{}2023-05-15 12:04:47.933392+0200 zcVideoWidgetTest[8779:308583] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.933545+0200 zcVideoWidgetTest[8779:308583] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.933603+0200 zcVideoWidgetTest[8779:308583] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.933684+0200 zcVideoWidgetTest[8779:308583] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.936144+0200 zcVideoWidgetTest[8779:308583] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.936368+0200 zcVideoWidgetTest[8779:308583] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.936410+0200 zcVideoWidgetTest[8779:308583] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.936498+0200 zcVideoWidgetTest[8779:308583] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.951559+0200 zcVideoWidgetTest[8779:308585] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.951734+0200 zcVideoWidgetTest[8779:308585] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.951792+0200 zcVideoWidgetTest[8779:308585] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=87792023-05-15 12:04:47.951822+0200 zcVideoWidgetTest[8779:308343] -[NSControlAuxiliary objectForKey:]: unrecognized selector sent to instance 0x6000017329002023-05-15 12:04:47.951885+0200 zcVideoWidgetTest[8779:308585] SecTaskCopyDebugDescription: zcVideoWidgetTes[8779]/0#-1 LF=02023-05-15 12:04:47.952610+0200 zcVideoWidgetTest[8779:308585] [aqme]        MEMixerChannel.cpp:1636  client <AudioQueueObject@0x1030b5200; Unknown FigPlayer; [0]; play> got error 2003332927 while sending format information2023-05-15 12:04:47.955949+0200 zcVideoWidgetTest[8779:308343] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '[NSControlAuxiliary objectForKey:]: unrecognized selector sent to instance 0x600001732900'*** First throw call stack:(0   CoreFoundation                      0x00007ff8045c7773 {}exceptionPreprocess + 2421   libobjc.A.dylib                     0x00007ff804327bc3 objc_exception_throw + 482   CoreFoundation                      0x00007ff80464c35b -[NSObject(NSObject) __retain_OA] + 03   CoreFoundation                      0x00007ff80452e535 __forwarding__ + 13564   CoreFoundation                      0x00007ff80452df58 CF_forwarding_prep_0 + 1205   CoreVideo                           0x00007ff80bd40361 CVPixelBufferCreateResolvedAttributesDictionary + 1496   VideoToolbox                        0x00007ff810895af0 VTPixelBufferAttributesMediatorCopyProperty + 4847   AVFCore                             0x00007ff8170fb4a9 [AVPlayerItem(AVPlayerItemOutputs) _preferredPixelBufferAttributes] + 538   AVFCore                             0x00007ff8170cef66 __84[AVPlayer _updateCurrentItemPreferredPixelBufferAttributesAndVideoLayerSuppression]_block_invoke + 769   libdispatch.dylib                   0x00007ff8042ce317 _dispatch_client_callout + 810  libdispatch.dylib                   0x00007ff8042db7ee _dispatch_lane_barrier_sync_invoke_and_complete + 6011  AVFCore                             0x00007ff8170cef14 -[AVPlayer _updateCurrentItemPreferredPixelBufferAttributesAndVideoLayerSuppression] + 7312  Foundation                          0x00007ff80537d49d -[__NSObserver _doit:] + 28713  CoreFoundation                      0x00007ff80454173c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER_ + 1214  CoreFoundation                      0x00007ff8045deb32 _{}CFXRegistrationPost_block_invoke + 4915  CoreFoundation                      0x00007ff8045deab0 CFXRegistrationPost + 49616  CoreFoundation                      0x00007ff8045133c8 _CFXNotificationPost + 73517  AVFCore                             0x00007ff8170fb57b -[AVPlayerItem(AVPlayerItemOutputs) _addVideoOutput:] + 19518  AVFCore                             0x00007ff8170fb866 -[AVPlayerItem(AVPlayerItemOutputs) addOutput:] + 26419  libdarwinmediaplugin.dylib          0x000000010f8df4ad libdarwinmediaplugin.dylib + 11178920  libdarwinmediaplugin.dylib          0x000000010f8df2d4 libdarwinmediaplugin.dylib + 11131621  QtCore                              0x00000001022115aa _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 399422  libdarwinmediaplugin.dylib          0x000000010f8d3bce libdarwinmediaplugin.dylib + 6446223  QtWidgets                           0x000000010107e9c7 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 24724  QtWidgets                           0x000000010107f90c _ZN12QApplication6notifyEP7QObjectP6QEvent + 50825  QtCore                              0x00000001021c212a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 17026  QtCore                              0x00000001021c337c _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 146827  libqcocoa.dylib                     0x0000000105ebe13b qt_plugin_instance + 5898728  libqcocoa.dylib                     0x0000000105ebe84b qt_plugin_instance + 6079529  CoreFoundation                      0x00007ff80454c15b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 1730  CoreFoundation                      0x00007ff80454c0c3 {}CFRunLoopDoSource0 + 18031  CoreFoundation                      0x00007ff80454be3d _CFRunLoopDoSources0 + 24232  CoreFoundation                      0x00007ff80454a858 __CFRunLoopRun + 89233  CoreFoundation                      0x00007ff804549e1c CFRunLoopRunSpecific + 56234  HIToolbox                           0x00007ff80d1f95e6 RunCurrentEventLoopInMode + 29235  HIToolbox                           0x00007ff80d1f934a ReceiveNextEventCommon + 59436  HIToolbox                           0x00007ff80d1f90e5 _BlockUntilNextEventMatchingListInModeWithFilter + 7037  AppKit                              0x00007ff806f83f6d _DPSNextEvent + 92738  AppKit                              0x00007ff806f8262a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 139439  AppKit                              0x00007ff806f74cd9 -[NSApplication run] + 58640  libqcocoa.dylib                     0x0000000105ebd753 qt_plugin_instance + 5645141  QtCore                              0x00000001021cb4b6 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 48642  QtCore                              0x00000001021c2725 _ZN16QCoreApplication4execEv + 13343  zcVideoWidgetTest                   0x0000000100021151 main + 8144  dyld                                0x000000010008d52e start + 462)2023-05-15 12:04:47.956470+0200 zcVideoWidgetTest[8779:308343] [General] An uncaught exception was raised2023-05-15 12:04:47.956539+0200 zcVideoWidgetTest[8779:308343] [General] -[NSControlAuxiliary objectForKey:]: unrecognized selector sent to instance 0x6000017329002023-05-15 12:04:47.956714+0200 zcVideoWidgetTest[8779:308343] [General] (0   CoreFoundation                      0x00007ff8045c7773 __exceptionPreprocess + 2421   libobjc.A.dylib                     0x00007ff804327bc3 objc_exception_throw + 482   CoreFoundation                      0x00007ff80464c35b -[NSObject(NSObject) __retain_OA] + 03   CoreFoundation                      0x00007ff80452e535 ___forwarding__ + 13564   CoreFoundation                      0x00007ff80452df58 CF_forwarding_prep_0 + 1205   CoreVideo                           0x00007ff80bd40361 CVPixelBufferCreateResolvedAttributesDictionary + 1496   VideoToolbox                        0x00007ff810895af0 VTPixelBufferAttributesMediatorCopyProperty + 4847   AVFCore                             0x00007ff8170fb4a9 -[AVPlayerItem(AVPlayerItemOutputs) _preferredPixelBufferAttributes] + 538   AVFCore                             0x00007ff8170cef66 __84[AVPlayer _updateCurrentItemPreferredPixelBufferAttributesAndVideoLayerSuppression]_block_invoke + 769   libdispatch.dylib                   0x00007ff8042ce317 _dispatch_client_callout + 810  libdispatch.dylib                   0x00007ff8042db7ee _dispatch_lane_barrier_sync_invoke_and_complete + 6011  AVFCore                             0x00007ff8170cef14 -[AVPlayer _updateCurrentItemPreferredPixelBufferAttributesAndVideoLayerSuppression] + 7312  Foundation                          0x00007ff80537d49d -[__NSObserver _doit:] + 28713  CoreFoundation                      0x00007ff80454173c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER_ + 1214  CoreFoundation                      0x00007ff8045deb32 _{}CFXRegistrationPost_block_invoke + 4915  CoreFoundation                      0x00007ff8045deab0 CFXRegistrationPost + 49616  CoreFoundation                      0x00007ff8045133c8 _CFXNotificationPost + 73517  AVFCore                             0x00007ff8170fb57b -[AVPlayerItem(AVPlayerItemOutputs) _addVideoOutput:] + 19518  AVFCore                             0x00007ff8170fb866 -[AVPlayerItem(AVPlayerItemOutputs) addOutput:] + 26419  libdarwinmediaplugin.dylib          0x000000010f8df4ad libdarwinmediaplugin.dylib + 11178920  libdarwinmediaplugin.dylib          0x000000010f8df2d4 libdarwinmediaplugin.dylib + 11131621  QtCore                              0x00000001022115aa _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 399422  libdarwinmediaplugin.dylib          0x000000010f8d3bce libdarwinmediaplugin.dylib + 6446223  QtWidgets                           0x000000010107e9c7 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 24724  QtWidgets                           0x000000010107f90c _ZN12QApplication6notifyEP7QObjectP6QEvent + 50825  QtCore                              0x00000001021c212a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 17026  QtCore                              0x00000001021c337c _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData + 146827  libqcocoa.dylib                     0x0000000105ebe13b qt_plugin_instance + 5898728  libqcocoa.dylib                     0x0000000105ebe84b qt_plugin_instance + 6079529  CoreFoundation                      0x00007ff80454c15b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 1730  CoreFoundation                      0x00007ff80454c0c3 __CFRunLoopDoSource0 + 18031  CoreFoundation                      0x00007ff80454be3d __CFRunLoopDoSources0 + 24232  CoreFoundation                      0x00007ff80454a858 __CFRunLoopRun + 89233  CoreFoundation                      0x00007ff804549e1c CFRunLoopRunSpecific + 56234  HIToolbox                           0x00007ff80d1f95e6 RunCurrentEventLoopInMode + 29235  HIToolbox                           0x00007ff80d1f934a ReceiveNextEventCommon + 59436  HIToolbox                           0x00007ff80d1f90e5 _BlockUntilNextEventMatchingListInModeWithFilter + 7037  AppKit                              0x00007ff806f83f6d _DPSNextEvent + 92738  AppKit                              0x00007ff806f8262a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 139439  AppKit                              0x00007ff806f74cd9 -[NSApplication run] + 58640  libqcocoa.dylib                     0x0000000105ebd753 qt_plugin_instance + 5645141  QtCore                              0x00000001021cb4b6 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 48642  QtCore                              0x00000001021c2725 _ZN16QCoreApplication4execEv + 13343  zcVideoWidgetTest                   0x0000000100021151 main + 8144  dyld                                0x000000010008d52e start + 462)libc++abi: terminating with uncaught exception of type NSException

      Attachments

        1. QTBUG-113612.txt
          19 kB
        2. zcvideowidget.tar.gz
          6.63 MB
        3. zcvideowidget.zip
          126 kB

        Issue Links

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

          Activity

            People

              dorisverria Doris Verria
              hansdijkema Hans Dijkema
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes