-
-
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
Opening mmpz from within zip file crashes LMMS #2569
Comments
Sorry for the danish text ... it reads: "Microsoft Management Console has stopped working" etc. etc. |
It doesn't work on windows 7 64 bit either. When sharing a zip with a lot of different projects, just warn the receiver. |
Well, its much better to extract the file from an archive before opening it. OTOH, I think windows actually extracts the file you opened into its |
FYI, mmpz are not zipped format in the sense |
Yes, because you told Windows to open that file with LMMS. This is not a bug. Perhaps we can handle decoding/crash exceptions better, but that is an enhancement, if it is even worth our time. |
Wait a second... did you double click the zip, or double-click the mmpz inside the zip? Your screenshot suggests the latter. These are entirely different things. If we can't open a file inside a zip, that's a completely different issue (and probably a wont-fix). |
I double clicked a mmpz file inside a zip :) (edited text to be more specific) |
I tried this on Windows Vista 32-bit, using the latest stable LMMS. Looking in the task manager, I could see an LMMS process started with a project file in the path LMMS showed the splash screen for a couple of minutes, meanwhile I navigated to the directory and confirmed that the file existed. The LMMS process hung around without a window after the splash was gone, so I terminated it after a few more minutes. When I then double-clicked on that same temporary file after the first LMMS instance was gone, it opened perfectly. I couldn't see any difference in the command lines. |
Thanks for clarification. I can confirm this crashes LMMS. On Windows 10, this prompts to install DirectPlay. (don't, BTW)
Yeah, it seems that the path is correct, but the working directory is not... Not sure what part of the launcher this would break... Here's a test that will work with Windows XP and higher...
WScript.Echo("Current Directory: " + WScript.CreateObject("WScript.Shell").CurrentDirectory);
WScript.Echo("This File: " + WScript.ScriptFullName);
So this crash is likely to be caused by something we're assuming about the working path/current directory. The good part is that means we might be able to fix it. On a side note, we don't recommend EVER making changes to a zip file and expect the changes to be saved, so this "bug" may very well be considered a failsafe from a -Tres |
Stop using XP. |
it (xp) beat both w10 and wVista this time :P
i ought to but i was not getting an otherwise promised goodiebag, so .. |
A broken clock is correct twice a day, will you defend that too? 😄 Back on topic... I think we have enough information to investigate this bug and at least make the user experience better. 👍 |
@tresf's old finding helped me finding the cause of the crash. lmms/src/core/LadspaManager.cpp Lines 45 to 47 in 1c1575c
ladspaDirectories may contain empty entries, and it's treated as the working directory when constructing QDir . This adds undesired search paths(C:\Windows\System32 in this case) and makes LMMS crash.
|
The fix is very simple, excluding empty search paths. I think this may be added to |
@PhysSong this is a fantastic finding! In regards to it landing on |
Double clicking a zipped project results in this:
edit: To be more specific: this is about double clicking the file inside a zip package (so, first open the zip file and then double click the containing project to reproduce).
The text was updated successfully, but these errors were encountered: