# Bug: juce 6.0.6 breaks on macos (but not ios)

**URL:** <https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816>\
**Category:** MacOSX and iOS\
**Created:** [January 13, 2021, 10:57pm UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816 "2021-01-13T22:57:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![modosc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/modosc/32/2308_2.png) [@modosc](https://forum.juce.com/u/modosc)\
**Post date:** [January 13, 2021, 10:57pm UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816/1 "2021-01-13T22:57:23Z")

</div>

when i updated to 6.0.6 my app no longer worked. all windows were black and the debug console is full of this line:

```auto
2021-01-13 14:55:34.801749-0800 Instrument Designer[11531:65731] [sc.modo.instrumentdesigner.osx] CGImageCreateWithImageProvider: invalid image provider: NULL.

```

`git bisect` helped me trace it to [this commit](https://github.com/juce-framework/JUCE/commit/8d3fd927843da18d959c54292c135e760f8bd4c8) - when i revert that commit locally everything works as expected.

i checked the example standalone plugin and it seems to work fine - any ideas what could be happening here?

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [January 14, 2021, 8:22am UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816/2 "2021-01-14T08:22:17Z")

</div>

A minimal example that triggers the problem would be very helpful. It’s difficult to say what might be the cause without more information.

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [January 14, 2021, 10:39am UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816/3 "2021-01-14T10:39:52Z")

</div>

This happened to our Waveform app and plugins in Release builds (not debug though).  
I tired building the JUCE demo but that seemed to be ok though so still digging for a proper report.  
This happened with both the 11.1 & 10.13 SDKs targeting 10.9.

---

<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:** [January 14, 2021, 5:22pm UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816/4 "2021-01-14T17:22:53Z")

</div>

Thanks for reporting, there was indeed a bug in that commit with `JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS` enabled. We’ll be doing a bugfix release very shortly with this fix in:

> <https://github.com/juce-framework/JUCE/commit/d3f91fd76c9fd99dfeb2bfdfcf5caf3af31edf99>

---

<div class="post-metadata">

**Author:** ![modosc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/modosc/32/2308_2.png) [@modosc](https://forum.juce.com/u/modosc)\
**Post date:** [January 14, 2021, 7:06pm UTC](https://forum.juce.com/t/bug-juce-6-0-6-breaks-on-macos-but-not-ios/43816/5 "2021-01-14T19:06:45Z")

</div>

thanks @ed95 , this works for me.
