-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bitmaps can crash the UIDescrition Editor #185
Comments
Callstack? |
If you crash, you should get a call stack or sometimes called backtrace. You should always provide this information if you file bug reports for a library you're using. |
Are you saying you cannot reproduce this? |
Can you please provide a backtrace of this problem? What's so hard in doing this? |
I assume that's because bitwig runs plugins in sandboxed threads, so running gdb only gets the running parent?
hum, no idea. Seriously, I have spent the whole day to pinpoint the crashes exactly to this issue, took the time to report it here for you, maybe you can take the time to give me a bit more info than "callstack?" |
OK, sorry. To create a callstack or backtrace is normally one of the first things you should get familiar with when writing software. First of all you have to make sure to generate debug symbols when compiling code. On GCC/Clang this is done with the "-g" command line switch. This should be set automatically when generating with cmake and the Debug or RelWithDebInfo build types. To make it more easy for you, you can use the editorhost example from the VST3 SDK to run your program in the debugger. Just run the gdb from the directory where you find the editorhost example with this commandline: gdb --args ./editorhost PATH_TO_YOUR_PLUGIN. If it crashes you will end up in gdb and you can enter the command "bt" to get the backtrace where it crashed. |
OK, one small step at a time: Let's first confirm the editorhost is running as expected with one of the example vst3. in
Maybe a Linux issue? Let's try Mac OS: (after some headstands)
success! Next step: gdb
I'll revisit this tomorrow. |
OK, first the path on linux should be the same as the one for macOS. So use ../../VST3/Debug/noteexpressionsynth.vst3 |
OK. Why is the Linux version of the editorhost not working? |
After some more troubleshooting I found that
is failing, but
is opening the editorhost. (Note the removed trailing slash! Tab autocomplete will add a slash because it's a folder.) |
Related: #186 |
For me the editorhost is not even working with the examples, so that prevents me to provide a callstack for the above issue, because the examples crash the editorhost already.
|
Hi, I don't get this crash. I just did the following: git clone --recursive https://github.com/steinbergmedia/vst3sdk.git |
Can confirm. Editorhost works on Linux, but the trailing slash for the vst3 folder needs to be removed when using tab complete.
but
(no trailing slash) works. |
So now it should be possible for you to provide a call stack for the initial issue, right? |
@scheffle what's unclear about this issue? |
Having a
bitmap.png
of 54 x 92 pixels and abitmap#2.0x.png
with 107 x 184 pixels will crash the plugin with host when trying to open the UIDescription Edior after recompile. Resizing the scaled image to 108 x 184 pixels will make it work again. Tested on Linux (Bitwig) and Mac OS (Ableton Live). Image sizes with odd pixel dimensions will create problems.The text was updated successfully, but these errors were encountered: