Skip to content

AUv3: clear created state when GUI creation fails - #501

Merged
defiantnerd merged 1 commit into
free-audio:nextfrom
charCulbert:fix/auv3-gui-create-failure
Aug 8, 2026
Merged

AUv3: clear created state when GUI creation fails#501
defiantnerd merged 1 commit into
free-audio:nextfrom
charCulbert:fix/auv3-gui-create-failure

Conversation

@charCulbert

Copy link
Copy Markdown

The AUv3 wrapper sets _guiCreated before calling createGUIInView. If the plugin's create() returns false, the next layout still calls can_resize() on a GUI that was never created.

The proposed change clears _guiCreated when creation fails. It stays set during the call, so the existing reentrancy guard is preserved.

Tested with a modified clap-first plugin whose GUI create() returns false. Before this change, viewDidLayout called can_resize() and the fixture aborted. After the change, creation fails cleanly and no later GUI callbacks are made.

@defiantnerd
defiantnerd merged commit 2f30bc9 into free-audio:next Aug 8, 2026
28 checks passed
@defiantnerd

Copy link
Copy Markdown
Collaborator

Thank you very much!

@defiantnerd defiantnerd mentioned this pull request Aug 8, 2026
@charCulbert
charCulbert deleted the fix/auv3-gui-create-failure branch August 8, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants