Hey,
I very rarely get a crash with the following stack trace. I know this is not much information, but maybe somebody has an idea? The problem seems to be a textlayouts draw function. But this is very hard to debug since it happens very rarely and the trace is so strange with the glyph stuff. We are using a font that is included in the binary data. Could there be a problem with that? No matter what I do, I can’t reproduce it.
0 Nylon 0x0000000126b632b1 _ZN4juceL11handleCrashEi + 65
1 libsystem_platform.dylib 0x00007fff67b4ab3d _sigtramp + 29
2 ??? 0x0000000000000000 0x0 + 0
3 libFontParser.dylib 0x00007fff38bef27b _ZNK17TSFNTOpenTypeFont10GetCFFDataEim + 53
4 libFontParser.dylib 0x00007fff38be39f8 _ZNK13TOpenTypeFont13GetCharStringEt + 90
5 libFontParser.dylib 0x00007fff38bdadd8 _ZNK17TType1FontHandler12ParseOutlineEtR22TType1RenderingContext + 52
6 libFontParser.dylib 0x00007fff38bdad8e _ZNK32TType1FontType2CharStringHandler12ParseOutlineEtR22TType1RenderingContext + 14
7 libFontParser.dylib 0x00007fff38c2ae9f _ZNK32TType1FontType2CharStringHandler14GetOutlinePathEtRK18TGlyphOutlineBatchPb + 269
8 libFontParser.dylib 0x00007fff38bc4d93 FPFontCopyGlyphPath + 371
9 CoreGraphics 0x00007fff3ab75bd3 CGFontCreateGlyphPath + 42
10 CoreGraphics 0x00007fff3ab75991 CGFontCreateGlyphBitmapWithDilation + 787
11 CoreGraphics 0x00007fff3ab75395 _ZN14CGGlyphBuilder22create_missing_bitmapsEPK17CGGlyphIdentifiermPPK13CGGlyphBitmap + 169
12 CoreGraphics 0x00007fff3ab74f39 _ZN14CGGlyphBuilder18lock_glyph_bitmapsEPK17CGGlyphIdentifiermPPK13CGGlyphBitmap + 165
13 CoreGraphics 0x00007fff3ab74d5a render_glyphs + 184
14 CoreGraphics 0x00007fff3ab74560 draw_glyph_bitmaps + 1071
15 CoreGraphics 0x00007fff3ab740a3 ripc_DrawGlyphs + 1454
16 CoreGraphics 0x00007fff3ab73757 CGContextDelegateDrawGlyphs + 906
17 AppKit 0x00007fff37f91090 __backing_store_DrawGlyphs_block_invoke + 48
18 AppKit 0x00007fff37e6d548 backing_store_delegate + 875
19 AppKit 0x00007fff38192789 backing_store_DrawGlyphs.llvm.6249430987493125948 + 1500
20 CoreGraphics 0x00007fff3ab73757 CGContextDelegateDrawGlyphs + 906
21 CoreGraphics 0x00007fff3aed746b draw_glyphs + 712
22 CoreGraphics 0x00007fff3aed713d CGContextShowGlyphs + 494
23 Nylon 0x0000000126bb196c _ZN4juce19CoreGraphicsContext9drawGlyphEiRKNS_15AffineTransformE + 492
24 Nylon 0x0000000126bdf74d _ZNK4juce10TextLayout4drawERNS_8GraphicsENS_9RectangleIfEE + 637
25 Nylon 0x0000000126c373e9 _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 137
26 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
27 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
28 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
29 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
30 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
31 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
32 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
33 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
34 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
35 Nylon 0x0000000126c3779d _ZN4juce9Component25paintComponentAndChildrenERNS_8GraphicsE + 1085
36 Nylon 0x0000000126c60506 _ZN4juce13ComponentPeer11handlePaintERNS_23LowLevelGraphicsContextE + 310
37 Nylon 0x0000000126c59d10 _ZN4juce15JuceNSViewClass8drawRectEP11objc_objectP13objc_selector6CGRect + 480
38 AppKit 0x00007fff37d8ac29 _NSViewDrawRect + 66
39 AppKit 0x00007fff37d75a22 -[NSView _drawRect:clip:] + 1745
40 AppKit 0x00007fff37d738e6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4808
41 AppKit 0x00007fff37d73226 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3080
42 AppKit 0x00007fff37d73226 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3080
43 AppKit 0x00007fff37d725f8 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 65
44 AppKit 0x00007fff37d6ff2a -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 1887
45 AppKit 0x00007fff37d6f569 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253
46 AppKit 0x00007fff37d6c152 -[NSView displayIfNeeded] + 1300
47 AppKit 0x00007fff37d68ee8 -[NSWindow displayIfNeeded] + 283
48 AppKit 0x00007fff37d68d27 __NSWindowGetDisplayCycleObserverForDisplay_block_invoke + 722
49 AppKit 0x00007fff37d63e2a NSDisplayCycleObserverInvoke + 170
50 AppKit 0x00007fff37d6399f NSDisplayCycleFlush + 1073
51 QuartzCore 0x00007fff456c425b _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 49
52 QuartzCore 0x00007fff456c3c22 _ZN2CA11Transaction6commitEv + 186
53 AppKit 0x00007fff37d63305 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 274
54 CoreFoundation 0x00007fff3a76c8ed __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
55 CoreFoundation 0x00007fff3a76c822 __CFRunLoopDoObservers + 452
56 CoreFoundation 0x00007fff3a70e345 __CFRunLoopRun + 1166
57 CoreFoundation 0x00007fff3a70dc64 CFRunLoopRunSpecific + 463
58 HIToolbox 0x00007fff399a4ab5 RunCurrentEventLoopInMode + 293
59 HIToolbox 0x00007fff399a47eb ReceiveNextEventCommon + 618
60 HIToolbox 0x00007fff399a4568 _BlockUntilNextEventMatchingListInModeWithFilter + 64
61 AppKit 0x00007fff37c5f363 _DPSNextEvent + 997
62 AppKit 0x00007fff37c5e102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
63 AppKit 0x00007fff37c58165 -[NSApplication run] + 699
64 Foundation 0x00007fff3cb040c5 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 1123
65 Foundation 0x00007fff3cb0bc6a -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 131
66 BitwigStudioEngine 0x000000010b536cb3 main + 8099
67 libdyld.dylib 0x00007fff6795fed9 start + 1
68 ??? 0x0000000000000003 0x0 + 3