I’m wondering what made it crash, happened 2 times now. What could it be? This is JUCE V1.46.
Basically, I’m doing this in a Thread (not the main GUI Thread):
using MessageManagerLock then adding subItem via TreeViewItem::addSubItem()
I guess it crashes because somewhere there’s repaint() called in it? Should I use callFunctionOnMessageThread() ?
Thread 6 Crashed:
0 com.apple.CoreGraphics 0x96a41d9f shape_union + 687
1 com.apple.CoreGraphics 0x96a4a074 CGSUnionRegion + 264
2 com.apple.HIServices 0x93b85a75 CreateUnion(__HIShape
const*, __HIShape const*, void**) + 57
3 com.apple.HIServices 0x93b89106 HIShapeCreateUnion + 36
4 com.apple.HIToolbox 0x9389b590
HIView::Invalidate(__HIShape const*) + 346
5 com.apple.HIToolbox 0x939030e5
HIViewSetNeedsDisplayInRect + 113
6 com.schaack.touch 0x001d6b88
juce::HIViewComponentPeer::repaint(int, int, int, int) + 236
7 com.schaack.touch 0x0009706b
juce::Component::repaint() + 93
8 com.schaack.touch 0x0009920e
juce::Component::setBounds(int, int, int, int) + 438
9 com.schaack.touch 0x000996c3
juce::Component::setBounds(juce::Rectangle const&) + 47
10 com.schaack.touch 0x001e371c
juce::TreeViewContentComponent::updateComponents() + 880
11 com.schaack.touch 0x000924c0
juce::TreeView::handleAsyncUpdate() + 98
12 com.schaack.touch 0x000927e9
juce::TreeViewItem::addSubItem(juce::TreeViewItem*, int) + 569
13 com.schaack.touch 0x000439f8
QuadFileTreeComponent::run() + 426
14 com.schaack.touch 0x000faa42
juce::Thread::threadEntryPoint(juce::Thread*) + 274
15 com.schaack.touch 0x00074679
juce::threadEntryProc(void*) + 17
16 libSystem.B.dylib 0x94bf8095 _pthread_start + 321
17 libSystem.B.dylib 0x94bf7f52 thread_start + 34