Bug 1925130

Summary: With qt5-qtwayland package installed, keepassxc search-field an more not able to take text input.
Product: [Fedora] Fedora Reporter: nh <nhfed>
Component: keepassxcAssignee: Germano Massullo (Thetra) <germano.massullo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: germano.massullo, jan.public, jgrulich, jreznik, kde-sig, lkundrak, nonamedotc, pierluigi.fiorini, rdieter, than, vwfoxguru
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: keepassxc-2.6.4-2.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-07 00:47:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nh 2021-02-04 13:05:33 UTC
Description of problem:

Unable to type text in search and other text-inputs fields on keepassxc from fresh boot, unless kepassxc is launched from the terminal with argument "-platform wayland" or keepassxc is restarted once.

The problem is allready discussed there: https://github.com/keepassxreboot/keepassxc/issues/5608

Version-Release number of selected component (if applicable):
KeepassXC V 2.6.4 (Problem present since about V 2.6.1)

How reproducible:
After each fresh boot.

Steps to Reproduce:
1. install qt5-qtwayland and keepassxc;
2. launch and open/unlock a password database;
3. try to type text in search field.

Actual results:
No text appears in text-input-field.

Expected results:
Typed text appears in text-input-field. With each typed letter, filters the corresponding passwords entries below text-input-field.


Additional info:
Tried to uninstall qgnomeplatform (alone) ==> Doesn't solve the problem.
Tried to uninstall qt5-qtwayland ==> Solves the problem.

Comment 1 Rex Dieter 2021-02-04 13:13:48 UTC
This usually indicates an application issue/bug, triaging there.  If problems persist, the application can be patched to use xcb mode even on wayland

Comment 2 Germano Massullo (Thetra) 2021-02-04 13:37:57 UTC
This is an upstream problem, by the way could you please provide following infos
- desktop environment you are using AND if it is a Wayland or GNOME session
- KeepassXC Help menu->info->debug info

Comment 3 nh 2021-02-04 13:51:00 UTC
- DE: GNOME 3.38.3;
- Session: how do I find that out? is it the Window Manager? (WM: Mutter);
- KeePassXC debug info:

KeePassXC - Version 2.6.4
Revision: 34a78f0

Qt 5.15.2
Debugging mode is disabled.

Operating system: Fedora 33 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 5.10.11-200.fc33.x86_64

Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare (signed and unsigned sharing)
- YubiKey
- Secret Service Integration

Cryptographic libraries:
- libgcrypt 1.8.7

Comment 4 Germano Massullo (Thetra) 2021-02-04 14:01:42 UTC
(In reply to Germano Massullo from comment #2)
> This is an upstream problem, by the way could you please provide following
> infos
> - desktop environment you are using AND if it is a Wayland or GNOME session

I apologize, I made a mistake, I meant if you are using a Wayland or XOrg session. You can find out by running command
echo $XDG_SESSION_TYPE

Comment 5 nh 2021-02-04 14:13:31 UTC
Don't apologize, I presume most of Bugfilers understand all of this better than I do.

Thanks for the command!

Session is wayland.

Comment 6 Germano Massullo (Thetra) 2021-02-04 14:22:03 UTC
I am in contact with upstream developers, they are still figuring out if it is really a KeepassXC problem or not

Comment 7 nh 2021-02-04 14:26:30 UTC
removing qt5-qtwayland package solves the problem: it migtht be something there.

Comment 8 nh 2021-03-20 15:06:14 UTC
The problem doesn't appear in Fedora Workstation 34 beta.

Comment 9 Scott Williams 2021-03-31 22:57:48 UTC
This was my workaround for it: https://github.com/keepassxreboot/keepassxc/issues/4105#issuecomment-806940860

Basically, the desktop file needs this to support wayland:
Exec=QT_QPA_PLATFORM=xcb keepassxc %f
TryExec=QT_QPA_PLATFORM=xcb keepassxc

Comment 10 Germano Massullo (Thetra) 2021-04-30 13:51:35 UTC
This comment clarified why we are experiencing these problems. I will release a fix soon
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3BVLBS4B3XHJEXFVGD7RK2ZMXZG6JQZT/

Comment 11 Fedora Update System 2021-05-01 14:34:52 UTC
FEDORA-2021-a70c4b64b2 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a70c4b64b2

Comment 12 Fedora Update System 2021-05-02 01:10:22 UTC
FEDORA-2021-a70c4b64b2 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a70c4b64b2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a70c4b64b2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 nh 2021-05-02 09:16:23 UTC
Just tested the update: solves the bug for me. (https://bodhi.fedoraproject.org/updates/FEDORA-2021-a70c4b64b2)

Thanks a lot for your work!

Comment 14 Germano Massullo (Thetra) 2021-05-03 07:42:06 UTC
Good to ear!

Comment 15 Fedora Update System 2021-05-07 00:47:41 UTC
FEDORA-2021-a70c4b64b2 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Jan Grulich 2021-07-15 09:44:42 UTC
Hi, can you check whether you can reproduce this issue on current Fedora 34? You can re-force wayland plugin by running "keepassxc -platform wayland". I wanted to investigate this issue, but I cannot reproduce it.

Comment 17 nh 2021-07-16 16:34:15 UTC
Hello Jan,

Already did (https://bugzilla.redhat.com/show_bug.cgi?id=1925130#c8): the bug does not appear under Fedora Workstation 34. At least for me.

Best regards

nh