# ControlP5: frame not working in Mojave

**URL:** <https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666>\
**Category:** Libraries\
**Created:** [March 27, 2019, 4:38am UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666 "2019-03-27T04:38:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mgg/32/4285_2.png) [@mgg](https://discourse.processing.org/u/mgg)\
**Post date:** [March 27, 2019, 4:38am UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/1 "2019-03-27T04:38:35Z")

</div>

Hi all,

Got a new Mac Mini today to run an installation and it has Mojave. Installed Processing with nothing else on the machine, installed some libraries including controlP5, and tried running the included example ControlP5frame (available from the “file-\>examples” dropdown menu under “Contributed Libraries/ControlP5/extra” so I won’t repost the code here). Without any changes whatsoever, it hangs - first frame opens but stays grey, second frame does not open. Spinning ball. No error message.

Many other ControlP5 examples seem to work. Same code works on same version of Processing on a laptop running High Sierra. Is it the OS?

Any thoughts? Any similar issues? Can anyone reproduce?

Thanks!  
Matt

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [March 27, 2019, 12:02pm UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/2 "2019-03-27T12:02:09Z")

</div>

It seems to work for me. Have you stepped through the code with the debugger / printlns and tried to find out where it stops? Without an error message or specific line of code it is not possible to find a solution.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a1290aed59c43da419bb335d27f02fdc63162743.png)

---

<div class="post-metadata">

**Author:** ![nmi](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nmi](https://discourse.processing.org/u/nmi)\
**Post date:** [March 27, 2019, 4:56pm UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/3 "2019-03-27T16:56:25Z")

</div>

![06%20PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/923c6bc182914140049413eae236a66d8413157d.png)  
The debugger remains busy, and this is the error message that we get. We’ve noticed this error message before on Mojave but it didn’t prevent the program from executing.

With println debugging, it looks like it enters the setup function, but doesn’t even run line 26 (`cf = new ControlFrame(this, 400, 800, "Controls");`).

Processing 3.5.3 on MacOS 10.14.4

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [March 27, 2019, 5:11pm UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/4 "2019-03-27T17:11:24Z")

</div>

about the error msg, difficult to read,  
could you compare if it is same like  
[Trouble running P3D on MacBook](https://discourse.processing.org/t/trouble-running-p3d-on-macbook/9342/7) here?

---

<div class="post-metadata">

**Author:** ![cansik](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/cansik/32/8815_2.png) [@cansik](https://discourse.processing.org/u/cansik)\
**Post date:** [March 27, 2019, 5:41pm UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/5 "2019-03-27T17:41:12Z")

</div>

I have the same error messages on my MacOS (on any sketch). It don’t think it has something to do with the specific problem.

Here you can see the message (happens on any sketch).

```java
0 AppKit 0x00007fff4c20dccc -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 386
1 AppKit 0x00007fff4c20b07c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1488
2 AppKit 0x00007fff4c20aaa6 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
3 libnativewindow_macosx.jnilib 0x00000001320263fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4 ??? 0x000000011b778a88 0x0 + 4755786376
)

```

---

<div class="post-metadata">

**Author:** ![mgg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mgg/32/4285_2.png) [@mgg](https://discourse.processing.org/u/mgg)\
**Post date:** [March 27, 2019, 5:42pm UTC](https://discourse.processing.org/t/controlp5-frame-not-working-in-mojave/9666/6 "2019-03-27T17:42:47Z")

</div>

Yes very similar. And I have seen that message before no matter what we run in Processing (even successfully ) using Mojave. Not sure how relevant it is to the OP regarding controlP5, but would be good to know what it is . (seems to be some kind of stack trace)
