# Auv3 resizing issue on macos (not ios)

**URL:** <https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811>\
**Category:** MacOSX and iOS\
**Created:** [January 13, 2021, 9:00pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811 "2021-01-13T21:00:07Z")\
**Posts on this page:** 20\
**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, 9:00pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/1 "2021-01-13T21:00:07Z")

</div>

the demo auv3 plugin doesn’t resize correctly in logic and garageband. i believe this is a juce bug - [apple’s sample auv3](https://developer.apple.com/documentation/audiotoolbox/audio_unit_v3_plug-ins/creating_custom_audio_effects?language=objc) does not have this problem. see [this video](https://monosnap.com/file/kfSp79olPGoY4WuwdxNoKqMp2cExib) for an example of both side-by-side in logic.

i found mention of this [in a thread on another forum](https://www.kvraudio.com/forum/viewtopic.php?p=7802270&sid=1a82b77f093ec8c7bf261070ff1445a5#p7802270) and the suggestion there was that this code is responsible for the (working) resizing in the apple demo code:

```auto
    func pinToSuperviewEdges() {
        guard let superview = superview else { return }
        translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([
            topAnchor.constraint(equalTo: superview.topAnchor),
            leadingAnchor.constraint(equalTo: superview.leadingAnchor),
            bottomAnchor.constraint(equalTo: superview.bottomAnchor),
            trailingAnchor.constraint(equalTo: superview.trailingAnchor)
        ])
    }

```

i’m currently trying to integrate this into the juce auv3 wrapper but i’m wondering if anyone else has figured this out on their own or if the juce folks are aware/working on a solution as well?

---

<div class="post-metadata">

**Author:** ![ring2](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@ring2](https://forum.juce.com/u/ring2)\
**Post date:** [February 1, 2021, 8:46am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/2 "2021-02-01T08:46:03Z")

</div>

I just encounter the same issue. Resizing the window from both plug-in and from host causes weird look. And host crashes at last. This is critical.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 11, 2021, 11:53am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/3 "2021-03-11T11:53:28Z")

</div>

I have a similar problem with AUv3.

If I have a resizer at bottom right of the screen, the Host window doesn’t resize to match my internally resized component. This is also seen in the Juce Audio Plugin Host app.

If I resize the host window in (say) Logic, my internal component isn’t resized to match

Pete

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 12, 2021, 10:26am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/4 "2021-03-12T10:26:20Z")

</div>

FWIW, I’ve just tried with tip of develop d4e802016 (11/03/2021), and the internal resize dragger doesn’t resize the container Window for AUv3 in Audio Plugin Host or Logic Pro.

HTH!

Pete

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 12, 2021, 8:02pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/5 "2021-03-12T20:02:28Z")

</div>

I’ve tested this with the [demo project](https://developer.apple.com/documentation/audiotoolbox/audio_unit_v3_plug-ins/creating_custom_audio_effects?language=objc) on Catalina 10.15.7 with Logic 10.6.1.

When “AUv3 Mode” is enabled in the plugin manager, resizing _does not work_ for the demo project:

![trimmed](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/f/f4ab6e3ac886f8bf33445246284291a33222e0d0.gif)

However, disabling AUv3 mode (so that the plugin runs in-process) does allow resizing to work as expected in the demo.

At the moment, I think this is likely to be a bug with Logic’s handling of plugins hosted out-of-process. Is anyone aware of an AUv3 plugin which resizes successfully in Logic when running out-of-process (i.e. with AUv3 Mode enabled), which would disprove this theory?

---

<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:** [March 12, 2021, 8:18pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/6 "2021-03-12T20:18:03Z")

</div>

> [@reuk](#):
>
> Is anyone aware of an AUv3 plugin which resizes successfully in Logic when running out-of-process (i.e. with AUv3 Mode enabled), which would disprove this theory?

i just verified i get the correct behavior from the AUv3FilterDemo plugin with auv3 mode checked on osx 11.2.3 with logic 10.6.1:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/d/d62058b70ef073d936c876427ff442e790e3fd51.jpeg)

![screencast 2021-03-12 12-17-07](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/8/894fe0c649e76dc595a4aa47c71e61ed7e3c089f.gif)

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 12, 2021, 8:48pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/7 "2021-03-12T20:48:23Z")

