Bug 27433 - Virtualbox 6.1.18 : Storage Section under VM configuration : Can't select ISO file in KIO Open dialog [Was OK before release of 6.1.14]
Summary: Virtualbox 6.1.18 : Storage Section under VM configuration : Can't select ISO...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL: https://www.virtualbox.org/ticket/20222
Whiteboard: MGA8TOO
Keywords: UPSTREAM
Depends on: 28828 28867
Blocks:
  Show dependency treegraph
 
Reported: 2020-10-16 13:36 CEST by Jose Manuel López
Modified: 2021-05-05 19:22 CEST (History)
7 users (show)

See Also:
Source RPM: virtualbox-6.1.18-2.mga8.src.rpm
CVE:
Status comment: Workaround is possible - QT related?


Attachments
VBox File picker patch (657 bytes, patch)
2021-02-23 15:24 CET, ValdikSS ValdikSS
Details | Diff

Description Jose Manuel López 2020-10-16 13:36:19 CEST
Description of problem: I can't select ISO file in storage section. I can't browse folders or places menu. The popup to select the iso file is not working properly, and I can only type in the "filename" field. It's like it's frozen.


Version-Release number of selected component (if applicable): Mageia 8 Beta and Virtualbox 6.1.14


How reproducible: Install Virtualbox, configure a new machine. After, in settings, select the storage section and select storage devices (cd icon) and select "Select a disk file". It will open a popup for select a ISO file. This window no works. It can't browse folders for select ISO file


Steps to Reproduce:
1. Install virtualbox and create a new machine.
2. Select storage section in settings and storage device.
3. The popup that appears no works.
Comment 1 Aurelien Oudelet 2020-10-16 16:21:26 CEST
Hi, thanks for reporting this bug.


I reproduce this bug, Plasma 5, Cauldron.

In settings, select the storage section and select storage devices (cd icon) and select "Select a disk file":
The Plasma file selector is not "clickable" and nothing can be set.

Workaround:
Choose instead "Choose/create a Virtual Optical Disk..." and this opens a Optical Disk Selector dialog which is efficient.

I see nothing in system journal BUT:

$HOME/.local/share/sddm/xorg-session.log, each time I try to reproduce the bug, I see:

Qt WARNING: QWidgetWindow(0x5680f00, name="UIMachineSettingsStorageWindow") must be a top level window.
Qt WARNING: QWidgetWindow(0x5c015a0, name="UIMachineSettingsStorageWindow") must be a top level window.
Qt WARNING: QWidgetWindow(0x56cf760, name="UIMachineSettingsStorageWindow") must be a top level window.


Assigning to all packagers.
CC'd recent commiters.
(Please set the status to 'assigned' if you are working on it)

Source RPM: Virtualbox 6.1.14 => virtualbox-6.1.14-3.mga8.src.rpm
Status comment: (none) => Workaround is possible
Keywords: (none) => Triaged
Target Milestone: --- => Mageia 8
Assignee: bugsquad => pkg-bugs
CC: (none) => ghibomgx, thierry.vignaud

Comment 2 Jose Manuel López 2020-10-19 15:36:24 CEST
Hi!

Today I update virtualvox to 6.1.14-3, the issue is still there. 

Greetings!
Comment 3 Giuseppe Ghibò 2020-10-21 13:25:09 CEST
Unfortunately the same problem occurs also in 6.1.16 as well as 6.1.97-svn86557. I wonder if it's not the filepicker of the newer QT library itself.

