Alright, looks like I spoke too soon. My AU is crashing now. It looks like the crash is caused by the following code:
const Typeface::Ptr ValhallaShimmerLookAndFeel::getTypefaceForFont (const Font &font)
{
return FuturaTf;
}
Everything else is as listed above.
When I open a new Logic 9.1.1 project in OS 10.6, and try to open a new instance of my plugin, Logic crashes. Like, instacrash. Here’s some crash report info:
[code]Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000028
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
abort() called
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x9297cef6 __kill + 10
1 libSystem.B.dylib 0x9297cee8 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x92a0f62d raise + 26
3 libSystem.B.dylib 0x92a25679 __abort + 124
4 libSystem.B.dylib 0x92a256f5 abort_report_np + 0
5 com.apple.logic.pro 0x00405649 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 3974297
6 libSystem.B.dylib 0x929821fb _sigtramp + 43
7 libstdc++.6.dylib 0x98d6903f __dynamic_cast + 114
8 …ValhallaDSP.ValhallaShimmer 0x46a299c5 juce::NSViewComponentPeer::drawRect(_NSRect) + 2437
9 …ValhallaDSP.ValhallaShimmer 0x46a1f797 -[JuceNSView_1_52_51_ljlu drawRect:] + 55
10 com.apple.AppKit 0x9386fa36 -[NSView _drawRect:clip:] + 3510
11 com.apple.AppKit 0x9386e6d4 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600
12 com.apple.AppKit 0x9386ea09 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
13 com.apple.AppKit 0x9386ea09 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
14 com.apple.AppKit 0x9386ea09 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
15 com.apple.AppKit 0x9386ea09 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
16 com.apple.AppKit 0x9386ea09 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
17 com.apple.AppKit 0x9386cbf3 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 711
18 com.apple.AppKit 0x9386db68 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
19 com.apple.AppKit 0x9386db68 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
20 com.apple.AppKit 0x9386c767 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 265
21 com.apple.prokit 0x00feea50 -[NSProWindowFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 105
22 com.apple.AppKit 0x938690ae -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
23 com.apple.AppKit 0x937c9d3f -[NSView displayIfNeeded] + 818
24 com.apple.AppKit 0x93793050 -[NSWindow displayIfNeeded] + 204
25 com.apple.AppKit 0x93791aeb -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1085
26 com.apple.prokit 0x00fcb195 -[NSProPanel(_ProSplash) _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 181
27 com.apple.AppKit 0x9379164d -[NSWindow orderWindow:relativeTo:] + 105
28 com.apple.prokit 0x00fe87fd -[NSProPanel orderWindow:relativeTo:] + 74
29 com.apple.logic.pro 0x0092baeb void UnitTest::CheckEqual<ScTypeSetter::tVerticalAlignment, ScTypeSetter::tVerticalAlignment>(UnitTest::TestResults&, ScTypeSetter::tVerticalAlignment, ScTypeSetter::tVerticalAlignment, UnitTest::TestDetails const&) + 20059
30 com.apple.AppKit 0x9390baad -[NSWindow orderFront:] + 50
31 com.apple.logic.pro 0x0092c0e5 void UnitTest::CheckEqual<ScTypeSetter::tVerticalAlignment, ScTypeSetter::tVerticalAlignment>(UnitTest::TestResults&, ScTypeSetter::tVerticalAlignment, ScTypeSetter::tVerticalAlignment, UnitTest::TestDetails const&) + 21589
32 com.apple.logic.pro 0x00753c79 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 7441097
33 com.apple.logic.pro 0x00753a51 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 7440545
34 com.apple.logic.pro 0x001ab54f std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 1508255
35 com.apple.logic.pro 0x000cccb7 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 596743
36 com.apple.logic.pro 0x001eed04 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 1784660
37 com.apple.logic.pro 0x0062e207 std::ostream& TraceOutContainer(std::ostream&, CEvs, char const*, int) + 6238295
38 com.apple.Foundation 0x991a0968 __NSFireTimer + 141
39 com.apple.CoreFoundation 0x9648570b __CFRunLoopRun + 8059
40 com.apple.CoreFoundation 0x96483094 CFRunLoopRunSpecific + 452
41 com.apple.CoreFoundation 0x96482ec1 CFRunLoopRunInMode + 97
42 com.apple.HIToolbox 0x93217f9c RunCurrentEventLoopInMode + 392
43 com.apple.HIToolbox 0x93217d51 ReceiveNextEventCommon + 354
44 com.apple.HIToolbox 0x93217bd6 BlockUntilNextEventMatchingListInMode + 81
45 com.apple.AppKit 0x9379aa89 _DPSNextEvent + 847
46 com.apple.AppKit 0x9379a2ca -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
47 com.apple.AppKit 0x9375c55b -[NSApplication run] + 821
48 com.apple.prokit 0x00fcaab1 NSProApplicationMain + 326
49 com.apple.logic.pro 0x0002aa55 DummyConnection::DummyConnection() + 193
[/code]
Any idea what is going on? If I comment out the getTypefaceForFont() method, no crashes happen, but my fonts aren’t being set when I follow the above code. If I am making some stupid mistake, now is the time to correct it.
VST works fine with the above code, BTW. Of course. It is just the Audio Units that are crashing. I haven’t tried RTAS.
Thanks in advance for help on this,
Sean