Closed mangeshsonawane551 closed 3 years ago
There's no information on the actual exception that's happening, so there's no way for me know to know what has happened. Please provide the exception information as well as the complete stack trace.
Stack trace:
__abort_with_payload + 10 frame #1: 0x0000000112056f40 dyld
abort_with_payload_wrapper_internal + 80
frame #2: 0x0000000112056f72 dyldabort_with_payload + 9 frame #3: 0x0000000111fd714a dyld
dyld::halt(char const*) + 672
frame #4: 0x0000000111fd7274 dylddyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 167 frame #5: 0x00007fff20348386 libdyld.dylib
dyld_stub_binder + 282
frame #6: 0x000000010d67b000 SoundPusher
frame #7: 0x00007fff2041bfdc CoreFoundation__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 frame #8: 0x00007fff204b789b CoreFoundation
_CFXRegistrationPost_block_invoke + 49
frame #9: 0x00007fff204b780f CoreFoundation_CFXRegistrationPost + 454 frame #10: 0x00007fff203ecbce CoreFoundation
_CFXNotificationPost + 723
frame #11: 0x00007fff21158abe Foundation-[NSNotificationCenter postNotificationName:object:userInfo:] + 59 frame #12: 0x00007fff22c470f1 AppKit
-[NSApplication _postDidFinishNotification] + 305
frame #13: 0x00007fff22c46e3f AppKit-[NSApplication _sendFinishLaunchingNotification] + 208 frame #14: 0x00007fff22c4403a AppKit
-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 541
frame #15: 0x00007fff22c43c90 AppKit-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665 frame #16: 0x00007fff21184056 Foundation
-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
frame #17: 0x00007fff21183ec6 Foundation_NSAppleEventManagerGenericHandler + 80 frame #18: 0x00007fff261ee0b9 AE
___lldb_unnamedsymbol72$$AE + 2184
frame #19: 0x00007fff261ed7d4 AE`lldb_unnamed_symbol71$$AE + 41
frame #20: 0x00007fff261e6440 AEaeProcessAppleEvent + 452 frame #21: 0x00007fff286a2f12 HIToolbox
AEProcessAppleEvent + 54
frame #22: 0x00007fff22c3e412 AppKit_DPSNextEvent + 2048 frame #23: 0x00007fff22c3c74b AppKit
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
frame #24: 0x00007fff22c2ebda AppKit-[NSApplication run] + 586 frame #25: 0x00007fff22c02f31 AppKit
NSApplicationMain + 816
main(argc=3, argv=0x00007ffee25ac3f0) at main.m:12:10 frame #27: 0x00007fff20349631 libdyld.dylib
start + 1Still missing the actual exception information. All we can see is that it's from the dynamic linker.
Run the binary manually to obtain a normal crash log if you cannot produce it in Xcode.
Process: SoundPusher [2319] Path: /Users/USER/Library/Developer/Xcode/DerivedData/SoundPusher-bmvcechqrqcfvtaagqusrzvsanqm/Build/Products/Debug/SoundPusher.app/Contents/MacOS/SoundPusher Identifier: de.maven.SoundPusher Version: 1.3.1 (15) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: SoundPusher [2319] User ID: 501
Date/Time: 2021-02-03 19:04:43.432 +0530 OS Version: macOS 11.0.1 (20B50) Report Version: 12 Bridge OS Version: 5.0.1 (18P2561) Anonymous UUID: 860F22D5-FA5E-78C0-1929-B8643FF566D1
Sleep/Wake UUID: C4592255-79AB-4F59-B853-74D9BAF0B44F
Time Awake Since Boot: 16000 seconds Time Since Wake: 3300 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x9]
Dyld Error Message: can't resolve symbol _av_log_set_level in /Users/mangeshsonawane551/Library/Developer/Xcode/DerivedData/SoundPusher-bmvcechqrqcfvtaagqusrzvsanqm/Build/Products/Debug/SoundPusher.app/Contents/MacOS/SoundPusher because dependent dylib @rpath/libavutil.dylib could not be loaded
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 dyld 0x0000000103457f7a abort_with_payload + 10 1 dyld 0x0000000103480f40 abort_with_payload_wrapper_internal + 80 2 dyld 0x0000000103480f72 abort_with_payload + 9 3 dyld 0x000000010340114a dyld::halt(char const*) + 672 4 dyld 0x0000000103401274 dyld::fastBindLazySymbol(ImageLoader**, unsigned long) + 167 5 libdyld.dylib 0x00007fff20348386 dyld_stub_binder + 282 6 ??? 0x00000001021ce690 OBJCMETACLASS$_ForwardingChainIdentifier + 40 7 com.apple.CoreFoundation 0x00007fff2041bfdc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 8 com.apple.CoreFoundation 0x00007fff204b789b _CFXRegistrationPost_block_invoke + 49 9 com.apple.CoreFoundation 0x00007fff204b780f _CFXRegistrationPost + 454 10 com.apple.CoreFoundation 0x00007fff203ecbce _CFXNotificationPost + 723 11 com.apple.Foundation 0x00007fff21158abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59 12 com.apple.AppKit 0x00007fff22c470f1 -[NSApplication _postDidFinishNotification] + 305 13 com.apple.AppKit 0x00007fff22c46e3f -[NSApplication _sendFinishLaunchingNotification] + 208 14 com.apple.AppKit 0x00007fff22c4403a -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 541 15 com.apple.AppKit 0x00007fff22c43c90 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665 16 com.apple.Foundation 0x00007fff21184056 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308 17 com.apple.Foundation 0x00007fff21183ec6 _NSAppleEventManagerGenericHandler + 80 18 com.apple.AE 0x00007fff261ee0b9 0x7fff261e1000 + 53433 19 com.apple.AE 0x00007fff261ed7d4 0x7fff261e1000 + 51156 20 com.apple.AE 0x00007fff261e6440 aeProcessAppleEvent + 452 21 com.apple.HIToolbox 0x00007fff286a2f12 AEProcessAppleEvent + 54 22 com.apple.AppKit 0x00007fff22c3e412 _DPSNextEvent + 2048 23 com.apple.AppKit 0x00007fff22c3c74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366 24 com.apple.AppKit 0x00007fff22c2ebda -[NSApplication run] + 586 25 com.apple.AppKit 0x00007fff22c02f31 NSApplicationMain + 816 26 de.maven.SoundPusher 0x00000001021af122 main + 34 (main.m:12) 27 libdyld.dylib 0x00007fff20349631 start + 1
Thread 1: 0 libsystem_pthread.dylib 0x00007fff2032a458 start_wqthread + 0
Thread 2: 0 libsystem_pthread.dylib 0x00007fff2032a458 start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x00007fff2032a458 start_wqthread + 0
Thread 4: 0 libsystem_pthread.dylib 0x00007fff2032a458 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ffeeda5bd48 rdx: 0x00007ffeeda5c1b0 rdi: 0x0000000000000006 rsi: 0x0000000000000009 rbp: 0x00007ffeeda5bd90 rsp: 0x00007ffeeda5bd48 r8: 0x00007ffeeda5bdb0 r9: 0x0000000000000000 r10: 0x0000000000000014 r11: 0x0000000000000246 r12: 0x0000000000000014 r13: 0x00007ffeeda5c1b0 r14: 0x0000000000000009 r15: 0x0000000000000006 rip: 0x0000000103457f7a rfl: 0x0000000000000246 cr2: 0x0000000103457f70
Logical CPU: 0 Error Code: 0x02000209 Trap Number: 133
Thread 0 instruction stream not available.
Thread 0 last branch register state not available.
Binary Images:
0x1021a1000 - 0x1021c8fff +de.maven.SoundPusher (1.3.1 - 15) <7B73F654-601A-3AC2-AA40-6C26D566F1F6> /Users/USER/Library/Developer/Xcode/DerivedData/SoundPusher-bmvcechqrqcfvtaagqusrzvsanqm/Build/Products/Debug/SoundPusher.app/Contents/MacOS/SoundPusher
0x1033fc000 - 0x103497fff dyld (832.7.1) <2705F0D8-C104-3DE9-BEB5-B1EF6E28656D> /usr/lib/dyld
0x7fff20067000 - 0x7fff20068fff libsystem_blocks.dylib (78) <83E2F888-F4C1-3181-B21B-136A0D7293DD> /usr/lib/system/libsystem_blocks.dylib
0x7fff20069000 - 0x7fff2009efff libxpc.dylib (2038.40.38)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 27270 thread_create: 0 thread_set_state: 764
VM Region Summary: ReadOnly portion of Libraries: Total=701.7M resident=0K(0%) swapped_out_or_unallocated=701.7M(100%) Writable regions: Total=578.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=578.7M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 CoreServices 240K 1 Kernel Alloc Once 8K 1 MALLOC 183.9M 24 MALLOC guard page 16K 4 MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) STACK GUARD 56.0M 5 Stack 10.0M 5 VM_ALLOCATE 728K 12 CTF 759 1 DATA 13.6M 311 DATA_CONST 13.3M 179 __DATA_DIRTY 653K 109 FONT_DATA 4K 1 LINKEDIT 484.2M 5 OBJC_RO 61.0M 1 __OBJC_RW 2468K 2 TEXT 217.5M 313 UNICODE 588K 1 mapped file 200.1M 10 shared memory 40K 4 =========== ======= ======= TOTAL 1.6G 991 TOTAL, minus reserved VM space 1.2G 991
_av_log_set_level in /Users/mangeshsonawane551/Library/Developer/Xcode/DerivedData/SoundPusher-bmvcechqrqcfvtaagqusrzvsanqm/Build/Products/Debug/SoundPusher.app/Contents/MacOS/SoundPusher because dependent dylib @rpath/libavutil.dylib could not be loaded
You either have a problem with the FFmpeg libs you've built, or how you're linking them.
For building libs, I performed the following task, please let me know if i missed or performed it wrong
First I installed YASM:
Next I installed FFmpeg Downloaded from https://evermeet.cx/ffmpeg/ffmpeg-100906-gad2cc0e2f4.7z In terminal, inside FFmpeg folder , I performed following commands ./configure ./ make ./make install
Next I build the following script file in terminal: (FFMPEG.sh) sh FFMPEG.sh
MACOSX_DEPLOYMENT_TARGET=11.0.1 export MACOSX_DEPLOYMENT_TARGET
./configure --prefix=/Users/mangeshsonawane551/Downloads/SoundPusher-1.3.1/thirdparty/FFmpeg --cc=clang --extra-cflags="-fno-stack-check" --disable-static --enable-shared --disable-all --disable-autodetect --disable-programs --disable-doc --disable-everything --disable-pthreads --disable-network --disable-dct --disable-dwt --disable-lsp --disable-lzo --disable-rdft --disable-faan --disable-pixelutils --enable-avutil --enable-avcodec --enable-avformat --enable-swresample --enable-encoder=ac3 --enable-muxer=spdif
make -j8
make install
cd /Users/mangeshsonawane551/Downloads/SoundPusher-1.3.1/thirdparty/FFmpeg/lib
AVUTIL_ID=`otool -D libavutil.dylib | tail -1`
AVCODEC_ID=`otool -D libavcodec.dylib | tail -1`
AVFORMAT_ID=`otool -D libavformat.dylib | tail -1`
SWRESAMPLE_ID=`otool -D libswresample.dylib | tail -1`
for lib in libavutil libavcodec libavformat libswresample
do
install_name_tool -id @rpath/$lib.dylib -change $AVUTIL_ID @rpath/libavutil.dylib -change $AVCODEC_ID @rpath/libavcodec.dylib -change $AVFORMAT_ID @rpath/libavformat.dylib -change $SWRESAMPLE_ID @rpath/libswresample.dylib $lib.dylib
done
After building this, the lib path was in Xcode Library search path…and include path in user header search path.
Did you set the FFMPEG_HOME
in Xcode's custom paths so that the libs are actually found when linking? You need to make sure the FFmpeg libs are correctly linked to the binary.
Hi Daniel,
I get caught up in an exception while running the app. Please look at the attached screenshot for it. The driver as well as app builds successfully but app gets caught in this exception. Can you please let me know if there is any specific procedure to this? or is there anything to be added to your code to make the app run?
Best, Mangesh