wang-bin / mdk-sdk

multimedia development kit. download:
https://sourceforge.net/projects/mdk-sdk/files/
289 stars 32 forks source link

Process termination crash on MacOS #129

Open Vizalkar opened 1 year ago

Vizalkar commented 1 year ago

Hi

Running QMDKPlay with latest ([49761bc]) build, on MacOS 13.3.1 and the video below as argument yields a crash when process terminates. Same crash occurs in our program.

Qt version used : 5.15.2

Stack trace 1 __cxa_throw (x86_64) /usr/lib/libc++abi.dylib(0x00007ff801582000) 0x7ff801592efa 2 QueueAccessor::QueueAccessor(unsigned int, audit_token_t const *) (x86_64) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox(0x00007ff8118a4000) 0x7ff8118b6a85 3 ClientAudioQueue::FetchAndDeliverPendingCallbacks(unsigned int) (x86_64) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox(0x00007ff8118a4000) 0x7ff8118cf554 4 _XCallbackNotificationsAvailable (x86_64) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox(0x00007ff8118a4000) 0x7ff8118cf42a 5 mshMIGPerform (x86_64) /usr/lib/libAudioToolboxUtility.dylib(0x00007ff81076e000) 0x7ff81077bed8 6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ (x86_64) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(0x00007ff801636000) 0x7ff8016b2f5d 7 __CFRunLoopDoSource1 (x86_64) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(0x00007ff801636000) 0x7ff8016b2ea0 8 __CFRunLoopRun (x86_64) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(0x00007ff801636000) 0x7ff8016b1b30 9 CFRunLoopRunSpecific (x86_64) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation(0x00007ff801636000) 0x7ff8016b0a4c 10 CADeprecated::GenericRunLoopThread::Entry(void *) (x86_64) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox(0x00007ff8118a4000) 0x7ff811976b13 11 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread *) (x86_64) /usr/lib/libAudioToolboxUtility.dylib(0x00007ff81076e000) 0x7ff81077a3ab 12 _pthread_start (x86_64) /usr/lib/system/libsystem_pthread.dylib 0x7ff8015d71d3 13 thread_start (x86_64) /usr/lib/system/libsystem_pthread.dylib 0x7ff8015d2bd3

https://github.com/wang-bin/mdk-sdk/assets/16580500/6053c496-62aa-444e-a740-77d0d9ad8fd7

wang-bin commented 1 year ago

I can't reproduce it on m1 macOS14. Does it crash on other macOS versions? Can you download old versions from https://github.com/wang-bin/mdk-sdk/actions and find out which version starts to crash?