As workaround choose the iso files using the keyboard arrow/tabs keys to move across the files.
Comment 4 Aurelien Oudelet 2020-10-22 13:16:01 CEST
(In reply to Giuseppe Ghibò from comment #3)
> Unfortunately the same problem occurs also in 6.1.16 as well as
> 6.1.97-svn86557. I wonder if it's not the filepicker of the newer QT library
> itself.
> 
> As workaround choose the iso files using the keyboard arrow/tabs keys to
> move across the files.

Still here yes. Keyboard navigation under this GUI is OK. But GUI is not clickable.

Summary: I can't select ISO file in storage section. => Virtualbox 6.1.16 : Storage Section under VM configuration : Can't select ISO file in KIO Open dialog [Was OK before release of 6.1.14]
Status comment: Workaround is possible => Workaround is possible - QT related?
Source RPM: virtualbox-6.1.14-3.mga8.src.rpm => virtualbox-6.1.16-1.mga8.src.rpm

Comment 5 Giuseppe Ghibò 2020-10-22 14:15:14 CEST
Ugly, but if you select with arrows, then press tab on the ISO util filename it's underlined, then pressing Enter on the keyboard, will select that ISO.

It seems also upstream binaries (at least under mga8) suffers the same problem.
Comment 6 Giuseppe Ghibò 2020-10-22 14:25:03 CEST
What is also weird is that if you run Virtualbox 6.1.16 remotely from a mga7 host, you don't get the filepicker problems, so it seems rather a desktop problem.
Comment 7 Giuseppe Ghibò 2020-10-22 15:56:09 CEST
Not even needed a remote host. Just "ssh localhost" locally and run VirtualBox from there: the filepicker is not blocked.
Comment 8 Jose Manuel López 2020-10-29 12:55:48 CET
I have been able to select the iso file with Tab, but after the 6.1.16 version the problem is there.
Comment 9 Giuseppe Ghibò 2021-02-07 21:46:02 CET
This is happening in Virtualbox 6.1.18 too, but only in Plasma5. Doesn't happen under GNOME. Curiously the same .src.rpm rebuilt under Mageia7 doesn't show up the problem under Plasma.
Comment 10 Jose Manuel López 2021-02-16 09:38:21 CET
Hi, 

This remain unresolved, I testing Virtualbox in Mageia 8 and I have the same issue after the last updates.

Greetings!!
Comment 11 ValdikSS ValdikSS 2021-02-23 15:24:28 CET
Created attachment 12368 [details]
VBox File picker patch

Attached file is a workaround for this issue. It does not fix the core bug, but allows file picker to work properly again.

Fedora RPMFusion bug: https://bugzilla.rpmfusion.org/show_bug.cgi?id=5929

CC: (none) => iam

Comment 12 Giuseppe Ghibò 2021-02-23 19:25:06 CET
It seems the patch is working, the filepicker is no longer blocked. However now with the patch the behaviour seems reverted when you "ssh to localhost" and run virtualbox from there: the picker is now blocked there, though from ssh the filepicker seems slightly different in themes than with native plasma.

Thomas what do you think? Worthwhile an update on updates_testing?

I made a temporary build on copr with that patch included, result is here:

https://copr-be.cloud.fedoraproject.org/results/ghibo/virtualbox-6/mageia-cauldron-x86_64/02014656-virtualbox/

CC: (none) => tmb

Comment 13 ValdikSS ValdikSS 2021-02-24 18:43:59 CET
VirtualBox bug report: https://www.virtualbox.org/ticket/20222
Aurelien Oudelet 2021-02-24 20:09:00 CET

URL: (none) => https://www.virtualbox.org/ticket/20222
Target Milestone: Mageia 8 => ---
CC: (none) => ouaurelien
Source RPM: virtualbox-6.1.16-1.mga8.src.rpm => virtualbox-6.1.18-2.mga8.src.rpm
Keywords: Triaged => UPSTREAM
Whiteboard: (none) => MGA7TOO MGA8TOO
Summary: Virtualbox 6.1.16 : Storage Section under VM configuration : Can't select ISO file in KIO Open dialog [Was OK before release of 6.1.14] => Virtualbox 6.1.18 : Storage Section under VM configuration : Can't select ISO file in KIO Open dialog [Was OK before release of 6.1.14]

Thomas Backlund 2021-02-24 20:16:34 CET

Whiteboard: MGA7TOO MGA8TOO => MGA8TOO

Comment 14 Dave Hodgins 2021-02-25 21:47:14 CET
Workaround is to type the directory name into the Name: field.

CC: (none) => davidwhodgins

Comment 15 Barry Jackson 2021-02-26 00:35:20 CET
This is vaguely similar to long standing https://bugs.mageia.org/show_bug.cgi?id=18816 again about plasma file chooser.

CC: (none) => zen25000

Comment 16 Thomas Backlund 2021-02-26 19:57:34 CET
I've added the workaround in virtualbox-6.1.18-3.mga9 for Cauldron for now, but wont push to mga8 atleast yet as I want to see if it breaks somewhere...
Comment 17 Giuseppe Ghibò 2021-04-22 00:10:45 CEST
I've tried 6.1.20-1.mga8 on mga8 (where I've seen the filepicker patch was removed) but the filepicker in mga8 doesn't work. So maybe we should put the filepicker patch back?

