Bug 482696 - Game Controller setting blocks UI before loading the page
Summary: Game Controller setting blocks UI before loading the page
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_joystick (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-07 11:48 UTC by Sahil Arora
Modified: 2024-04-01 01:44 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.4
Sentry Crash Report:


Attachments
Gif of the issue (496.20 KB, image/gif)
2024-03-07 11:48 UTC, Sahil Arora
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sahil Arora 2024-03-07 11:48:47 UTC
Created attachment 166573 [details]
Gif of the issue

SUMMARY
Game Controller setting blocks UI before loading the page. This adds a delay of around 4 seconds, where nothing is updated on the screen.

STEPS TO REPRODUCE
1. Open system settings
2. Click on Game Controller sidebar menu

OBSERVED RESULT
It take around 4 second for the UI to get unblocked.

EXPECTED RESULT
It should instantly load the Game Controller page (should show loading if its still trying to detect devices). This issue was still present even when a controller is connected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux TUF-BOI 6.7.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 00:30:36 +0000 x86_64 GNU/Linux
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Tested this on X11, Nvidia Proprietary drivers
Comment 1 Jeremy Whiting 2024-03-08 03:13:09 UTC
https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2095 has a temporary fix that makes the GUI look responsive even though it's taking a couple of seconds to do the SDL_Init. A better solution will be to do all SDL operations in a background thread. I'll look into that next.
Comment 2 Jeremy Whiting 2024-03-28 15:40:35 UTC
Fix pushed to master and 6.0 branch. So will be in 6.0.4. Note this isn't an ideal fix, but fixes the blocking, just delays it until after the gui shows up.