LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
8.1k stars 1.01k forks source link

LMMS usually freezes when opening specific folders via file dialogs. #3792

Open Sawuare opened 7 years ago

Sawuare commented 7 years ago

LMMS usually freezes when I open a specific folder via file dialogs. The freeze happened with all file dialogs in LMMS but didn't happen with any in FL Studio.

An example where I open a folder normally then open the one that causes the freeze: folder opening bug

The folder that caused the freeze contains 50 executable (.exe) and Windows Installer (.msi) files with a total file size of ≈ 1.75 GB. I think the reason behind the freeze is the big number of files or the big file size.

tresf commented 7 years ago

The folder that caused the crash contains 50 executable (.exe) and Windows Installer (.msi) files with a total file size of ≈ 1.75 GB. I think the reason behind the crash is the big number of files or the big file size.

I've seen this before and I think this is correct.

However... I don't believe LMMS is crashing. I believe you're getting impatient and doing a force-close. If you wait and don't interrupt the operations with clicking "close" does it eventually become responsive? If you use another Qt application such as Qt Linguist does it still occur?

Sawuare commented 7 years ago

However... I don't believe LMMS is crashing. I believe you're getting impatient and doing a force-close. If you wait and don't interrupt the operations with clicking "close" does it eventually become responsive?

I tested opening the same folder again and waiting:

I think this a caching issue, because the startup time also increases noticably when starting after hibernating the system.

If you use another Qt application such as Qt Linguist does it still occur?

I don't have Qt Linguist, unfortunately.

musikBear commented 7 years ago

I have seen this, and it is indeed indexing. I noticed that it was your folder 'Download -i bet you have zips in that :) I believe it is zipped folders, that causes this -there may even be some unzipping to temporary folders going on

Spekular commented 7 years ago

If musikbear is correct, this may be relevant: https://www.howtogeek.com/howto/windows-vista/prevent-explorer-from-freezing-with-large-zip-files-on-vista/

On Sep 4, 2017 16:09, "musikBear" notifications@github.com wrote:

I have seen this, and it is indeed indexing. I noticed that it was your folder 'Download -i bet you have zips in that :) I believe it is zipped folders, that causes this -there may even be some unzipping to temporary folders going on

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LMMS/lmms/issues/3792#issuecomment-326972243, or mute the thread https://github.com/notifications/unsubscribe-auth/AIgVmowaGzEgBs0Aryx-1Cp863cREUpaks5sfASTgaJpZM4PLSBY .

Sawuare commented 7 years ago

I don't have any zipped folders in "Downloads" or "Setups & downloaders".

tresf commented 7 years ago

I don't have Qt Linguist, unfortunately.

It's free and easy to install and would help point at the cause (e.g. possibly not our bug). Please consider testing with another Qt application's File Open dialog.

Sawuare commented 7 years ago

I downloaded QT Linguist from http://www.softpedia.com/get/Others/Home-Education/Qt-Linguist.shtml and tested the open file dialog a couple of times, it opened the same folder immediately.

Hey-Holokin commented 5 years ago

I get this issue quite frequently. It seems that the more files are in a particular folder, regardless of size, the longer the file takes to load in LMMS's explorer. I haven't looked into the code, but in theory I believe there's something wrong with the function that fetches file names for the explorer that's causing it to become horribly slow. Windows 10, RC5, although I'm told the issue is still present in RC7 as well.

DomClark commented 5 years ago

It appears to be an issue with non-native Qt file dialogs. LMMS uses a non-native file dialog so it can style it, and add plus and minus buttons to the "Save as New Version" dialog. I can reproduce this slow behaviour with non-native dialogs outside LMMS.

DomClark commented 5 years ago

See https://bugreports.qt.io/browse/QTBUG-41373.