-
-
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
Cannot load library C:\Program Files\LMMS\plugins\carla*.dll on Windows #5984
Comments
This might help, in addition to adding Carla.lv2 to my path I moved carla.dll from (Can't use it though, LMMS freezes and Windows kills it if I try to put a Carla rack or patchbay on a track. But that might be my box that's too slow.) |
Hello. I have found that this bug is actually with Carla 2.3.0, For the version 2.2.0, I hope this observation will be useful. |
Confirmed. @falkTX any idea how to get this working with the latest? |
I guess it is related to me trying to make use of stack boundary checks, but I am removing that for next 2.5.5 release. |
@falkTX thanks for the quick reply. I tested 2.5.5 from the artifacts and it still does not load. Any other ideas? |
why doesnt it load? I cant just guess it |
You helped us get this working here: ... and then again here: If you don't have any ideas, that's fine, we'll just ask people to use 2.2.0 until someone can dive deeper. |
From what I can read on the other tickets, the step to get it to work was to reuse the lv2 carla.dll. So the #5713 needs to be partially reverted to use |
By the way, latest/next carla has a cmake setup file now, which allows to build the host related tools. (it is even compatible with MSVC now) It does not build the full frontend though, and I still need to add the That said, I think I should be able to fix things enough to make this work again.
|
ok I am able to get things to work again. Just a few easy steps:
That should do it. PS: I only tried this via wine, not on a real Windows system. But should be the same in the end. |
Thanks. I tried a few variations of this on Windows proper:
Unfortunately, I still can't get the plugin to load. Based on your comments, I assume it's a DLL search order (or DLL search location issue), but I'm not sure how to get this working. Here are my current steps on Windows (click to expand) Click to expand steps
I tried a few other combinations too. One thing I noticed when using My gut instinct is that this symbol is the root of the problem. I took a quick glance at the Carla project and didn't notice any immediate changes to this API call though so this is just a blind guess. 🍻 |
this is linking against the |
Trying this myself in Wine, doing these exact steps:
works here. |
Oh... this step was mentioned, but missing. I'll re-try.
Unfortunately, we still use We can absolutely switch it back but it will break anyone upgrading. Fortunately, I don't think this combination is common enough to worry about, so the project shouldn't get much pushback on it. I'll re-test now. |
I think it is better to change it, gets quite confusing otherwise. Since I have removed the "carla releases" repo and made these release-style downloads part of the main repo, I expect more people to pick this up if it becomes easier to manage. |
So I was really struggling with the
Any concerns with the above? |
adding to the PATH shouldnt be needed or recommended. |
let me do a quick try on Windows, to see what kind of errors appear... |
This is to avoid steps that mutate our install directory. |
by mutating the entire windows system? the native-plugin DLL is always needed because a library links against it, the proposed workaround doesn't sound very sane to me. LMMS could just setup Carla on Windows to build the extra tools, something like...
(this wont work as-is right now, just a proposal/idea for future) I tried copying stuff into the LMMS dir on a real Windows system just now. No errors appear, it works on the first try. |
I understand the concerns. Unfortunately, until Carla or LMMS provides a reliable search location, LMMS needs a way to find this file. It's how we tackled this in #5713 and -- in my experience -- it's quite common for software to use this. Windows looks for DLLs in the following search order:
... so Another possible solution is to provide a settings screen for this like we do for VSTs and things, or a custom environment variable, but I wanted to decrease the scope. There's also the possibility of having Carla as an installable desktop application, (then we'd look for it in some reliable locations) but that would be even more scope, so |
Yeah, I think this is the best long-term approach, but we'd probably want to build and bundle it for all systems if that's the case. |
ok so it is a matter of reducing scope. even if we had Carla in a known location, that doesnt help the case of needing simplest method I see here, without having to resort to a full installer, is to have Carla write to the windows registry in a predefined path what was its last known location. so users would run the standalone once, and after that LMMS would try to find it via registry key. |
Yes, however, that will require the user to run carla at least once, then start LMMS, since the desktop installer is distributed as a
Well, Windows has defined locations for apps too, I just think it's just more culturally acceptable on systems like Mac to expect users to drag-and-drop software into the Applications folder from a zip file. The same could be argued for Windows, we could expect a drag-and-drop to I could offer to write a Windows desktop installer/uninstaller for Carla (I use |
This could also help with some redundant files and reduce the download size. |
Writing an installer is not a problem, I have done it quite a few times. If doing a Windows installer for Carla, I would need volunteers to actively test it, specially important for new versions where a couple of deep things change (like v2.6 introducing |
Not to start another argument here, but the ticket is due to a historical decision to use
I was thinking of this as well and didn't mention it... I didn't mean to minimize this effort. 🍻 |
while not the best, that is surely the easiest and fastest way at the moment. |
I've tested our artifact from #6726 with Here's our updated installer: |
Bug Summary
I tried to use the Carla plugins, but they do not load.
Disclaimer: I don't really know much about the plugin and am new to LMMS.
Steps to reproduce
Expected behavior
According to the release notes Carla should work now, but it doesn't (also when I add Carla.lv2 to my path).
I downloaded 64-bit Carla from the link at the bottom of https://kx.studio/Applications:Carla and unzipped it somewhere. Do I need to do more to make it work? Do you even need to download it separately?
Actual behavior
Carla plugins are not listed, and in the console I get:
This is Win32 error code
0x0000007E
(126):ERROR_MOD_NOT_FOUND
.When looking at API calls we can see that
LoadLibraryW("C:\Program Files\LMMS\plugins\carlapatchbay.dll")
indeed fails (returnsNULL
) and sets the error code to the value above. I verified that this dll does actually exist at this path. Apparently this error code can mean that a dependency was not found, butcarlapatchbay.dll
depends on:which do all exist.
Affected LMMS versions
LMMS 1.3.0-alpha.1
The text was updated successfully, but these errors were encountered: