Bug 428929 - File and folder dialogs stop accepting mouse input in Virtualbox on Plasma 5.20 and newer
Summary: File and folder dialogs stop accepting mouse input in Virtualbox on Plasma 5....
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (show other bugs)
Version: 5.20.2
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 436478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-10 12:25 UTC by cokejunkee
Modified: 2021-05-03 19:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
file chooser dialog (3.32 MB, image/png)
2021-03-23 08:50 UTC, Martin Schnitkemper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cokejunkee 2020-11-10 12:25:42 UTC
SUMMARY
Using VirtualBox (6.1.10, 6.1.14 and 6.1.16 tested) on Arch and Ubuntu based distros with Plasma 5.20 or newer, when trying to select image location and vm location the selection window freezes. Same behaviour on openSUSE Tumbleweed.

STEPS TO REPRODUCE
1. Use Arch, Ubuntu or openSUSE with Plasma 5.20 or newer
2. Install VirtualBox
3. Start VirtualBox. Create vm. Select image or vm location.

OBSERVED RESULT
Selection window freezes.

EXPECTED RESULT
Window not freezing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch, Ubuntu, openSUSE
KDE Plasma Version: 5.20.0 - 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.14

ADDITIONAL INFORMATION
Bug found using different Linux distros and different kernels:
Manjaro: Kernel 5.9.3, KDE 5.75.0, Plasma 5.20.2, VirtualBox 6.1.16
EndeavourOS: Kernel 5.9.6, KDE 5.75.0, Plasma 5.20.2, VirtualBox 6.1.16
KDE neon: Kernel 5.4.0, KDE 5.75.0, Plasma 5.20.2, VirtualBox 6.1.10
openSUSE: Kernel 5.9.1, KDE 5.75.0, Plasma 5.20.2, VirtualBox 6.1.14

On Debian (Kernel 5.6.0, Plasma 5.14.5) and (Kernel 5.7.0, Plasma 5.17.5)
the bug does not exist.
Comment 1 David Edmundson 2020-11-10 12:58:14 UTC
As it's a freeze can you open VirtualBox in gdb and get a backtrace of the freeze please?

Can you also 

unset KDE_SESSION_VERSION
unset XDG_CURRENT_DESKTOP
unset XDG_SESSION_DESKTOP

and see if it's reproducible?
Comment 2 Bug Janitor Service 2020-11-25 04:33:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-12-10 04:34:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 Martin Schnitkemper 2021-01-12 11:41:58 UTC
The issue still exist, but it is NOT a freeze as reported, since the application is still operational. 

The problem occurs in some file dialogs, such as attaching a optical media to a VM, or change the target directory for snapshots.  In these dialogs, mouse actions are not handled, that leads to the impression that the application hangs. 

In these circumstances, the focus has been set to the name field of the form and it is possible to type. The mouse pointer is visible and moving, but does not respond on any click.  As a workaround, it is possible to change the focus using the TAB key, or the cursor/arrow keys to select an item.  

I am not sure, if it is a KDE issue, but I could not find any related report at the VirtualBox bugtracker. 

System-Information:
==================
Operating System: Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.6-arch1-1
Comment 5 Nate Graham 2021-03-20 03:02:38 UTC
Probably a VirtualBox bug. But just to be sure, I'd like to reproduce. The existing instructions are too unclear for my puny brain. Can someone write very clear, simple, Nate-friendly instructions? Thanks!
Comment 6 Martin Schnitkemper 2021-03-20 08:35:57 UTC
(In reply to Nate Graham from comment #5)
> Probably a VirtualBox bug. But just to be sure, I'd like to reproduce. The
> existing instructions are too unclear for my puny brain. Can someone write
> very clear, simple, Nate-friendly instructions? Thanks!

For example, open an existing VM, then call "Settings", and there the "Advanced" tab in the "General"section. In this tab, open the item "Snapshot Folder"and clock to "other" to change the folder.

From now, you can't select any folder or any button with the mouse; just the keyboard still works. 

The same happen if you try to attach or change a ISO in the "Storage" section.  After you clicked on the blue button for "Choose a a disk file..." you cannot select the ISO, or change to another folder, or select any item if the tool bar, or one of the buttons to open the file or cancel the dialog.

If you still can't reproduce the behaviour, feel free to ask.
Comment 7 Nate Graham 2021-03-20 20:06:12 UTC
Thanks for those detailed instructions. When I follow them, the folder or file chooser dialogs work fine for me.

I wonder if you would somehow be using non-KDE dialogs. Can you take a screenshot of what one of these non-moue-input-accepting dialogs looks like for you? Thanks!
Comment 8 Martin Schnitkemper 2021-03-23 08:50:38 UTC
Created attachment 136977 [details]
file chooser dialog

Sorry for the delay, here is the screenshot as requested.  The mouse wheel for scrolling in the left bar (Places/Remote/Recent) does also not work, only the close button in the title bar react upon a mouse action.
Comment 9 Nate Graham 2021-03-23 12:35:34 UTC
Looks like it's the KDE one, thanks.

Strange, I see the same thing and cannot reproduce the issue. Someone more experienced with performance tracing than I will need to debug further.
Comment 10 Martin Schnitkemper 2021-03-23 16:36:12 UTC
I found after some searches a related bug report now on the Oracle bug tracker: https://www.virtualbox.org/ticket/20222

There is also attached a "vbox-fix-file-picker.patch", but it seems only to be a workaround and not a real fix: https://bugs.mageia.org/show_bug.cgi?id=27433#c11
Comment 11 Nate Graham 2021-03-23 17:10:56 UTC
Based on the patch, if it works, then this is very much a VirtualBox bug. :) Thanks for tracking that down!
Comment 12 Nate Graham 2021-05-03 19:32:58 UTC
*** Bug 436478 has been marked as a duplicate of this bug. ***