Bug 29200

Summary: No cursor for text entry into keepassxc
Product: Mageia Reporter: w unruh <unruh>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, lewyssmith, ouaurelien
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: keepassxc-2.6.4-1.mga8.src.rpm CVE:
Status comment:
Attachments: Screenshot showing KeePassXC visible text entries

Description w unruh 2021-07-01 16:36:19 CEST
Description of problem:
Using keepassxc, there is no text cursor when you enter text into any of the fields in keepassxc. Thus, if you enter the password on opening there is no indication that that password field is active. If you go into the new entry option, there is no way to see which of the fields is active, and clicking the mouse on the field produces no visual effect. By typing one can see which field is active, but of course that is why visible cursors were invented so you could see where you were entering text before actually entering it. 

Version-Release number of selected component (if applicable):
2.6.4-1

How reproducible: Always. 


Steps to Reproduce:
1.Run keepassxc
2.decide to enter text into a field by selecting that field with your mouse. 
3.Note that there is no indication that the field has been selected, except by typing and seeing where the letters go.
Comment 1 w unruh 2021-07-01 16:39:00 CEST
Desktop XFCE, Mageia 8 updated, Desktop machine. 
VGA compatible controller: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
w unruh 2021-07-01 16:39:27 CEST

Summary: Mo cursor for text entry into keepassxc => No cursor for text entry into keepassxc

Comment 2 sturmvogel 2021-07-01 18:46:42 CEST
Can not confirm. It looks like you have not matching/bad matching color themes in use (e.g. dark cursor theme on dark application theme or white/white and so on) . Please post all your color themes in use so that we can try to reproduce.
Comment 3 w unruh 2021-07-01 20:20:13 CEST
OK. Unfortunately you will have to guide me as to what you want me to report. 
My Mouse cursor theme is ContrastLarge. If I change that to Mate black or Mate it makes no difference. Note that Keepassxc is the only program that gives me this problem. I have not noticed it elsewhere.
The keepassxc screen is light grey, almost white. 

Where else should I be looking for things to try or adjust, if it is the theme.
(Note that I have no trouble seeing the mouse location, it is just the cursor, usually a solid vertical line, in the text entry fields that is invisible.
Comment 4 Lewis Smith 2021-07-01 21:38:55 CEST
Created attachment 12835 [details]
Screenshot showing KeePassXC visible text entries

Thank you sturmvogel for your prompt comment.

I have just installed 'keepassxc-2.6.4-1.mga8.x86_64.rpm' on my M8 box (LXDE), and it *does* show text input; as this attached screenshot illustrates.

This is another issue where the reporter seems to be a lone case. We must be guided by sturmvogel as to what to look for.

CC: (none) => lewyssmith

Lewis Smith 2021-07-01 21:41:29 CEST

CC: (none) => sturm-fr

Comment 5 w unruh 2021-07-01 22:51:21 CEST
Sorry, I thought I was clear. It is ONLY the cursor which is not there (that vertical bar in your case after "a note." . Text shows up fine, but that vertical bar which shows where the text will appear when you type is not there. Nor is the cursor  there on any text entry in keepassxc.
I welcome any help. This behaviour does not occur anywhere else in any other program (eg, I am typing in Chromium, and the cursor is right where it should be, and goes to where I click the mouse pointer if I want to go back and correct something).
Again, this is in XFCE. 

I just did some more testing (after having reconstructed the database in keepassxc. 
Now the curseor is there in the notes, but not when I am changing any of the entries (eg password, username, Title in editing an entry, or Password, KeyFile in the login screen for Keepassxc)
Comment 6 Dave Hodgins 2021-07-02 00:44:07 CEST
Please try creating a new user and see if the issue is present for that user.

CC: (none) => davidwhodgins

Comment 7 w unruh 2021-07-02 01:17:33 CEST
It works for me  in Plasma, and in Icewm, but not in XFCE. Another user it works for in Plasma.
Comment 8 Dave Hodgins 2021-07-02 01:25:15 CEST
I'm suggesting trying it in a new user to see if it's some config setting
causing the problem or a system wide problem.
Comment 9 w unruh 2021-07-02 01:51:02 CEST
Yes, I understood, but wanted to do the easy tests first. 
I have now done what you asked, created a new user and logged in with XFCE, and it does now work for that user. So, as you say, it does seem to be some config setting of my user, which is of course of little interest for you, but is for me. Any suggestions of where to look would be appreciated. 
However, I think you can close this as invalid.
Comment 10 Dave Hodgins 2021-07-02 02:11:12 CEST
Closing.

Some ways of handling it ...

Rename /home/$USER /home/$USER.old, and move the files back from the old
directory till you figure out which one needs to be deleted or changed
by comparing them to the ones created for the new user.

Run it under strace (for eg. "strace -f -ostrace.txt keepassxc"), and then using
grep as in "grep /home strace.txt|grep -v such" to find the files to look at.

Tedious, but usually eventually locates the needed change.

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

Comment 11 w unruh 2021-07-02 06:55:07 CEST
Since my Home directory is 87GB in size, and contains almost 30thousand files, yes, it would be tedious.
I am not sure what one could look for to see that a cursor was not displayed in strace. The keepassx files are the same in XFCE and Plasma, so it cannot be there. It must be something that is unique to XFCE.
Comment 12 Aurelien Oudelet 2021-07-02 18:39:14 CEST
(In reply to w unruh from comment #11)
> Since my Home directory is 87GB in size, and contains almost 30thousand
> files, yes, it would be tedious.
> I am not sure what one could look for to see that a cursor was not displayed
> in strace. The keepassx files are the same in XFCE and Plasma, so it cannot
> be there. It must be something that is unique to XFCE.

I suggest you to change the desktop theme to a more lighter one.
Also, keepassxc is a QT application, so you should also try to use a lighter theme for QT apps under XFCE. Try with qt5ct application for doing this with your user account and XFCE desktop if this desktop is your desktop choice.

Regards.

CC: (none) => ouaurelien

Comment 13 Lewis Smith 2021-07-02 21:46:16 CEST
(In reply to w unruh from comment #7)
> It works for me  in Plasma, and in Icewm, but not in XFCE.
I shall try it under Xfce.
Comment 14 sturmvogel 2022-03-11 20:42:42 CET
*** Bug 30151 has been marked as a duplicate of this bug. ***
sturmvogel 2022-03-12 12:34:33 CET

CC: sturm-fr => (none)