juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.54k stars 1.73k forks source link

[Bug]: Closing the Standalone plugin gives a Violation Access error #1305

Open bryfa opened 10 months ago

bryfa commented 10 months ago

Detailed steps on how to reproduce the bug

Just build a plugin with a standalone version. Run the standalone version for debugging Close the plugin

What is the expected behaviour?

Should handle this without any issue when closing

Operating systems

Windows

What versions of the operating systems?

Windows 11 Pro Version 10.0.22621 Build 22621

Architectures

x86_64

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

bryfa commented 10 months ago

image

bryfa commented 10 months ago

Tried this in the DEV branch and got the critical error when closing the standalone test app

Anthony-Nicholls commented 10 months ago

@bryfa are you able to reproduce this issue using one of the example plugin projects?

bryfa commented 10 months ago

Will try that, the thing is that is not consistent..

Anthony-Nicholls commented 10 months ago

The best way for us to take a look is with an example that demonstrates the issue. My best guess is that you are accessing an object that has already been deleted. You could also try enabling the address santizer to see if this provides any useful information.

bryfa commented 10 months ago

I didnt got the error lately and maybe your right about the deleted object. Happened only when closing the standalone app. I enabled the sanitizer, hope it will help finding the issue. Thanks for the tip.