WebView crashes PluginVal

This was initially happening in a plugin we develop, but I can reproduce it quite reliably with WebViewPluginDemo on Mac/M1.

  1. Build WebViewPluginDemo VST3
  2. Load it with PluginVal on level 10 and enough runs (I sometimes needed around 50-100 runs until the crash happens).

The crash only happens in the Editor open/close test. I’ve compiled a Mac version of PluginVal that only runs this test which should make this easier to reproduce:
https://www.dropbox.com/scl/fi/zw90f12lrrdkqx5t7lee9/pluginval.zip?rlkey=i0hscgemr4wtb69c0ljrddjxs&dl=0

Also I’m attaching a screenshot of the call stack, in case it helps. It seems like a callback that references this is called after the editor has been destroyed.

3 Likes

Could be related - but we’re also experiencing a bug where if the DAW quickly spawns multiple instances of the editor, it freezes the entire UI of the DAW.

We ran into that issue on Windows only in both FL Studio 2024 and Cubase 14, when loading a saved session that had multiple open instances with their editor open.
That particular bug could not be reproduced on Mac.

When I added a timer that only allowed the internal WebUI Component to be created in a 1 second interval - bug gone, and it also fixed the crashing issue in PluginVal.

1 Like

Thanks for reporting. I’m investigating!

EDIT
I was able to repro! It turns out macOS (and potentially iOS) will try and service a URL request even if the object is being destroyed, resulting in a callback to a delegate that has since been de-allocated. There’s a fix waiting for review. It will take a few days as some of us are still away for the holidays.

1 Like

Thanks for reporting, this should be fixed here:

1 Like