Crash when loading files into Wavetable Creator (Resample Mode)
-
Tested on Mac (x86 and ARM), latest develop build.
To reproduce:
-
Tools -> Open Wavetable Creator
-
Ensure that the Analysis Mode is set to "Resample"
-
Drag an audio file into the loading space. Selecting a samplemap from the drop-down list also produces a crash.
-
-
Confirmed here on MacOS too. Crash log:
------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: HISE [88903] Path: /Users/USER/*/HISE.app/Contents/MacOS/HISE Identifier: com.hartinstruments.HISEStandalone Version: 4.1.0 (4.1.0) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2025-07-25 19:24:55.1964 +0100 OS Version: macOS 15.5 (24F74) Report Version: 12 Anonymous UUID: CCB1FD68-DBB1-BA98-C0F7-4D9C638A5DAA Sleep/Wake UUID: DF6D33B0-69EB-4F03-953C-4FD81CFEA42C Time Awake Since Boot: 660000 seconds Time Since Wake: 1429 seconds System Integrity Protection: enabled Crashed Thread: 16 Convert Samplemaps to Wavetable Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 Exception Codes: 0x0000000000000001, 0x0000000000000008 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [88903] VM Region Info: 0x8 is not in any region. Bytes before following region: 4298080248 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 1002f8000-102164000 [ 30.4M] r-x/r-x SM=COW /Users/USER/*/HISE.app/Contents/MacOS/HISE Thread 0:: JUCE Message Thread Dispatch queue: com.apple.main-thread 0 HISE 0x101b04c94 juce::blurSingleChannelImage(juce::Image&, int) + 416 1 HISE 0x101b049c8 juce::DropShadow::drawForImage(juce::Graphics&, juce::Image const&) const + 212 2 HISE 0x101b0485c juce::DropShadowEffect::applyEffect(juce::Image&, juce::Graphics&, float, float) + 164 3 HISE 0x101b4e8cc juce::Component::paintEntireComponent(juce::Graphics&, bool) + 580 4 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 5 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 6 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 7 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 8 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 9 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 10 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 11 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 12 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 13 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 14 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 15 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 16 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 17 HISE 0x101b39bf8 juce::Component::paintComponentAndChildren(juce::Graphics&) + 1172 18 HISE 0x101b4e62c juce::ComponentPeer::handlePaint(juce::LowLevelGraphicsContext&) + 308 19 HISE 0x101b46d20 juce::JuceNSViewClass::drawRect(objc_object*, objc_selector*, CGRect) + 340 20 AppKit 0x196ed6d18 _NSViewDrawRect + 160 21 AppKit 0x1978ecc74 -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 1084 22 AppKit 0x196ed670c -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 536 23 AppKit 0x197593a64 -[NSViewBackingLayer drawInContext:] + 56 24 AppKit 0x197209ab8 0x196d89000 + 4721336 25 AppKit 0x1971f1fdc 0x196d89000 + 4624348 26 AppKit 0x1971ed150 0x196d89000 + 4604240 27 AppKit 0x1971f1cac 0x196d89000 + 4623532 28 AppKit 0x1971ef6b0 0x196d89000 + 4613808 29 AppKit 0x19727a574 0x196d89000 + 5182836 30 AppKit 0x19727abdc 0x196d89000 + 5184476 31 AppKit 0x197593690 -[NSViewBackingLayer display] + 1268 32 QuartzCore 0x19bf0e0b4 CA::Layer::display_if_needed(CA::Transaction*) + 748 33 QuartzCore 0x19c0a2464 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 492 34 QuartzCore 0x19beef3a8 CA::Transaction::commit() + 644 35 AppKit 0x196ee6024 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 272 36 AppKit 0x19792f4d4 ___NSRunLoopObserverCreateWithHandler_block_invoke + 64 37 CoreFoundation 0x192e9d098 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 38 CoreFoundation 0x192e9cf80 __CFRunLoopDoObservers + 536 39 CoreFoundation 0x192e9c5f0 __CFRunLoopRun + 784 40 CoreFoundation 0x192e9bc58 CFRunLoopRunSpecific + 572 41 HIToolbox 0x19e93027c RunCurrentEventLoopInMode + 324 42 HIToolbox 0x19e9334e8 ReceiveNextEventCommon + 676 43 HIToolbox 0x19eabe484 _BlockUntilNextEventMatchingListInModeWithFilter + 76 44 AppKit 0x196dc3ab4 _DPSNextEvent + 684 45 AppKit 0x1977625b0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 46 AppKit 0x196db6c64 -[NSApplication run] + 480 47 HISE 0x100312de0 main + 296 48 dyld 0x192a12b98 start + 6076 Thread 1: 0 libsystem_pthread.dylib 0x192dadb6c start_wqthread + 0 Thread 2:: Sample Loading Thread 0 libsystem_kernel.dylib 0x192d743cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x192db30e0 _pthread_cond_wait + 984 2 libc++.1.dylib 0x192ce3330 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>>>) + 104 3 HISE 0x101a2ef30 juce::WaitableEvent::wait(int) const + 152 4 HISE 0x10162748c hise::SampleThreadPool::run() + 60 5 HISE 0x101a411a4 juce::threadEntryProc(void*) + 284 6 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 7 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 3:: Javascript Thread 0 libsystem_kernel.dylib 0x192d743cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x192db30e0 _pthread_cond_wait + 984 2 libc++.1.dylib 0x192ce3330 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>>>) + 104 3 HISE 0x101a2ef30 juce::WaitableEvent::wait(int) const + 152 4 HISE 0x100d6626c hise::JavascriptThreadPool::run() + 92 5 HISE 0x101a411a4 juce::threadEntryProc(void*) + 284 6 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 7 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 4:: caulk.messenger.shared:17 0 libsystem_kernel.dylib 0x192d70bb0 semaphore_wait_trap + 8 1 caulk 0x19e417cc8 caulk::semaphore::timed_wait(double) + 224 2 caulk 0x19e417b70 caulk::concurrent::details::worker_thread::run() + 32 3 caulk 0x19e417844 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*) + 96 4 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 5 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 5:: caulk.messenger.shared:high 0 libsystem_kernel.dylib 0x192d70bb0 semaphore_wait_trap + 8 1 caulk 0x19e417cc8 caulk::semaphore::timed_wait(double) + 224 2 caulk 0x19e417b70 caulk::concurrent::details::worker_thread::run() + 32 3 caulk 0x19e417844 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*) + 96 4 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 5 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 6:: com.apple.audio.IOThread.client 0 libsystem_kernel.dylib 0x192d70bbc semaphore_wait_signal_trap + 8 1 caulk 0x19e4342f8 caulk::mach::semaphore::wait_signal_or_error(caulk::mach::semaphore&) + 36 2 CoreAudio 0x195ca2f58 HALC_ProxyIOContext::IOWorkLoop() + 5276 3 CoreAudio 0x195ca13a8 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 172 4 CoreAudio 0x195e4b37c HALC_IOThread::Entry(void*) + 88 5 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 6 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 7: 0 libsystem_kernel.dylib 0x192d70c34 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x192d833a0 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x192d79764 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x192d70fa8 mach_msg + 24 4 CoreMIDI 0x1af42deac XServerMachPort::ReceiveMessage(int&, void*, int&) + 104 5 CoreMIDI 0x1af44f740 MIDIProcess::MIDIInPortThread::Run() + 148 6 CoreMIDI 0x1af44476c CADeprecated::XThread::RunHelper(void*) + 48 7 CoreMIDI 0x1af44ee44 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 96 8 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 9 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 8:: Directory Scanner 0 libsystem_kernel.dylib 0x192d743cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x192db30e0 _pthread_cond_wait + 984 2 libc++.1.dylib 0x192ce3330 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>>>) + 104 3 HISE 0x101a2ef30 juce::WaitableEvent::wait(int) const + 152 4 HISE 0x101a2eb90 juce::TimeSliceThread::run() + 128 5 HISE 0x101a411a4 juce::threadEntryProc(void*) + 284 6 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 7 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 9: 0 libsystem_pthread.dylib 0x192dadb6c start_wqthread + 0 Thread 10: 0 libsystem_pthread.dylib 0x192dadb6c start_wqthread + 0 Thread 11: 0 libsystem_pthread.dylib 0x192dadb6c start_wqthread + 0 Thread 12: 0 libsystem_pthread.dylib 0x192dadb6c start_wqthread + 0 Thread 13:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x192d70c34 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x192d833a0 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x192d79764 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x192d70fa8 mach_msg + 24 4 CoreFoundation 0x192e9de7c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x192e9c798 __CFRunLoopRun + 1208 6 CoreFoundation 0x192e9bc58 CFRunLoopRunSpecific + 572 7 AppKit 0x196ee77fc _NSEventThread + 140 8 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 9 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 14:: JUCE Timer 0 libsystem_kernel.dylib 0x192d743cc __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x192db30e0 _pthread_cond_wait + 984 2 libc++.1.dylib 0x192ce3330 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>>>) + 104 3 HISE 0x101a2ef30 juce::WaitableEvent::wait(int) const + 152 4 HISE 0x101abb2d4 juce::Timer::TimerThread::run() + 188 5 HISE 0x101a411a4 juce::threadEntryProc(void*) + 284 6 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 7 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 15:: caulk::deferred_logger 0 libsystem_kernel.dylib 0x192d70bb0 semaphore_wait_trap + 8 1 caulk 0x19e417cc8 caulk::semaphore::timed_wait(double) + 224 2 caulk 0x19e417b70 caulk::concurrent::details::worker_thread::run() + 32 3 caulk 0x19e417844 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*) + 96 4 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 5 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 16 Crashed:: Convert Samplemaps to Wavetable 0 HISE 0x10099c410 hise::getMemoryBlockFromWavetableData(juce::ValueTree const&, int) + 200 1 HISE 0x10099b380 hise::WavetableSound::WavetableSound(juce::ValueTree const&, hise::Processor*) + 512 2 HISE 0x1009faf30 hise::SampleMapToWavetableConverter::rebuildPreviewBuffersInternal() + 1904 3 HISE 0x100440588 std::__1::__function::__func<hise::WavetableConverterDialog::loadSampleMap(juce::ValueTree const&)::'lambda'(), std::__1::allocator<hise::WavetableConverterDialog::loadSampleMap(juce::ValueTree const&)::'lambda'()>, void ()>::operator()() + 1292 4 HISE 0x10044a2d4 std::__1::__function::__func<hise::WavetableConverterDialog::run()::'lambda'(std::__1::function<void ()>&), std::__1::allocator<hise::WavetableConverterDialog::run()::'lambda'(std::__1::function<void ()>&)>, bool (std::__1::function<void ()>&)>::operator()(std::__1::function<void ()>&) + 152 5 HISE 0x100447994 hise::WavetableConverterDialog::run() + 684 6 HISE 0x100533018 hise::DialogWindowWithBackgroundThread::LoadingThread::run() + 32 7 HISE 0x101a411a4 juce::threadEntryProc(void*) + 284 8 libsystem_pthread.dylib 0x192db2c0c _pthread_start + 136 9 libsystem_pthread.dylib 0x192dadb80 thread_start + 8 Thread 16 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000171c72768 x2: 0x00000000000120a9 x3: 0x0000000000000001 x4: 0x0000000000000001 x5: 0x00000000c42499f4 x6: 0x00006000021bfe60 x7: 0x0000000000000000 x8: 0x0000000101a2f58c x9: 0x0000000171c72740 x10: 0x00000b0000000b02 x11: 0x0000010000000000 x12: 0x00000000fffffffd x13: 0x00000b0000000000 x14: 0x0000000000000b00 x15: 0x0000000000000000 x16: 0x00000b0000000b00 x17: 0x00000b0000000b02 x18: 0x0000000000000000 x19: 0x0000000171c72c30 x20: 0x0000000171c727f0 x21: 0x0000000171c72c30 x22: 0x0000000171c727e8 x23: 0x0000000171c72748 x24: 0x0000000000000000 x25: 0x000000010881eea0 x26: 0x0000000108315c10 x27: 0x0000600003a460c8 x28: 0x0000000108315d80 fp: 0x0000000171c727b0 lr: 0x000000010099c40c sp: 0x0000000171c72740 pc: 0x000000010099c410 cpsr: 0x60001000 far: 0x0000000000000008 esr: 0x92000006 (Data Abort) byte read Translation fault Binary Images: 0x1002f8000 - 0x102163fff com.hartinstruments.HISEStandalone (4.1.0) <4b76ad00-b33f-3e12-95d5-2feb382eb5ed> /Users/USER/*/HISE.app/Contents/MacOS/HISE 0x106d54000 - 0x106d5ffff libobjc-trampolines.dylib (*) <d02a05cb-6440-3e7e-a02f-931734cab666> /usr/lib/libobjc-trampolines.dylib 0x1080f4000 - 0x10822ffff com.apple.audio.units.Components (1.14) <674f87bc-21a4-309b-9e43-c7ba1cd95d7b> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio 0x107e00000 - 0x107f8ffff offlinetransient.dylib (*) <2baf6788-5ef3-32ec-a76d-d5b6836f5b05> /Users/USER/*/offlinetransient.dylib 0x141b90000 - 0x142227fff com.apple.AGXMetalG13X (327.5) <a459e0d8-5ddb-360f-817e-bc708b1711b0> /System/Library/Extensions/AGXMetalG13X.bundle/Contents/MacOS/AGXMetalG13X 0x15e388000 - 0x15ec6bfff com.apple.audio.codecs.Components (7.0) <42d57795-e86d-36e5-9fae-f2ba92271fba> /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs 0x196d89000 - 0x19821ac7f com.apple.AppKit (6.9) <5d0da1bd-412c-3ed8-84e9-40ca62fe7b42> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x19beed000 - 0x19c2c0c7f com.apple.QuartzCore (1.11) <e0d9f378-dc87-33f8-93a5-3c62ad30ea19> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x192e21000 - 0x19335ffff com.apple.CoreFoundation (6.9) <df489a59-b4f6-32b8-9bb4-9b832960aa52> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x19e86d000 - 0x19eb73fdf com.apple.HIToolbox (2.1.1) <9286e29f-fcee-31d0-acea-2842ea23bedf> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x192a0c000 - 0x192aa74cf dyld (*) <9cf0401a-a938-389e-a77d-9e9608076ccf> /usr/lib/dyld 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x192dac000 - 0x192db8a47 libsystem_pthread.dylib (*) <647b91fc-96d3-3bbb-af08-970df45257c8> /usr/lib/system/libsystem_pthread.dylib 0x192d70000 - 0x192dab653 libsystem_kernel.dylib (*) <60485b6f-67e5-38c1-aec9-efd6031ff166> /usr/lib/system/libsystem_kernel.dylib 0x192cc5000 - 0x192d51ff7 libc++.1.dylib (*) <875203a1-087b-33a6-93a5-928bb7e9114c> /usr/lib/libc++.1.dylib 0x19e416000 - 0x19e43dddf com.apple.audio.caulk (1.0) <5ce1b98f-c512-379d-9a42-5cce5923bf9d> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk 0x195aae000 - 0x1961e225f com.apple.audio.CoreAudio (5.0) <b2b97b04-6275-3031-8a89-be6105f1e8f3> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x1af3ef000 - 0x1af4a9d1f com.apple.audio.midi.CoreMIDI (2.0) <cf441ec3-9851-3874-8fe1-17d470031ea5> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 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: 2 thread_create: 0 thread_set_state: 0