# New OpenGL-related errors

**URL:** <https://forum.juce.com/t/new-opengl-related-errors/13350>\
**Category:** MacOSX and iOS\
**Created:** [August 11, 2014, 8:37pm UTC](https://forum.juce.com/t/new-opengl-related-errors/13350 "2014-08-11T20:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madronalabs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/madronalabs/32/192_2.png) [@madronalabs](https://forum.juce.com/u/madronalabs)\
**Post date:** [August 11, 2014, 8:37pm UTC](https://forum.juce.com/t/new-opengl-related-errors/13350/1 "2014-08-11T20:37:30Z")

</div>

I just grabbed the latest tip on MacOS and I'm seeing some OpenGL-related errors. Compiling on OS 10.9.4 with XCode 5.1.1. To reproduce:

- clean and build the JuceDemo
- run it
- click the OpenGL 2D demo
- quit the demo

I consistently&nbsp;get the error shown in Screen Shot 2014-08-11 at 1.23.50 PM.png: an assertion failure in&nbsp;~MessageManagerLock().

I'm also seeing crashing on&nbsp;releasing OpenGL textures. Just clicking on some of the other demos including the OpenGL 2D demo, then on the Box2D demo, I got the crash shown in&nbsp;Screen Shot 2014-08-11 at 1.34.32 PM.png. Unfortunately I can't reproduce this consistently.&nbsp;

[EDIT]

couple of data points:

rewinding to commit&nbsp;a46b96e585f172709e8cd1eb762bdd6b94fe98b5 (Jul 2) fixed&nbsp;the assertion failure.

commit&nbsp;4af1478dfbc2cdfc962d8496a72a5963572bc24b (Aug 8) still has the assertion failure&nbsp;problem.&nbsp;

&nbsp;

---

<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:** [August 11, 2014, 9:09pm UTC](https://forum.juce.com/t/new-opengl-related-errors/13350/2 "2014-08-11T21:09:51Z")

</div>

Hmm, not sure why that only just started causing an error, I don't remember changing anything relevant lately.

It's nothing serious, it was just because the demo app tried to remove the GL component from its parent without detaching the context. I've modified it now to make sure it cleans up in the right order.

---

<div class="post-metadata">

**Author:** ![madronalabs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/madronalabs/32/192_2.png) [@madronalabs](https://forum.juce.com/u/madronalabs)\
**Post date:** [August 12, 2014, 4:14am UTC](https://forum.juce.com/t/new-opengl-related-errors/13350/3 "2014-08-12T04:14:16Z")

</div>

Thanks for the quick attention. &nbsp;I'm more worried about the crash in ~CachedImage shown in the second screenshot. Unfortunately this wasn't as consistently reproducible.&nbsp;
