Hello all,
Now before we start, I realise that the webview component is experimental, however this is a potential bug that I’ve found. Specifically the IWebView::EvaluateJavaScript void in IPlugWebView.mm
Line 180 ( WKWebView* webView = ( __bridge WKWebView*) mWKWebView;) causes an EXC_BAD_ACCESS code=1.
This happens when EvaluateJavaScript is called while the plugin UI is closed, or closing as the webview object it’s trying to reference is no longer in memory I would assume.
Only happens with AU. VST3 does not cause this exception it would appear (better internal memory access exception handling? shrug).
I’ve tried creating a flag in CloseWebView(), but it doesn’t work to prevent line 180 from being called after the window closes, even if I wrap the whole contents of the EvaluateJavaScript void in an if statement to see if the flag is active.
Would appreciate any input anyone else has! Thank you.