-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Crash When Carla Rack or Patchbay is Replaced #5883
Comments
Confirmed. I don't have debug symbols in my carla, it's the default ubuntu-20.10. The last native code line touched is lmms/plugins/carlabase/carla.cpp Line 453 in ca17641
Crash when dropping a BitInvader over a Carla Rack with the gui open.
If I remove that line and the diff --git a/plugins/carlabase/carla.cpp b/plugins/carlabase/carla.cpp
index 728a6d804..4d738af30 100644
--- a/plugins/carlabase/carla.cpp
+++ b/plugins/carlabase/carla.cpp
@@ -441,7 +441,7 @@ void CarlaInstrumentView::toggleUI(bool visible)
if (fHandle != NULL && fDescriptor->ui_show != NULL) {
// TODO: remove when fixed upstream
// change working path to location of carla.dll to avoid conflict with lmms
-#if defined(CARLA_OS_WIN32) || defined(CARLA_OS_WIN64)
+
if (visible) {
QString backupDir = QDir::currentPath();
QDir::setCurrent(carla_get_library_folder());
@@ -449,8 +449,6 @@ void CarlaInstrumentView::toggleUI(bool visible)
QDir::setCurrent(backupDir);
return;
}
-#endif
- fDescriptor->ui_show(fHandle, visible);
}
} |
Reproduced with Carla 2.2.0. With Valgrind, I detected some use after free which seems related to the crash.
|
Carla Patchbay and Rack now appear when compiled under Visual Studio 2022. But as soon as it is clicked in order to drag into editor, it crashes. In both cases, it is:
https://github.com/LMMS/lmms/blob/master/plugins/CarlaBase/Carla.cpp#L190 Probably looking for resourceDir /resources and its contents which might be missing. |
Bug Summary
LMMS crashes or becomes unstable after Carla Rack or Patchbay instrument is replaced while its GUI is still active
Steps to reproduce
if the steps above don't result in a crash, try moving the Carla window to a different workspace.
Expected behavior
The Carla Rack/Patchbay instrument gets replaced by the new instrument that was dropped on top of it.
Actual behavior
LMMS crashes swiftly or becomes very unstable and crashes if the user tries adding or changing more unrelated instruments.
Note:
Some instruments do not trigger this crash(???)
From my testing, LB302 sometimes works fine initially, but LMMS crashes if another Carla instrument is added
Kicker sometimes works fine if the Carla window is in the same workspace.
Affected LMMS versions
1.2.1
1.2.1.701 (#5499)
1.3.0 alpha
1.3.0 alpha 1.44+g97114fb (#5846 (comment))
Logs
Click to expand
The text was updated successfully, but these errors were encountered: