This only happens in an AU running natively and is not always consistent. Got 3 separate projects this happens with. If I switch to rosetta then the problem disappears. 1 project this happens every now and then, other projects can get it to happen every time.
Before the crash, the loop incolving grabFocus() runs about 200 or so times - not sure if that’s anything to do with it?
Can’t reproduce in the demo audio plugin, so clearly something I’m doing wrong, but trying to think of something that would cause to get stuck in this loop.
thx for the pointer - does indeed seem to be similar/same issue, although I don’t launch any windows other than the main window that is created for the plugin.
Also, FYI, these plugins definitely used to work native silicon, so assume something had changed somewhere.
Is this related to any specific user interaction with the window, and is it restricted to certain Juce versions (does it affect builds you may have on older verisons of Juce?)
as it doesn’t happen with the demo plugin, I don’t think so. If I get the time to take apart one of my plugins until it stops happening then I will, but not sure if I’ll have the capacity to do this in the near future.
What was the working configuration, and what’s changed since then? If your plugins stopped working without making any code changes, then it sounds like the problem might have been introduced in a host or macOS update.
Without knowing the problematic host, platform, and macOS versions, and without a minimal test case, this is going to be very difficult to track down.
I can’t remember what was working - I was only made aware of this issue recently so I would guess a recent MacOS or Logic update as you summise. It would mostly likely have been september when I released an update as I would have tested then. So, whatever the current version of MacOs Monterey and Logic was at that point.
Maybe you could ask on the other thread that you posted for examples - someone on that thread might have found a simple way of reproducing?
Have you tried sticking a breakpoint or some logging inside Component::addToDesktop? Given the similarity with the other issue, it would be a good idea to categorically confirm that no additional windows are being created.