</div>

Interesting, thanks. I’ll see whether I can reproduce this behaviour on Big Sur rather than Catalina.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 13, 2021, 3:21pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/8 "2021-03-13T15:21:39Z")

</div>

@reuk just to note, I’ve tried Wotja AUv3 again using the very latest tip of develop, and it isn’t resizing the container window, even in the Juce Audio Plugin Host. This is on Big Sur.

If anybody wants me to try something out on either Big Sur or Catalina, please ask!

Pete

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 13, 2021, 3:50pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/9 "2021-03-13T15:50:24Z")

</div>

For me, flipping the AUv3 checkbox makes no difference.

Altering juce\_AudioUnitPluginFormat.mm, to change the use of kAudioComponentInstantiation\_LoadOutOfProcess to kAudioComponentInstantiation\_LoadInProcess, makes zero difference either 🙂

Pete

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 15, 2021, 8:00pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/10 "2021-03-15T20:00:42Z")

</div>

I’ve spent some time debugging this. There seem to be several issues with AUv3 resizing, only one of which we can work around in JUCE:

- JUCE plugins were not responding to host-initiated resize requests. I have a fix for this, which I’ll push once it’s been reviewed. Unfortunately, this only seems to work on Big Sur. On Catalina, I can’t get host-initiated resize to work for JUCE plugins or for Apple’s AUv3 Filter Demo. Given that Apple’s demo is broken, I think this is likely a platform issue.
- Client-initiated resize (e.g. from a corner resizer or dropdown inside the plugin) doesn’t work for JUCE AUv3 plugins. So far, I haven’t been able to find any AUv3 plugin that can be resized from within the plugin itself. I also haven’t been able to find any documentation that would suggest client-initiated resize is possible. If you know of a plugin where this works, please let me know. At the moment, I think this may not be supported by the plugin format.
- Logic’s handling of AUv3 resizing seems to be a bit broken:
  - If the AUv3 reports that it doesn’t support any of the view configurations that Logic requests, the plugin window will initially be sized to the view controller’s `preferredContentSize`. If the view is then resized, closed, and reopened, the editor will not reopen at its previous size. Repeatedly closing and opening the window will cause the editor to grow/shrink exponentially. I can reproduce this issue in the AUv3 demo, if I modify it to support none of the requested view configurations. This appears to be a Logic bug.
  - If the AUv3 reports that it does support one or more of the requested view configurations, Logic will pick one of those view configurations rather than using the `preferredContentSize` provided by the view controller. As a result, the view may not respect the aspect ratio set in the plugin editor’s constrainer. This _does_ prevent the issue with the editor growing/shrinking on open, though. Again, this behaviour is consistent with the AUv3 demo.

The least-broken setup at the moment seems to be:

- Avoid allowing the user to resize the plugin view from within the editor. Disable corner resizers etc. if running as an AUv3. Rely on the host to provide resizing capabilities.
- Attempt to support at least one of the view configurations that Logic requests, in order to avoid the exponential-resize bug. Logic 10.6.1 requests 1024x768 and 1366x1024.

Hopefully that helps.

This patch fixes host-initiated resize for AUv3 plugins on macOS:

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

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 16, 2021, 6:42pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/11 "2021-03-16T18:42:52Z")

</div>

Hi @reuk thanks so much for investigating this. What a pain, eh?!

I’ll check-out your changes tomorrow. Best wishes,

Pete

---

<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:** [March 16, 2021, 8:02pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/12 "2021-03-16T20:02:03Z")

</div>

@reuk it works for me now, thanks!

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [March 16, 2021, 9:01pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/13 "2021-03-16T21:01:02Z")

