(Host Side Question) Plugins from "Full Bucket Music" crash after "set_parent" #386
-
Hi, I'm developing a DAW software and I use QT6 as my GUI framework. I have implemented clap sdk and tried some plugins listed in this page "https://clapdb.tech/". Most of the plugins worked well, but all the plugins from "Full Bucket Music" crashed after I executed the function "bool(CLAP_ABI *set_parent)(const clap_plugin_t *plugin, const clap_window_t *window);". My codes to load the plugin follow the official project "clap-host", I don't know where I did it wrong. The following is my loading process:
I'd be very grateful If someone could tell me what is wrong with my process, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Are you calling gui create before set parent? https://github.com/free-audio/clap/blob/main/include/clap/ext/gui.h that header contains the call order |
Beta Was this translation helpful? Give feedback.
-
The exit code is 0xC0000005, which means an access violation, you should run your program with Dr. Memory to spot illegal memory accesses. Since your program crashes on showing plugin GUI, and the load process itself seems correct, it's a good idea to check if your |
Beta Was this translation helpful? Give feedback.
this is an excellent idea.
In fact, having your host print out / log all the host side extensions which are queried would help. It may be that FBM is querying an extension you don't support and is not being robust to null; or it may be that it queries one you partially support.