Bug 465852 - Kwrite 22.12.2: Saving a new document with key combo has a chance of opening infinite file pickers
Summary: Kwrite 22.12.2: Saving a new document with key combo has a chance of opening ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 22.12.2
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 16:47 UTC by someone2639+KDE
Modified: 2023-03-25 03:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kwrite style save dialog (50.65 KB, image/png)
2023-02-17 08:18 UTC, someone2639+KDE
Details
save dialog style from Kolourpaint (does not crash) (65.06 KB, image/png)
2023-02-17 08:19 UTC, someone2639+KDE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description someone2639+KDE 2023-02-16 16:47:57 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

ENVIRONMENT
OS: Arch Linux x86_64 
Kernel: 6.1.9-arch1-1 
Resolution: 1920x1080 
DE: GNOME 43.2
WM: Mutter (Wayland)

STEPS TO REPRODUCE
1. Create a new document (adding content doesn't change the outcome)
2. Hit Ctrl+S to save the document (using the menu File->Save doesn't seem to produce the bug)

OBSERVED RESULT
Many file pickers spawn. Count is not clear, but moving the mouse over the window seems to continue to spawn them ad infinitum. Clicking the frontmost window and holding Esc seems to get rid of them all so I believe there are human input factors that affect this, rather than being an out-of-control loop.

EXPECTED RESULT
Only one dialog should spawn

SOFTWARE/OS VERSIONS
KDE Frameworks Version: Version 5.102.0
Qt Version: Version 5.15.8 (built against 5.15.8)

ADDITIONAL INFORMATION
Comment 1 Justin Zobel 2023-02-17 07:31:38 UTC
Have you noticed any specific times when this happens more often so we can try and replicate it? I can't recall ever having seen this issue.
Comment 2 someone2639+KDE 2023-02-17 08:18:14 UTC
Created attachment 156348 [details]
kwrite style save dialog
Comment 3 someone2639+KDE 2023-02-17 08:19:10 UTC
(In reply to Justin Zobel from comment #1)
> Have you noticed any specific times when this happens more often so we can
> try and replicate it? I can't recall ever having seen this issue.

I have since observed this happening on Kate too, even after reinstallation and deletion of the kwriterc file. I don't see this on the other KDE app I have installed (Kolourpaint) but if there are other apps that use the kwrite-styled save dialog (pictured) rather than the native KDE one (will upload after this)


I did a diff of a fresh and a broken kwriterc state and here are the results:

$ diff broken.rc fresh.rc

1,9d0
< [General]
< Days Meta Infos=30
< Save Meta Infos=true
< Show Full Path in Title=false
< Show Menu Bar=true
< Show Status Bar=true
< Show Tab Bar=true
< Show Url Nav Bar=false
< 

I can upload the full rc files on request
Comment 4 someone2639+KDE 2023-02-17 08:19:47 UTC
Created attachment 156349 [details]
save dialog style from Kolourpaint (does not crash)
Comment 5 someone2639+KDE 2023-02-23 16:40:57 UTC
Have done a bit more testing (specifically whether removing the [General] category in the `kwriterc` would solve the issue until it was written back into the file), and it looks like the bug always happens now, regardless of even the presence/absence of a `kwriterc` or `kwritemetainfos`. The only change I can observe is that KDE Frameworks is now version 5.103.0

Are there other KDE apps I can test that would show the modern adwaita-style (xdg?) save dialog on gnome rather than the native KDE one?
Comment 6 Bug Janitor Service 2023-03-10 03:45:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-03-25 03:45:39 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!