# Mojave opengl depreciated!

**URL:** <https://discourse.processing.org/t/mojave-opengl-depreciated/10936>\
**Category:** Processing\
**Created:** [May 5, 2019, 10:11am UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936 "2019-05-05T10:11:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.processing.org/u/coco)\
**Post date:** [May 5, 2019, 10:11am UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/1 "2019-05-05T10:11:05Z")

</div>

Hello, I just upgraded from 10.14.3 to 10.14.4 and opengl doesn’t work any more, in fact Mojave doesn’t support OpenGL any more !!! Is there some sort of workaround to make P3D work with Metal ? Any help would be greatly appreciated as I have a whole lot of projects that depend on it.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [May 5, 2019, 6:19pm UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/2 "2019-05-05T18:19:29Z")

</div>

Corporates are buggers, and don’t deserve your custom, may’be linux has a future on the desktop after all. PS: I would very surprised if your current problems are anything to do with the deprecation of OPENGL.

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.processing.org/u/coco)\
**Post date:** [May 6, 2019, 10:54am UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/3 "2019-05-06T10:54:19Z")

</div>

I think you may be right. i narrowed it down to JFrame.pack and JFrame.setVisible(true). Now I get this error

java.lang.RuntimeException: Waited 5000ms for: \<6146dc4f, 6f812e17\>[count 2, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>] - \<main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1\>

```
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)

```

Can’t figure out why moving to 10.14.4 would change that which worked fine before. Any ideas ?

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 9, 2019, 5:53pm UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/4 "2019-05-09T17:53:13Z")

</div>

I believe this might be relevant:

> **_OpenGL_ – some apps open with black windows, or may hang**
> 
> Several developers and others using apps which still rely on OpenGL have reported that their apps open with black windows, and some even freeze. This may be resolved by building them with Xcode 9.4.1 rather than 10, and there is [further discussion here](https://stackoverflow.com/questions/52509427/mac-mojave-opengl).
> 
> from [Known bugs in macOS Mojave 10.14: an incomplete summary – The Eclectic Light Company](https://eclecticlight.co/2018/09/26/known-bugs-in-macos-mojave-10-14-an-incomplete-summary/)

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.processing.org/u/coco)\
**Post date:** [May 9, 2019, 6:12pm UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/5 "2019-05-09T18:12:23Z")

</div>

Thanks for your message. I figured it out. 10.14.4 made it so that JFrame.pack() and JFrame.setVisible() would timeout and freeze everything. So I managed to create another thread by using this structure -

SwingUtilities._invokeLater_(new Runnable() {

```
	    public void run() {

	    	— code here ---

	    }
```

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [May 9, 2019, 6:49pm UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/6 "2019-05-09T18:49:04Z")

</div>

You should only ever touch Swing on the EDT anyway, if you weren’t already - that’s a definite way to get issues! Are you mixing Swing and P3D? That can also be a problem as there’s some curious locking between the two.

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.processing.org/u/coco)\
**Post date:** [May 9, 2019, 7:00pm UTC](https://discourse.processing.org/t/mojave-opengl-depreciated/10936/7 "2019-05-09T19:00:46Z")

</div>

thanks for the tip. i seem to have figured it out. haven’t run into any problems. thanks
