Unclear crash when testing in Pluginval

Does anybody have any idea what the issue could be here? The stacktrace doesn’t really point to anything useful…

Starting test: pluginval / Editor Automation...

*** FAILED: VALIDATION CRASHED

0   pluginval                           0x000000010c6c1e91 _ZN4juce11SystemStats17getStackBacktraceEv + 65
1   pluginval                           0x000000010c6081c4 _ZN12_GLOBAL__N_119getCrashLogContentsEv + 52
2   pluginval                           0x000000010c6c1f84 _ZN4juceL11handleCrashEi + 20
3   libsystem_platform.dylib            0x00007fff7bba5b3d _sigtramp + 29
4   ???                                 0x4053400000000000 0x0 + 4635118810238550016
5   MyPlugin                       0x0000000110cf32e3 _ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb + 1027
6   MyPlugin                       0x0000000110cf2eaa _ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE + 186
7   MyPlugin                       0x0000000110cf3669 _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 857
8   MyPlugin                       0x0000000110cf32e3 _ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb + 1027
9   MyPlugin                       0x0000000110cf2eaa _ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE + 186
10  MyPlugin                       0x0000000110cf3839 _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1321
11  MyPlugin                       0x0000000110cf32e3 _ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb + 1027
12  MyPlugin                       0x0000000110cf2eaa _ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE + 186
13  MyPlugin                       0x0000000110cf3839 _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1321
14  MyPlugin                       0x0000000110cf32e3 _ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb + 1027
15  MyPlugin                       0x0000000110cf2eaa _ZN4juce9Component24paintWithinParentContextERNS_8GraphicsE + 186
16  MyPlugin                       0x0000000110cf3839 _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1321
17  MyPlugin                       0x0000000110cf32e3 _ZN4juce9Component20paintEntireComponentERNS_8GraphicsEb + 1027
18  MyPlugin                       0x0000000110dd542d _ZN4juce13ComponentPeer11handlePaintERNS_23LowLevelGraphicsContextE + 621
19  MyPlugin                       0x0000000110e89358 _ZN4juce12ignoreUnusedIJRPKNS_4Grid9TrackInfoEEEEvDpOT_ + 19256
20  MyPlugin                       0x0000000110e88b8d _ZN4juce12ignoreUnusedIJRPKNS_4Grid9TrackInfoEEEEvDpOT_ + 17261
21  MyPlugin                       0x0000000110e88a83 _ZN4juce12ignoreUnusedIJRPKNS_4Grid9TrackInfoEEEEvDpOT_ + 16995
22  MyPlugin                       0x0000000110e86842 _ZN4juce12ignoreUnusedIJRPKNS_4Grid9TrackInfoEEEEvDpOT_ + 8226
23  AppKit                              0x00007fff4be5a755 _NSViewDrawRect + 66
24  AppKit                              0x00007fff4be45552 -[NSView _drawRect:clip:] + 1745
25  AppKit                              0x00007fff4be43416 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4808
26  AppKit                              0x00007fff4be42d56 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3080
27  AppKit                              0x00007fff4be42d56 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3080
28  AppKit                              0x00007fff4be42d56 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3080
29  AppKit                              0x00007fff4be3fa5a -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 1887
30  AppKit                              0x00007fff4be3f099 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253
31  AppKit                              0x00007fff4be3bc86 -[NSView displayIfNeeded] + 1300
32  AppKit                              0x00007fff4be38a20 -[NSWindow displayIfNeeded] + 283
33  AppKit                              0x00007fff4be3885f __NSWindowGetDisplayCycleObserverForDisplay_block_invoke + 722
34  AppKit                              0x00007fff4be33966 NSDisplayCycleObserverInvoke + 170
35  AppKit                              0x00007fff4be334db NSDisplayCycleFlush + 1073
36  QuartzCore                          0x00007fff597821b3 _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 49
37  QuartzCore                          0x00007fff59781b7a _ZN2CA11Transaction6commitEv + 186
38  AppKit                              0x00007fff4be32e41 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 274
39  CoreFoundation                      0x00007fff4e8386ad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
40  CoreFoundation                      0x00007fff4e8385e2 __CFRunLoopDoObservers + 452
41  CoreFoundation                      0x00007fff4e7da109 __CFRunLoopRun + 1166
42  CoreFoundation                      0x00007fff4e7d9a28 CFRunLoopRunSpecific + 463
43  HIToolbox                           0x00007fff4da72b35 RunCurrentEventLoopInMode + 293
44  HIToolbox                           0x00007fff4da7286b ReceiveNextEventCommon + 618
45  HIToolbox                           0x00007fff4da725e8 _BlockUntilNextEventMatchingListInModeWithFilter + 64
46  AppKit                              0x00007fff4bd2eeb7 _DPSNextEvent + 997
47  AppKit                              0x00007fff4bd2dc56 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
48  AppKit                              0x00007fff4bd27cb9 -[NSApplication run] + 699
49  pluginval                           0x000000010c60ec6c main + 348
50  libdyld.dylib                       0x00007fff7b9bc08d start + 1

With things like this it’s most likely to be to be a memory corruption somewhere else.
I’d build pluginval from source and enable Asan then re-run the test in the debugger. Hopefully Asan will catch any dodgy memory usage and give you some useful stack traces.

1 Like

Thanks!