Thread 10 Crashed:: com.apple.audio.IOThread.client - on standalone app
-
Like some of you, I have a standalone app that I use as a downloader / installer for plugins. The app is made in HISE, works fine, but I just got a crash report from one user who tells me it crashes on launch for him. I believe it was killed bu the IOThread - see the report below. The question is - how can I fix it, or is there a way to export the standalone version of the HISE project with audio disabled?
------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: mycompanyInstaller [42890] Path: /Volumes/*/mycompanyInstaller.app/Contents/MacOS/mycompanyInstaller Identifier: com.mycompany.installer Version: 1.0.194 (1.0.194) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2025-10-22 21:43:17.6246 -0400 OS Version: macOS 15.7.1 (24G231) Report Version: 12 Bridge OS Version: 10.0 (23P350) Anonymous UUID: C6830AB8-3DD0-9924-08C3-826F6F669AFE Sleep/Wake UUID: 9BA78A31-7AE2-4C51-BCA0-E8540FDB1E40 Time Awake Since Boot: 320000 seconds Time Since Wake: 2766 seconds System Integrity Protection: enabled Crashed Thread: 10 com.apple.audio.IOThread.client Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [42890] VM Region Info: 0 is not in any region. Bytes before following region: 4375527424 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 104cd4000-10637c000 [ 22.7M] r-x/r-x SM=COW /Volumes/*/mycompanyInstaller.app/Contents/MacOS/mycompanyInstaller Thread 0:: JUCE Message Thread Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff8172eeb4a mach_msg2_trap + 10 1 libsystem_kernel.dylib 0x7ff8172fd704 mach_msg2_internal + 83 2 libsystem_kernel.dylib 0x7ff8172f5bc3 mach_msg_overwrite + 574 3 libsystem_kernel.dylib 0x7ff8172eee3b mach_msg + 19 4 CoreMIDI 0x7ff83445fc80 MIDIProcessMIG::GetObjectTree(int&) + 160 5 CoreMIDI 0x7ff8344b1ad1 ObjectTreeCache::ObjectTreeAccessor::ObjectTreeAccessor(ObjectTreeCache&, __CFData const* (*)(void*, int&), void*, int&) + 115 6 CoreMIDI 0x7ff8344b1e55 MIDIGetNumberOfSources + 80 7 mycompanyInstaller 0x105c44eaa 0x104cd4000 + 16191146 8 mycompanyInstaller 0x105c49738 0x104cd4000 + 16209720 9 mycompanyInstaller 0x104d2aeef 0x104cd4000 + 356079 10 mycompanyInstaller 0x104d2abd5 0x104cd4000 + 355285 11 mycompanyInstaller 0x104d39d83 0x104cd4000 + 417155 12 mycompanyInstaller 0x104d3951e 0x104cd4000 + 415006 13 mycompanyInstaller 0x104dc557b 0x104cd4000 + 988539 14 mycompanyInstaller 0x1051018af 0x104cd4000 + 4380847 15 mycompanyInstaller 0x105101db2 0x104cd4000 + 4382130 16 mycompanyInstaller 0x105d68b32 0x104cd4000 + 17386290 17 mycompanyInstaller 0x105eb31ab 0x104cd4000 + 18739627 18 mycompanyInstaller 0x104ce4a58 0x104cd4000 + 68184 19 dyld 0x7ff816f8b530 start + 3056 Thread 1: 0 libsystem_pthread.dylib 0x7ff81732c834 start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x7ff81732c834 start_wqthread + 0 Thread 3: 0 libsystem_pthread.dylib 0x7ff81732c834 start_wqthread + 0 Thread 4:: Sample Loading Thread 0 libsystem_kernel.dylib 0x7ff8172f16f6 __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x7ff8173312ae _pthread_cond_wait + 988 2 libc++.1.dylib 0x7ff817273919 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>) + 93 3 mycompanyInstaller 0x105ce0e52 0x104cd4000 + 16830034 4 mycompanyInstaller 0x1058d5edd 0x104cd4000 + 12590813 5 mycompanyInstaller 0x105cf56f3 0x104cd4000 + 16914163 6 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 7 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 5:: Javascript Thread 0 libsystem_kernel.dylib 0x7ff8172f16f6 __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x7ff8173312ae _pthread_cond_wait + 988 2 libc++.1.dylib 0x7ff817273919 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>) + 93 3 mycompanyInstaller 0x105ce0e52 0x104cd4000 + 16830034 4 mycompanyInstaller 0x1053dc4bd 0x104cd4000 + 7374013 5 mycompanyInstaller 0x105cf56f3 0x104cd4000 + 16914163 6 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 7 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 6:: Server Thread 0 libsystem_kernel.dylib 0x7ff8172f16f6 __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x7ff8173312ae _pthread_cond_wait + 988 2 libc++.1.dylib 0x7ff817273919 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>) + 93 3 mycompanyInstaller 0x105ce0e52 0x104cd4000 + 16830034 4 mycompanyInstaller 0x1052c22f1 0x104cd4000 + 6218481 5 mycompanyInstaller 0x105cf56f3 0x104cd4000 + 16914163 6 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 7 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 7:: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x7ff8172eeb4a mach_msg2_trap + 10 1 libsystem_kernel.dylib 0x7ff8172fd704 mach_msg2_internal + 83 2 libsystem_kernel.dylib 0x7ff8172f5bc3 mach_msg_overwrite + 574 3 libsystem_kernel.dylib 0x7ff8172eee3b mach_msg + 19 4 CoreFoundation 0x7ff81741abf2 __CFRunLoopServiceMachPort + 145 5 CoreFoundation 0x7ff81741963f __CFRunLoopRun + 1430 6 CoreFoundation 0x7ff817418a72 CFRunLoopRunSpecific + 536 7 CFNetwork 0x7ff81cd6d828 +[__CFN_CoreSchedulingSetRunnable _run:] + 447 8 Foundation 0x7ff818555d29 __NSThread__start__ + 1014 9 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 10 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 8:: caulk.messenger.shared:17 0 libsystem_kernel.dylib 0x7ff8172eeac6 semaphore_wait_trap + 10 1 caulk 0x7ff822a25a42 caulk::semaphore::timed_wait(double) + 158 2 caulk 0x7ff822a25964 caulk::concurrent::details::worker_thread::run() + 30 3 caulk 0x7ff822a256a8 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 41 4 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 5 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 9:: caulk.messenger.shared:high 0 libsystem_kernel.dylib 0x7ff8172eeac6 semaphore_wait_trap + 10 1 caulk 0x7ff822a25a42 caulk::semaphore::timed_wait(double) + 158 2 caulk 0x7ff822a25964 caulk::concurrent::details::worker_thread::run() + 30 3 caulk 0x7ff822a256a8 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*>>>(void*) + 41 4 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 5 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 10 Crashed:: com.apple.audio.IOThread.client 0 libsystem_platform.dylib 0x7ff817366e15 _platform_bzero$VARIANT$Haswell + 53 1 mycompanyInstaller 0x104ceead9 0x104cd4000 + 109273 2 mycompanyInstaller 0x105cd2ee6 0x104cd4000 + 16772838 3 mycompanyInstaller 0x105c49a97 0x104cd4000 + 16210583 4 mycompanyInstaller 0x105c4393d 0x104cd4000 + 16185661 5 CoreAudio 0x7ff819db72b9 HALC_ProxyIOContext::IOWorkLoop() + 13017 6 CoreAudio 0x7ff819db384f invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 141 7 CoreAudio 0x7ff819f62d97 HALC_IOThread::Entry(void*) + 73 8 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 9 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 11: 0 libsystem_kernel.dylib 0x7ff8172eeb4a mach_msg2_trap + 10 1 libsystem_kernel.dylib 0x7ff8172fd704 mach_msg2_internal + 83 2 libsystem_kernel.dylib 0x7ff8172f5bc3 mach_msg_overwrite + 574 3 libsystem_kernel.dylib 0x7ff8172eee3b mach_msg + 19 4 CoreMIDI 0x7ff834476674 XServerMachPort::ReceiveMessage(int&, void*, int&) + 98 5 CoreMIDI 0x7ff834496d92 MIDIProcess::MIDIInPortThread::Run() + 104 6 CoreMIDI 0x7ff83448c4dc CADeprecated::XThread::RunHelper(void*) + 10 7 CoreMIDI 0x7ff834496503 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 77 8 libsystem_pthread.dylib 0x7ff817330e05 _pthread_start + 115 9 libsystem_pthread.dylib 0x7ff81732c857 thread_start + 15 Thread 10 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000001 rcx: 0x0000000000000000 rdx: 0x0000000000000800 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000700003a54780 rsp: 0x0000700003a54780 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00007f9e14298ab0 r11: 0x00000000000000ff r12: 0x00007f9e14298ab0 r13: 0x00007f9e14295240 r14: 0x0000000000000002 r15: 0x0000000000000200 rip: 0x00007ff817366e15 rfl: 0x0000000000010287 cr2: 0x0000000000000000 Logical CPU: 10 Error Code: 0x00000006 (no mapping for user data write) Trap Number: 14 Thread 10 instruction stream: 0f 6e c6 48 89 f8 48 83-fa 40 0f 82 92 00 00 00 .n.H..H..@...... 48 81 fa 00 80 00 00 0f-82 3e 00 00 00 e9 28 00 H........>....(. 00 00 66 0f 1f 84 00 00-00 00 00 55 48 89 e5 48 ..f........UH..H 89 f2 48 31 f6 0f 57 c0-48 89 f8 48 83 fa 40 72 ..H1..W.H..H..@r 61 48 81 fa 00 80 00 00-72 11 48 89 d1 48 89 f0 aH......r.H..H.. 48 89 fa fc f3 aa 48 89-d0 5d c3 c4 e2 7d 18 c0 H.....H..]...}.. [c5]fc 11 07 48 83 c7 20-48 83 e7 e0 48 89 f9 48 ....H.. H...H..H <== 29 c1 48 29 ca 48 83 ea-40 76 13 c5 fc 29 07 c5 ).H).H..@v...).. fc 29 47 20 48 83 c7 40-48 83 ea 40 77 ed c5 fc .)G H..@H..@w... 11 04 17 c5 fc 11 44 17-20 c5 f8 77 5d c3 48 89 ......D. ..w].H. 34 17 48 83 ea 08 73 f6-48 83 c2 08 74 0b 40 88 4.H...s.H...t.@. 74 17 ff 48 83 ea 01 75-f5 5d c3 00 00 00 00 00 t..H...u.]...... Binary Images: 0x104cd4000 - 0x10637bfff com.mycompany.installer (1.0.194) <38a41930-677b-3afb-a56c-5a84d253599e> /Volumes/*/mycompanyInstaller.app/Contents/MacOS/mycompanyInstaller 0x10ab5a000 - 0x10ab66fff libobjc-trampolines.dylib (*) <72642d3c-0206-38ee-9349-c720aee663ee> /usr/lib/libobjc-trampolines.dylib 0x10b655000 - 0x10b79afff com.apple.audio.units.Components (1.14) <0c58f773-af4f-3ffe-8afb-208dd09a25f4> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio 0x10b50d000 - 0x10b510fff com.apple.audio.AppleGFXHDAHALPlugIn (400.1) <2632d85e-872b-3803-b97c-57373660744c> /System/Library/Extensions/AppleGFXHDA.kext/Contents/PlugIns/AppleGFXHDAHALPlugIn.bundle/Contents/MacOS/AppleGFXHDAHALPlugIn 0x7ff8172ee000 - 0x7ff81732ab6f libsystem_kernel.dylib (*) <031ffbbd-67f0-3987-b4a5-ecf01645bbc2> /usr/lib/system/libsystem_kernel.dylib 0x7ff83443c000 - 0x7ff8344ec1fe com.apple.audio.midi.CoreMIDI (2.0) <4a3a0872-cc95-3760-905a-42757e071ede> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x7ff816f85000 - 0x7ff81701f6c7 dyld (*) <f2ac8d7d-a591-365c-800c-8f2703203169> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x7ff81732b000 - 0x7ff817336fd7 libsystem_pthread.dylib (*) <a031f066-4daa-3801-9155-88106d874835> /usr/lib/system/libsystem_pthread.dylib 0x7ff817258000 - 0x7ff8172d6fff libc++.1.dylib (*) <1ba8415d-93c3-301f-80aa-c2d396c32dd7> /usr/lib/libc++.1.dylib 0x7ff81739f000 - 0x7ff817853fe2 com.apple.CoreFoundation (6.9) <017c4e4b-3ba4-3d60-b340-c0bc0608711a> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff81cb2f000 - 0x7ff81ced54aa com.apple.CFNetwork (1.0) <685aee49-ad61-3f1f-8df1-8cae74541c1a> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7ff818501000 - 0x7ff8192f2b61 com.apple.Foundation (6.9) <48a78419-c565-3eb8-906d-b1548131b748> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7ff822a24000 - 0x7ff822a47d07 com.apple.audio.caulk (1.0) <a84cc72a-fe0a-3724-a65b-c5b03e47741b> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk 0x7ff817366000 - 0x7ff81736f93f libsystem_platform.dylib (*) <78c9dcc0-2fba-3be4-a1dd-da618362ae68> /usr/lib/system/libsystem_platform.dylib 0x7ff819bcc000 - 0x7ff81a30ad38 com.apple.audio.CoreAudio (5.0) <ea328325-5b67-38a3-8e91-3eab8dc7df96> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 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: 0 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=800.8M resident=0K(0%) swapped_out_or_unallocated=800.8M(100%) Writable regions: Total=725.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=725.2M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 ColorSync 224K 25 CoreServices 180K 1 Foundation 16K 1 Kernel Alloc Once 8K 1 MALLOC 710.3M 164 MALLOC guard page 64K 16 MALLOC_LARGE (reserved) 256K 1 reserved VM address space (unallocated) SQLite page cache 128K 1 STACK GUARD 56.0M 12 Stack 13.6M 12 VM_ALLOCATE 188K 7 __CTF 824 1 __DATA 13.8M 475 __DATA_CONST 56.6M 496 __DATA_DIRTY 1046K 143 __FONT_DATA 2352 1 __LINKEDIT 162.0M 5 __OBJC_RO 61.3M 1 __OBJC_RW 2396K 2 __TEXT 638.7M 511 __TPRO_CONST 16 2 libnetwork 128K 8 mapped file 77.5M 18 shared memory 864K 19 =========== ======= ======= TOTAL 1.8G 1924 TOTAL, minus reserved VM space 1.8G 1924
-
@tomekslesicki said in Thread 10 Crashed:: com.apple.audio.IOThread.client - on standalone app:
how can I fix it
Are you able to recreate the error on your system or a VM?
Can you share the project?
-
@tomekslesicki If CoreAudio has started (and seems to be the cause of a bad memory writing here), maybe it is simply possible to call this in order to disable audio entirely...
Settings.setAudioDeviceType("");
Not tested but if it works we shall all do the same in our apps!
-
@ustk @Christoph-Hart can you confirm this is a vaiable solution?
-
@tomekslesicki said in Thread 10 Crashed:: com.apple.audio.IOThread.client - on standalone app:
can you confirm this is a vaiable solution?
I don't think it is. I think you need to figure out why your standalone app is crashing on launch, that's not normal behaviour.
Make a new empty project, compile it as a standalone and send it to the user. See if that also crashes on launch. If it doesn't then we know there is something wrong with your project, if it does then there is something wrong with HISE.