# NativeMessageBox and Logic Pro / Garage Band

**URL:** <https://forum.juce.com/t/nativemessagebox-and-logic-pro-garage-band/60128>\
**Category:** Development\
**Created:** [February 23, 2024, 10:48am UTC](https://forum.juce.com/t/nativemessagebox-and-logic-pro-garage-band/60128 "2024-02-23T10:48:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacopoeftilo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jacopoeftilo/32/20936_2.png) [@jacopoeftilo](https://forum.juce.com/u/jacopoeftilo)\
**Post date:** [February 23, 2024, 10:48am UTC](https://forum.juce.com/t/nativemessagebox-and-logic-pro-garage-band/60128/1 "2024-02-23T10:48:08Z")

</div>

Hello everyone!

I’m having some issue with NativeMessageBox and Logic Pro / Garage Band. All other tested DAWs behave as expected with AU.

In my main plugin’s `prepareToPlay()`, I launch an async message box (`juce::NativeMessageBox::showAsync()`) to allow the user to provide a license file for the purchased plugin.

In Garage Band / Logic Pro I get the _“An Audio Unit plug-in reported a problem which might cause the system to become unstable. Please quit and restart GarageBand.”_ message when I try to open the plugin’s UI.

I suspect the issue may lay in Logic Pro / Garage Band not launching the UI when the plugin is inserted on a track?

I can’t really manage to debug Logic Pro and Garage Band, I tried different solutions suggested in other posts in the forum but nothing really worked.

Is there some known issue with NativeMessageBox and Garage Band / Logic Pro? I’m on JUCE 7.0.3.

Thanks!

---

<div class="post-metadata">

**Author:** ![jacopoeftilo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jacopoeftilo/32/20936_2.png) [@jacopoeftilo](https://forum.juce.com/u/jacopoeftilo)\
**Post date:** [February 23, 2024, 11:51am UTC](https://forum.juce.com/t/nativemessagebox-and-logic-pro-garage-band/60128/2 "2024-02-23T11:51:21Z")

</div>

Some more information.

I replaced the `showAsync()` with a simple `showMessageBoxAsync()` (to not have anything attached to the message box and simply display it) and the _“restart GarageBand error”_ is not displayed anymore, the plugin’s UI is correctly opened, but the message box is never displayed.

---

<div class="post-metadata">

**Author:** ![jacopoeftilo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jacopoeftilo/32/20936_2.png) [@jacopoeftilo](https://forum.juce.com/u/jacopoeftilo)\
**Post date:** [February 23, 2024, 1:49pm UTC](https://forum.juce.com/t/nativemessagebox-and-logic-pro-garage-band/60128/3 "2024-02-23T13:49:47Z")

</div>

Additional information.

The issue was not with the `NativeMessageBox` async behaviour, but with Garage Band and Logic Pro’s handling of the `prepareToPlay()`.

I checked what other manufacturers do and decided to call the `NativeMessageBox::showAsync()`, with associated `FileChooser`, in the editor constructor (instead of the `prepareToPlay()`). This way the message box should always have an associated editor.
