# Melda plugin editor windows are black if you build under Mojave with XCode 10

**URL:** <https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912>\
**Category:** Audio Plugins\
**Created:** [February 21, 2019, 10:42pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912 "2019-02-21T22:42:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [February 21, 2019, 10:42pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/1 "2019-02-21T22:42:48Z")

</div>

We do most of our development on OSX 10.12 and everything works beautifully there. However, we discovered that if we build the same codebase on an OSX 10.14 machine, then all Melda plugins, when their editor windows are opened, just display black. The same plugins (from the latest release from Melda) display fine on this 10.14 machine if I run a host built on a 10.12 machine

Below is an image using the JUCE plugin host from the very latest build from GitHub. I built this on 10.14 and as you can see, blank editor window.

 ![screenshot_307](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/6/662b932e2c1afcf4628623ffc4134836a3b2f2a5.png)

---

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [February 21, 2019, 10:47pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/2 "2019-02-21T22:47:33Z")

</div>

Meant to mention - I found a reference to Melda black plugin editor windows on these forums from a post in 2012 which suggested that Melda plugins were buggy but our experience with Melda plugins is that they have worked beautifully in recent years.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [February 22, 2019, 12:24pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/3 "2019-02-22T12:24:08Z")

</div>

I’m not sure it’s something we can fix on the JUCE side of things. I’ve emailed their support team to see if they are aware of the issue.

---

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [February 22, 2019, 12:44pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/4 "2019-02-22T12:44:36Z")

</div>

I reached out to them as well. However, the fact that their plugins work perfectly fine on a Mojave machine if you compile the plugin host on a 10.12 machine suggests that the problem has to be JUCE related since compilation of the JUCE plugin host is the only thing that is different. By the way, the problem happens with VST2 as well as VST3 version although of course the latest JUCE host only loads VST3 versions.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [February 22, 2019, 12:46pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/5 "2019-02-22T12:46:54Z")

</div>

> [@dhjdhj](#):
>
> the problem has to be JUCE related

Not necessarily. The problem could be the plug-in failing to display correctly when running in any host built against the 10.14 SDK, not only JUCE-based hosts.

---

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [February 22, 2019, 5:20pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/6 "2019-02-22T17:20:29Z")

</div>

When I built on Mojave, I specified the deployment target to be 10.9 or greater.

---

<div class="post-metadata">

**Author:** ![alassandro](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alassandro/32/4297_2.png) [@alassandro](https://forum.juce.com/u/alassandro)\
**Post date:** [February 22, 2019, 6:31pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/7 "2019-02-22T18:31:51Z")

</div>

Does the plugin use OpenGL? Sounds a lot like:

> [@OpenGL not working (black screen)](https://forum.juce.com/t/opengl-not-working-black-screen/31182):
>
> We just released a new JUCE app to our customers for beta testing and we are getting a few “the app is completely black” messages back. I have replicated this myself with an old video card and it is clearly not supporting OpenGL properly. When I debug the code and I can see jassert hit in drawComponentBuffer: jassert (context.extensions.glActiveTexture != nullptr); with a note in the code about old drivers. This is not the nice behavour we would like since applications crashing or just pain…

> [@dhjdhj](#):
>
> When I built on Mojave, I specified the deployment target to be 10.9 or greater.

Yes but on Mojave it’s Xcode 10 and the 10.14 SDK right? There’s some sort of bug with OpenGL in the new SDK

---

<div class="post-metadata">

**Author:** ![dhjdhj](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dhjdhj/32/39_2.png) [@dhjdhj](https://forum.juce.com/u/dhjdhj)\
**Post date:** [February 22, 2019, 7:09pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/8 "2019-02-22T19:09:43Z")

</div>

I just rebuilt on Mojave using the 10.13 SDK and the Melda plugins work fine. I know OpenGL has been deprecated in 10.14 but I didn’t expect that something was broken. So is JUCE going to support METAL?

---

<div class="post-metadata">

**Author:** ![alassandro](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/alassandro/32/4297_2.png) [@alassandro](https://forum.juce.com/u/alassandro)\
**Post date:** [February 22, 2019, 7:14pm UTC](https://forum.juce.com/t/melda-plugin-editor-windows-are-black-if-you-build-under-mojave-with-xcode-10/31912/9 "2019-02-22T19:14:23Z")

</div>

> [@dhjdhj](#):
>
> is JUCE going to support METAL

At some point either Metal and Vulkan or just Vulkan with a wrapper for Metal (like MoltenVK)… I think it’s yet to be fully determined but there’s a larger discussion about it here:

> [@OpenGL Deprecated in Mojave](https://forum.juce.com/t/opengl-deprecated-in-mojave/27995/):
>
> Just going through the changelog for 10.14 after watching the Keynote for WWDC, and this jumped out at me. (Page 9.) Not a big deal in the short term, but plan accordingly… [image]

For now I have stuck with the 10.13 SDK since our plugins still work fine on Mojave… not sure I’ll be upgrading for a while between this bug and how often I run into problems updating Xcode anyway 😅