Also in upstream https://www.virtualbox.org/ticket/20222 there aren't news, apart that it's reproducible on manjaro kde, but not on the virtualbox developer's mint 20.1.
Comment 18 Dave Hodgins 2021-04-22 00:32:34 CEST
Just encountered that myself. I found that the mouse doesn't work in the
directory/file selector, but the keyboard does, so I was able to just paste
in the full path and file name using the keyboard.
Comment 19 Thomas Backlund 2021-04-22 06:16:23 CEST
(In reply to Giuseppe Ghibò from comment #17)
> I've tried 6.1.20-1.mga8 on mga8 (where I've seen the filepicker patch was
> removed) but the filepicker in mga8 doesn't work. So maybe we should put the
> filepicker patch back?
> 

Yes, I intentionally dropped it to get feedback if it works without it or not...
Comment 20 Giuseppe Ghibò 2021-04-22 12:08:52 CEST
Probaby(In reply to Thomas Backlund from comment #19)
> (In reply to Giuseppe Ghibò from comment #17)
> > I've tried 6.1.20-1.mga8 on mga8 (where I've seen the filepicker patch was
> > removed) but the filepicker in mga8 doesn't work. So maybe we should put the
> > filepicker patch back?
> > 
> 
> Yes, I intentionally dropped it to get feedback if it works without it or
> not...

Ok.

Probably the bug is in the combination of the virtualbox code and the particular kde/qt libraries, as to resume we have:

- Mageia 7.1: working
- Mageia 8: failing
- Mageia Cauldron: failing?
- Manjaro current: failing
- Mint 20.1: working
- Fedora ?: failing
Comment 21 ValdikSS ValdikSS 2021-04-22 12:11:45 CEST
>- Fedora ?: failing

Fedora 33: Failing
Comment 22 Giuseppe Ghibò 2021-04-22 13:42:34 CEST
(In reply to Dave Hodgins from comment #18)
> Just encountered that myself. I found that the mouse doesn't work in the
> directory/file selector, but the keyboard does, so I was able to just paste
> in the full path and file name using the keyboard.

Another trick is to ssh to localhost and run virtuabox from the ssh (local) session.
Comment 23 Thomas Backlund 2021-04-22 17:29:10 CEST
workaround is coming in virtualbox-6.1.20-1.1.mga8
Comment 24 Giuseppe Ghibò 2021-04-22 20:28:29 CEST
The release virtualbox-6.1.20-1.1.mga8 works. Of course the behaviour is reverted and now doesn't work anymore within a ssh localhost session. I wonder if the fact that the bad behaviour is reverted in a localhost ssh session by applying the  filepicker patch could be a useful info for the complete resolution of the bug upstream.
Thomas Backlund 2021-04-23 23:34:38 CEST

Depends on: (none) => 28828

Comment 25 ValdikSS ValdikSS 2021-04-24 00:12:50 CEST
Workaround:

KDE_FULL_SESSION= XDG_CURRENT_DESKTOP= DESKTOP_SESSION= virtualbox
Comment 26 ValdikSS ValdikSS 2021-04-24 00:14:41 CEST
(In reply to Giuseppe Ghibò from comment #24)
> The release virtualbox-6.1.20-1.1.mga8 works. Of course the behaviour is
> reverted and now doesn't work anymore within a ssh localhost session. I
> wonder if the fact that the bad behaviour is reverted in a localhost ssh
> session by applying the  filepicker patch could be a useful info for the
> complete resolution of the bug upstream.

You can run it via SSH with:

KDE_FULL_SESSION= XDG_CURRENT_DESKTOP= DESKTOP_SESSION= QT_QPA_PLATFORMTHEME=gtk3 virtualbox
Comment 27 ValdikSS ValdikSS 2021-04-24 00:15:41 CEST
(In reply to Thomas Backlund from comment #23)
> workaround is coming in virtualbox-6.1.20-1.1.mga8

If you've applied my patch, that was a bad decision. It breaks non-desktop-integrated file picker.
Comment 28 Thomas Backlund 2021-04-24 01:07:21 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0197.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 30 Thomas Backlund 2021-05-01 20:43:28 CEST
Thanks for the reference ...

new packages coming...

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Thomas Backlund 2021-05-01 21:48:00 CEST

Depends on: (none) => 28867

Comment 31 Thomas Backlund 2021-05-01 21:53:24 CEST
6.1.22 with the fix from comment 9 is now in Cauldron and in mga8 testing
Comment 32 Thomas Backlund 2021-05-01 21:53:42 CEST
comment 29 that is...
Comment 33 Jose Manuel López 2021-05-04 08:58:20 CEST
Hi all!

I have updated to new testing version 6.1.22, and the bug is fixed. It works fine, I have created a new virtual machine, with all parameters configured, and I have selected a iso from Download folder without issues.

Greetings!!
Comment 34 Thomas Backlund 2021-05-05 19:22:44 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0105.html

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.