Bug 489220 - Open File dialog freezes on plasma 6.1, worked fine in 6.0.5
Summary: Open File dialog freezes on plasma 6.1, worked fine in 6.0.5
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 6.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-06-26 09:42 UTC by Martmists
Modified: 2024-06-28 13:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of selector (123.80 KB, image/png)
2024-06-26 17:44 UTC, Martmists
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martmists 2024-06-26 09:42:38 UTC
SUMMARY

STEPS TO REPRODUCE
1. Open chrome
2. Go to google.com
3. click the picture icon, then "select a file from your computer".

OBSERVED RESULT
Chrome freezes, and IF the open file dialog shows up, it too is frozen.

EXPECTED RESULT
The open file dialog works as expected.

SOFTWARE/OS VERSION
Operating System: Arch Linux 
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
GPU Driver: nvidia (proprietary) 555.52.04
Comment 1 Nate Graham 2024-06-26 16:16:06 UTC
When the file dialog shows up, it is the KDE file dialog, or the GTK one? If you can't tell, please attach a screenshot.

If it's the GTK one, then this is a Chrome issue.

If it's the KDE one, can you comment on whether you did anything specific to make the KDE dialog get used instead of the GTK one? For example forcing it to go through the portal system.
Comment 2 Martmists 2024-06-26 17:44:20 UTC
Created attachment 171024 [details]
Screenshot of selector

Attached is a screenshot, I'm not sure if it's GTK or KDE, but I think it's safe to assume it's likely to be related to the bugs causing freezes when applications are fullscreen, when the panel becomes hidden and when using the application dashboard.
Comment 3 Martmists 2024-06-26 17:47:59 UTC
Even if it is a GTK dialog, it should be noted that this behavior is consistent across other applications, including OBS, Java Swing and JFX applications, and other KDE-builtin tools like Kate (speaking of which, Kate, Dolphin, and various other KDE applications take a similar amount of time to start compared to the Open File popup, way more than usual).
Comment 4 Nate Graham 2024-06-26 20:38:57 UTC
Ok, that's the KDE dialog.

Can you comment on whether you did anything specific to make Chromium show the KDE dialog?

And are you saying you're experiencing other freezes too, though? Do they have a consistent pattern?
Comment 5 Martmists 2024-06-26 21:17:05 UTC
To my knowledge this has always been the default behavior for chrome. 

I am experiencing other freezes, but those have been documented in other bugs like https://bugs.kde.org/show_bug.cgi?id=488880 and https://universal-blue.discourse.group/t/testing-branch-kde-plasma-6-1-panels-freezing/2485 (I couldn't easily find it, but I'm assuming a bug report has been filed as this problem appeared on multiple sites including the KDE subreddit). The latter one is also affected by any application fully covering a panel such as in fullscreen mode.

All of these "laggy" behaviours were introduced somewhere between KDE 6.0.5's release and a few days ago (I'm not 100% sure if 6.1 or a later update was the culprit)
Comment 6 Nate Graham 2024-06-26 22:27:02 UTC
I think it would be very strange if Bug 488880 is related to this.

Let's get back to the original issue. When you say the file dialog freezes, what exactly does that mean? Can you drag it around and close it from its titlebar at least?

From https://universal-blue.discourse.group/t/testing-branch-kde-plasma-6-1-panels-freezing/2485, it looks like at least one person said the NVIDIA 555 driver caused this?
Comment 7 Martmists 2024-06-27 09:27:06 UTC
So when I click "select a file" in chrome (or any other application), the dialog takes between 1-4 minutes to appear, and during this time both chrome and plasmashell are completely frozen. I can still move chrome using the move window keybind from kwin. 
Once the dialog is open, it becomes unresponsive, not reacting to any mouse or keyboard events. During this time, plasmashell  *is* responsive.

I've read in pretty much all of the related issues regarding the panel/fullscreen mode that it seems to be related to driver 555, but I have no way to verify this currently.
Comment 8 Zamundaaa 2024-06-27 19:05:37 UTC
Does this also happen with NVidia driver 550 / any driver older than 555?
Comment 9 Martmists 2024-06-28 11:32:25 UTC
Seems to be related to driver 555. From what I can gather on the 555 release thread at https://forums.developer.nvidia.com/t/555-release-feedback-discussion/293652 there seem to be quite a few issues with the newly default-enabled GSP. Adding `nvidia.NVreg_EnableGpuFirmware=0` to kernel options seems(?) to solve this issue, I'll reboot a few times to confirm.
Comment 10 Zamundaaa 2024-06-28 13:27:15 UTC
okay, then please report this to NVidia.