-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MIDI Transpose crashes Ardour when last instance is removed from the session #319
Comments
there is no ardour on the kxstudio repos since a few years now... |
Thanks! I thought this could be the plugin bug. Should I report this to the Ardour team? |
hard to say where the bug is, but well its the same person doing the support for both lv2 plugin and host side so we can just ping @x42 here |
actually I think this "MIDI Transpose" is the one exposed from Carla. but the error you get is not something that any carla plugin code uses |
Thank you! Not sure what "exposed from Carla" means, but here is the info from Ardours plugin scan: URI: http://kxstudio.sf.net/carla/plugins/miditranspose |
That is weird. the x42 midi plugin does not use any threads. Maybe it's falktx' plugin (carla.lv2) after all? In any case, I cannot reproduce the crash. I can add/remove all 3 of those plugins just fine in Ardour 8.10.0 (from ardour.org). So we will need more information about this. Ideally could you get a backtrace of the crash? The long story how to do this is described at https://ardour.org/debugging_ardour in short open a Terminal window, run |
Thanks for the debugging instructions link! I wasn't aware one can get nightly builds, so I got one today, and I could reproduce the crash with it as well, using the same steps from my original post. I attached the gdb outputs from: Ardour-8.10.0 running ALSA The plugin that crashes my Ardour shows up in the plugin list like the third plugin in your screenshot (MIDI Transpose -- plugin utility -- Filipe Coelho - LV2) Please let me know if I can help further, and thanks for your work! gdb_output_Ardour_9.0.pre0.439_dbg_dummy.txt |
Thanks. You're close, yet you've skipped the last step: get the actual backtrace after the crash at the gdb prompt type |
ohhhh sorry, I knew it was a bad idea to do this after a 35-hour bus ride :) gdb_bt_Ardour_9.0.pre0.439_dbg_dummy.txt |
@falkTX does your plugin set thread-local variables? |
I dont recall ever using such things for carla. but since the lv2 binary includes part of carla there might be some static initialization things in there. |
@falkTX last I ran into an issue like this was with abique's u-he/Linux plugins They do set thread-keys, free the data stored there, but not unset the key. This leads to a double-free in Then again
could be caused by static initialization of pthread as well: |
MIDI Transpose (unlike MIDI Chromatic Transpose or MIDI Key Transpose) crashes Ardour when the last instance of it is removed from the session, or when closing the session, or Ardour itself:
lilv_world_load_bundle(): note: Newer version of http://gareus.org/oss/lv2/midifilter#cctonote loaded from file:///home/motka/.lv2/midifilter.lv2/
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_setspecific': Invalid argument. Aborting.
Aborted (core dumped)
I tested with the version that is in the current debian repositories (5:20210114), as well as the latest x42-midifilter-v0.7.3-x86_64.tar.gz. On the Ardour side, I tested with Ardour 8.10, as well as ardour8-lua (the Lua Console "Headless" version)
Steps to reproduce:
Workaround: use MIDI Chromatic Transpose
I was not sure where to report this, since it is installed with x42 midifilter package, but the author is Filipe Coelho :)
Thanks!
The text was updated successfully, but these errors were encountered: