Bug 472626

Summary: If KDE Wallet is closed due to a kwin_wayland crash, when NeoChat launches, it throws a weird error message instead of prompting the user to unlock and open the wallet
Product: [Applications] NeoChat Reporter: Nate Graham <nate>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED WORKSFORME    
Severity: normal CC: carl
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-07-25 19:03:13 UTC
STEPS TO REPRODUCE
1. Use KWallet and store NeoChat credentials in it
2. make kwin_wayland crash (an easy way is to touch the screen with a stylus on Wayland; found while testing Bug 472358)
3. Launch NeoChat


OBSERVED RESULT
NeoChat launches but shows an error message saying "Access token wasn't found; maybe it was deleted"


EXPECTED RESULT
NeoChat prompts to unlock and open the wallet


ADDITIONAL INFORMATION
If I don't make kwin_wayland crash, and instead simply manually close the wallet using KWalletManager and then launch NeoChat, then the problem doesn't happen and it does prompt to unlock and open the wallet as expected.

Might be a KWallet bug rather than a NeoChat bug.
Comment 1 Nate Graham 2023-07-25 20:34:20 UTC
Not a crash, Bug Janitor.

(this comment makes it stop changing it back)
Comment 2 Tobias Fella 2023-11-24 13:44:15 UTC
I can't reproduce this; after killing kwin_wayland and starting neochat, the kwallet unlock dialog comes up as expected. Can you still reproduce?
Comment 3 Nate Graham 2023-11-29 16:50:24 UTC
kwallet no longer closes automatically due to a kwin_wayland crash as of Qt 6.6, so I have no way of reproducing the original issue anymore.