~Audio: about to stop_music() ~Audio: about to quit subsystem Destroying AudioMixer... Destroying MidiDriver... libc++abi: terminating due to uncaught exception of type std::__1::system_error: thread::join failed: Invalid argument Process 6275 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x000000018748e0dc libsystem_kernel.dylib`__pthread_kill + 8 libsystem_kernel.dylib`: -> 0x18748e0dc <+8>: b.lo 0x18748e0fc ; <+40> 0x18748e0e0 <+12>: pacibsp 0x18748e0e4 <+16>: stp x29, x30, [sp, #-0x10]! 0x18748e0e8 <+20>: mov x29, sp Target 0: (exult) stopped. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT * frame #0: 0x000000018748e0dc libsystem_kernel.dylib`__pthread_kill + 8 frame #1: 0x00000001874c5cc0 libsystem_pthread.dylib`pthread_kill + 288 frame #2: 0x00000001873d1a40 libsystem_c.dylib`abort + 180 frame #3: 0x000000018747d070 libc++abi.dylib`abort_message + 132 frame #4: 0x000000018746d110 libc++abi.dylib`demangling_terminate_handler() + 320 frame #5: 0x000000018711399c libobjc.A.dylib`_objc_terminate() + 160 frame #6: 0x000000018747c434 libc++abi.dylib`std::__terminate(void (*)()) + 16 frame #7: 0x000000018747c3d8 libc++abi.dylib`std::terminate() + 108 frame #8: 0x0000000100006500 exult`__clang_call_terminate + 12 frame #9: 0x0000000100169e98 exult`Pentagram::AudioMixer::~AudioMixer(this=0x00006000007500c0) at AudioMixer.cc:128:12 frame #10: 0x0000000100169f8c exult`Pentagram::AudioMixer::~AudioMixer(this=0x00006000007500c0) at AudioMixer.cc:127:27 frame #11: 0x000000010015ea48 exult`std::__1::default_delete::operator()[abi:v160006](this=0x00006000000405d8, __ptr=0x00006000007500c0) const at unique_ptr.h:65:5 frame #12: 0x0000000100158790 exult`std::__1::unique_ptr>::reset[abi:v160006](this=0x00006000000405d8, __p=0x0000000000000000) at unique_ptr.h:297:7 frame #13: 0x000000010015e98c exult`std::__1::unique_ptr>::~unique_ptr[abi:v160006](this=0x00006000000405d8) at unique_ptr.h:263:75 frame #14: 0x00000001001588ac exult`std::__1::unique_ptr>::~unique_ptr[abi:v160006](this=0x00006000000405d8) at unique_ptr.h:263:73 frame #15: 0x0000000100159884 exult`Audio::~Audio(this=0x00006000000405a0) at Audio.cc:376:1 frame #16: 0x000000010015830c exult`Audio::~Audio(this=0x00006000000405a0) at Audio.cc:366:17 frame #17: 0x00000001001582d0 exult`Audio::Destroy() at Audio.cc:203:2 frame #18: 0x000000010008ab50 exult`Play() at exult.cc:1040:2 frame #19: 0x0000000100085014 exult`exult_main(runpath="/Users/Dominus/code/snapshots/exult/exult") at exult.cc:668:21 frame #20: 0x0000000100083684 exult`main(argc=1, argv=0x000000016fdff4c0) at exult.cc:458:12 frame #21: 0x00000001871450e0 dyld`start + 2360