# Carbon plugins in JUCE plugin host?

**URL:** <https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045>\
**Category:** Audio Plugins\
**Created:** [March 18, 2010, 8:52am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045 "2010-03-18T08:52:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![siedschl](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@siedschl](https://forum.juce.com/u/siedschl)\
**Post date:** [March 18, 2010, 8:52am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/1 "2010-03-18T08:52:20Z")

</div>

Is this possible at all? When trying to display the GUI, with some plugins (e.q. Stillwell 1973 EQ) I get a white window and then a crash:

[code]Process: Plugin Host [300]  
Path: /Volumes/NO NAME/programming/juce/extras/audio plugin host/Builds/MacOSX/build/Release/Plugin Host.app/Contents/MacOS/Plugin Host  
Identifier: com.rawmaterialsoftware.pluginhost  
Version: 1.0.0 (1.0.0)  
Code Type: X86 (Native)  
Parent Process: launchd [76]

Date/Time: 2010-03-18 09:45:46.168 +0100  
OS Version: Mac OS X 10.6.2 (10C540)  
Report Version: 6

Interval Since Last Report: 367719 sec  
Crashes Since Last Report: 140  
Per-App Interval Since Last Report: 1620 sec  
Per-App Crashes Since Last Report: 5  
Anonymous UUID: 52670AE4-343E-460D-8279-2365FA88949B

Exception Type: EXC\_BAD\_ACCESS (SIGBUS)  
Exception Codes: KERN\_PROTECTION\_FAILURE at 0x0000000000000064  
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread  
0 …illwellaudio.audiounit.1973 0x14279857 -[IGraphicsCocoa\_v1002 drawRect:] + 39  
1 com.apple.AppKit 0x91b8da99 -[NSView \_drawRect:clip:] + 3510  
2 com.apple.AppKit 0x91b8c737 -[NSView \_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600  
3 com.apple.AppKit 0x91b8ca6c -[NSView \_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421  
4 com.apple.AppKit 0x91b8ca6c -[NSView \_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421  
5 com.apple.AppKit 0x91b8ac56 -[NSView \_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 711  
6 com.apple.AppKit 0x91c29b5f -[NSNextStepFrame \_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 311  
7 com.apple.AppKit 0x91b87111 -[NSView \_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309  
8 com.apple.AppKit 0x91ae7d6e -[NSView displayIfNeeded] + 818  
9 com.apple.AppKit 0x91a9b9c5 -[NSNextStepFrame displayIfNeeded] + 98  
10 com.apple.AppKit 0x91ab1094 -[NSWindow displayIfNeeded] + 204  
11 com.apple.AppKit 0x91ae25aa \_handleWindowNeedsDisplay + 696  
12 com.apple.Foundation 0x94af796c \_\_NSFireTimer + 141  
13 com.apple.CoreFoundation 0x912ffedb \_\_CFRunLoopRun + 8059  
14 com.apple.CoreFoundation 0x912fd864 CFRunLoopRunSpecific + 452  
15 com.apple.CoreFoundation 0x912fd691 CFRunLoopRunInMode + 97  
16 com.apple.HIToolbox 0x96711f0c RunCurrentEventLoopInMode + 392  
17 com.apple.HIToolbox 0x96711cc3 ReceiveNextEventCommon + 354  
18 com.apple.HIToolbox 0x96711b48 BlockUntilNextEventMatchingListInMode + 81  
19 com.apple.AppKit 0x91ab8ac5 \_DPSNextEvent + 847  
20 com.apple.AppKit 0x91ab8306 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156  
21 com.apple.AppKit 0x91a7a49f -[NSApplication run] + 821  
22 …materialsoftware.pluginhost 0x001813a9 juce::MessageManager::runDispatchLoop() + 707  
23 …materialsoftware.pluginhost 0x00087a4c juce::JUCEApplication::main(juce::String&, juce::JUCEApplication\*) + 56  
24 …materialsoftware.pluginhost 0x00087ba3 juce::JUCEApplication::main(int, char\*\*, juce::JUCEApplication\*) + 139  
25 …materialsoftware.pluginhost 0x0000a02d main + 96  
26 …materialsoftware.pluginhost 0x0000476d \_start + 208  
27 …materialsoftware.pluginhost 0x0000469c start + 40[/code]

With others (e.g. PSPAudioware effects) the GUI is displayed but not responsive (i.e. you can’t turn any knobs). When using the VST versions of said plugins in the plugin host there are no issues.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 18, 2010, 9:20am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/2 "2010-03-18T09:20:57Z")

</div>

Is that a carbon plugin? Looks like a crash in the plugin’s cocoa method to me…

---

<div class="post-metadata">

**Author:** ![siedschl](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@siedschl](https://forum.juce.com/u/siedschl)\
**Post date:** [March 18, 2010, 9:41am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/3 "2010-03-18T09:41:32Z")

</div>

That confuses me also… but auval says it has a carbon GUI.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 18, 2010, 9:51am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/4 "2010-03-18T09:51:35Z")

</div>

Can’t really see what’s going on from the stack trace - it’s the sort of bug that’d be easy for the plugin writers to debug, but very hard to figure out from the outside.

---

<div class="post-metadata">

**Author:** ![siedschl](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@siedschl](https://forum.juce.com/u/siedschl)\
**Post date:** [March 18, 2010, 11:30am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/5 "2010-03-18T11:30:08Z")

</div>

Ok, I’ll try to get them to debug this then.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 18, 2010, 11:41am UTC](https://forum.juce.com/t/carbon-plugins-in-juce-plugin-host/5045/6 "2010-03-18T11:41:01Z")

</div>

That’s not to say it’s not a juce problem - it’s just very hard to guess exactly what it is that their code doesn’t like…
