Nitrokey / nitrokey-app

Nitrokey's Application (Win, Linux, Mac)
https://www.nitrokey.com/
288 stars 55 forks source link

Nitrokey App crashes on hovering over "configure" in KDE global menu #427

Open Lillian-Violet opened 5 years ago

Lillian-Violet commented 5 years ago

The app and nitrokey are working fine aside from the issue mentioned in the title; when I go to the global menu and hover over configure, the entire program crashes. This only happens when I enable the use of a global menu in KDE, it doesn't when it's disabled, so it seems to be a problem with handling that.

Expected behaviour

The configure menu shows the three options available for my nitrokey; OTP and password safe, change User pin, and change Admin pin

Current behaviour

A crash as soon as the configure item is hovered over and KDE global menu is activated.

Steps for reproduction

  1. add a global menu widget to any bar in KDE
  2. start nitrokey app
  3. unlock the nitrokey after plugging it in
  4. open the "Menu" option in global menu when nitrokey app is selected
  5. hover over "Configure"

Preconditions

Global menu is active in KDE (widget added to a bar)

Logs

https://pastebin.com/SWCD8pTS

szszszsz commented 4 years ago

Hi! Sorry for the delay. You seem to have latest libraries, so it should work from this side. Looking at log my guess is, that frequent menu update we do on the start up (the password listing in the menu) could be too fast for the global menu. I can try to decrease the update frequency and check that.

Perhaps it would be a good workaround for the time being to use a Flatpak/AppImage/Snap, which might not integrate as good with the WM.

PureTryOut commented 4 years ago

I can reproduce this problem on both Alpine Linux and Gentoo Linux. I just started using the NitroKey but so far this application seems really unstable because of this. Is there any other info you need?

szszszsz commented 4 years ago

@PureTryOut @GLaDTheresCake I have not tackled the topic yet. Perhaps it could be worked around with using AppImage / Flatpak, where the libraries are provided with the binary.

I do not have schedule for working on it unfortunately. I hope this would be during the next month. Until this would be fixed, and if the workaround would not fix it, I can recommend a CLI UI - the nitrocli project.