</div>

@reuk that works very well - thanks a lot!

Have you considered making the plugin host window resizable directly in macOS (in the Juce Audio Plugin Host app?)

Best wishes,

Pete

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [April 7, 2021, 3:26pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/14 "2021-04-07T15:26:20Z")

</div>

Resizing plugin views was added in this commit:

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

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [April 7, 2021, 3:41pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/15 "2021-04-07T15:41:29Z")

</div>

Hi @reuk - thanks for the info! 🙂

Pete

---

<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:** [November 29, 2021, 12:56am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/16 "2021-11-29T00:56:56Z")

</div>

hey @reuk , sorry to bump this thread again. i’m curious if there’s a way to enforce minimum sizes on auv3 editor windows? resizing is definitely working the way i’d expect (eg, i resize logic’s window, logic resizes my plugin window accordingly) but i’m able to reduce my plugin’s window size to something ridiculously small. i noticed some logic plugins seem to have a singular concept of size while others allow resizing…

---

<div class="post-metadata">

**Author:** ![eyalamir](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/eyalamir/32/2978_2.png) [@eyalamir](https://forum.juce.com/u/eyalamir)\
**Post date:** [June 13, 2022, 12:08pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/17 "2022-06-13T12:08:05Z")

</div>

Bumping, as I just ran into this issue.

All my other plugin formats (VST3, AU, Standalone, AAX) handle resizing correctly, but AUv3 on Mac seems to ignore my aspect ratio, and while resizing still works, the aspect ratio seems messed up.

Any suggestions?  
It seems like if on every resized() call I’m also applying the constrainer, the plugin view looks correct but Logic’s host window shows a huge chunk of unused space.

---

<div class="post-metadata">

**Author:** ![D1rtyMusic](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/d1rtymusic/32/10801_2.png) [@D1rtyMusic](https://forum.juce.com/u/D1rtyMusic)\
**Post date:** [June 20, 2022, 4:11pm UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/18 "2022-06-20T16:11:45Z")

</div>

If I use GarageBand I see a similar problem as you describe, however if I use Ableton (11.2 beta) it shows the plugin correct. Same is true for all AUv3s I have installed, so it seems this is a problem of GarageBand (and probably Logic too then). If you want to check it in Ableton just be aware if an Auv3 and AUv2 version is installed it will open the AUv2, so you should uninstall the AUv2 version before testing the AUv3.

---

<div class="post-metadata">

**Author:** ![rossw3](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rossw3](https://forum.juce.com/u/rossw3)\
**Post date:** [June 14, 2024, 4:39am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/19 "2024-06-14T04:39:25Z")

</div>

My JUCE/C++ plugin allows the user to drag the bottom right corner to resize my plugin’s window, and, as far as I recall, this works every DAW except Logic. So this is really annoying.

I wanted to determine whether ANY plugin in Logic (an AU plugin) can be resized in this way and I discovered that DMG TrackLimit and DMG TrackControl resize in Logic no problems. DMG TrackControl is free, so you can go install it and try it to confirm this. I hope it helps with this issue to have found an example of an AU where this actually works.

So it’s possible!

> **[TrackControl](https://dmgaudio.com/products_trackcontrol.php)**
>
> EASY CHANNEL CONTROL

---

<div class="post-metadata">

**Author:** ![rossw3](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rossw3](https://forum.juce.com/u/rossw3)\
**Post date:** [June 14, 2024, 5:59am UTC](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811/20 "2024-06-14T05:59:21Z")

</div>

I just tested my plugin and DMG TrackControl in AU form in Ableton. My AU plugin wouldn’t resize in Ableton, but DMG TrackControl AU would resize in Ableton. So it’s starting to feel like an AU problem rather than a Logic problem. I should add that my plugin in VST3 form resizes in Ableton no problem.

[Next page](https://forum.juce.com/t/auv3-resizing-issue-on-macos-not-ios/43811.md?page=2)
