Hise crashing
-
@DanH Doesn't optimize the code, which can hide warnings/errors, and adds debug symbols that can be picked up by a debugging tool.
-
Where is the crash log situated ?
-
@d-healey @Christoph-Hart where logs are stored?
-
@arminh Found them in
Application Support/Hise/Logs
-
This crashing is happening to me too. I think it's related to the Full Exp merge because when I revert that commit everything is fine.
-
Crashed Thread: 0 JUCE Message Thread Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: abort() called *** error for object 0x6100004234ff: Invalid pointer dequeued from free list Thread 0 Crashed:: JUCE Message Thread Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff94ba1d42 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff94c8f457 pthread_kill + 90 2 libsystem_c.dylib 0x00007fff94b07420 abort + 129 3 libsystem_malloc.dylib 0x00007fff94c06e28 nanozone_error + 525 4 libsystem_malloc.dylib 0x00007fff94bfc620 _nano_malloc_check_clear + 427 5 libsystem_malloc.dylib 0x00007fff94bfc457 nano_malloc + 35 6 libsystem_malloc.dylib 0x00007fff94bf531a malloc_zone_malloc + 107 7 com.apple.CoreFoundation 0x00007fff7edbbcc6 __CFBasicHashRehash + 230 8 com.apple.CoreFoundation 0x00007fff7edc1de6 __CFBasicHashAddValue + 102 9 com.apple.CoreFoundation 0x00007fff7edc07e5 CFBasicHashAddValue + 309 10 com.apple.CoreFoundation 0x00007fff7ee11c09 CFRunLoopAddTimer + 601 11 com.apple.CoreFoundation 0x00007fff7ee0c8a2 __CFSetApplyFunction_block_invoke + 18 12 com.apple.CoreFoundation 0x00007fff7edf90d0 CFBasicHashApply + 144 13 com.apple.CoreFoundation 0x00007fff7ee0c849 CFSetApplyFunction + 185 14 com.apple.CoreFoundation 0x00007fff7ee11bd2 CFRunLoopAddTimer + 546 15 com.apple.AppKit 0x00007fff7cd62843 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke.31 + 213 16 com.apple.CoreFoundation 0x00007fff7ee5c687 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 17 com.apple.CoreFoundation 0x00007fff7ee5c5f7 __CFRunLoopDoObservers + 391 18 com.apple.CoreFoundation 0x00007fff7ee3d3a9 __CFRunLoopRun + 873 19 com.apple.CoreFoundation 0x00007fff7ee3cde4 CFRunLoopRunSpecific + 420 20 com.apple.HIToolbox 0x00007fff7e39bebc RunCurrentEventLoopInMode + 240 21 com.apple.HIToolbox 0x00007fff7e39bbf9 ReceiveNextEventCommon + 184 22 com.apple.HIToolbox 0x00007fff7e39bb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 23 com.apple.AppKit 0x00007fff7c930a54 _DPSNextEvent + 1120 24 com.apple.AppKit 0x00007fff7d0ac7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 25 com.apple.AppKit 0x00007fff7c9253db -[NSApplication run] + 926 26 com.hartinstruments.HISEStandalone 0x000000010c1d433b main + 347 27 com.hartinstruments.HISEStandalone 0x000000010c1aace4 start + 52
-
Not stable here too…
-
I just compiled this version and so far I haven't had any crashes (knock on wood).
-
I'm fairly certain it's related to the changes made to ScriptPanels:
GitHub Commit - made scriptpanel hold ref counted pointers to child panelsIt consistently crashes on panel repaints, specifically when repainting a child panel while also repainting a parent panel.
-
Ah I haven't even began to use paint routines yet, still using stock elements.
-
@Lunacy-Audio Can you make a snippet that crashes reliably, that will save me some time...
-
For sure! Will post something later today.
-
@Christoph-Hart This one crashes a lot:
I replaced the getSystemTime() API call with a permanent string so you don't have to merge. It still crashes anyway...HiseSnippet 2579.3oc6Z07aaibEmx1LarSb1roAEs.8vTchdihLo7mIoKrTrrhUp+PwxaxFXDrcL4HoAgjiJ4HaqFja8Pu0dq2JJv9WPuUTfBrn+ETfhh85dZOVrG5419lgeHpOirqiqcwJaSy48l2i+l27l27dCUEOlIw2m4ojZ58a2jnj5lpU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YV4LHypiTFQcyEZwYNAqw.BU1H3ULlJ9UUlZRk+C7eYFkI
-
Yup, that's a good example. The problem is if you recompile a script while a timer is running, then it will try to execute a timer callback for a nonexisting engine. I'll look into it...
-
@Christoph-Hart Yeah I noticed that timers are often a cause for crash for a long time.
In this snippet, I even get crashes with the timer not running at compile -
@ustk Oh yeah and it also crashes while running without any action ;)
-
Alright, please try it now, I've just commited a fix for it.
It should also prevent dangling repaint calls, control callbacks whatever from being executed. Actually there is already a protection in place, but for some reason it failed, so now we have double protection against dangling callbacks :)
-
@Christoph-Hart Cool! Testing...
-
@Christoph-Hart It is so bulletproof now that the Timer doesn't start anymore
-
Yes, TOTAL PROTECTION!!!