I have extremely rare crashes, but they all share the basically pattern, while a graphics context is created on a image on macOS (message Thread)
The crash either happens while creating the context
|0 libobjc.A.dylib |0x00007fff7a8528bf objc_retain + 31|
|---|---|
|1 com.apple.CoreGraphics |0x00007fff4eb05867 CGColorRetain + 22|
|2 com.apple.CoreGraphics |0x00007fff4eb06e1b CGGStateCreateCopy + 68|
|3 com.apple.CoreGraphics |0x00007fff4eb06dc1 CGGStackSave + 47|
|4 com.apple.CoreGraphics |0x00007fff4eb06d72 CGContextSaveGState + 32|
|5 com.my.plugin |0x0000000124de9109 juce::CoreGraphicsContext::CoreGraphicsContext(CGContext*, float, float) + 473 (juce_mac_CoreGraphicsContext.mm:245)|
or while drawing on it
|0 libsystem_pthread.dylib |0x00007fff7bb2111b pthread_mutex_lock + 0|
|---|---|
|1 com.apple.CoreGraphics |0x00007fff4eb06ea2 CGClipStackRetain + 14|
|2 com.apple.CoreGraphics |0x00007fff4eb06e74 CGGStateClipCopy + 22|
|3 com.apple.CoreGraphics |0x00007fff4eb06e2a CGGStateCreateCopy + 83|
|4 com.apple.CoreGraphics |0x00007fff4eb06dc1 CGGStackSave + 47|
|5 com.apple.CoreGraphics |0x00007fff4eb06d72 CGContextSaveGState + 32|
|6 com.my.plugin |0x0000000122920b78 juce::CoreGraphicsContext::drawImage(juce::Image const&, juce::AffineTransform const&, bool) + 168 (juce_mac_CoreGraphicsContext.mm:571)
The crash happens always with a debug version, but without debugging it.
I use a juce version, right before this commit.
I now the question is stupid, but the crash is so rare that I cannot make a good evaluation.
Is it likely that such crashes were caused by the issue fixed in the commit?