Bug 505840

Summary: Pressing Cancel on File > Save options window results in "Unknown error"
Product: [Applications] krita Reporter: John Veness <john.kde>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dimula73, halla, noel
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description John Veness 2025-06-20 13:49:32 UTC
SUMMARY
If you save an image as a filetype which will lose information, i.e. flatten the image, or need quality settings, like JPG, but cancel the window where you are warned about this or can provide this information, you receive an "Unknown error" message.

STEPS TO REPRODUCE
1. Run Krita
2. Start a new document
3. Press Ctrl+S to bring up the "Saving As - Krita" window
4. Type filename: 1.jpg
5. Click OK
6. Notice window "JPEG image - Krita" appears, with a quality slider and so on
7. Decide against saving in this format, so press Cancel on this window

OBSERVED RESULT
A dialog: "Could not save <filename>.jpg. Unknown error."

Clicking Show Details reveals "Could not start saving <filename>.jpg. Unknown failure has happened".

EXPECTED RESULT
The "JPEG image - Krita" window to close, and the "Saving As - Krita" window to reappear, with folder and filename etc. filled in as before, to allow the user to choose a different file format for example.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250617
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Krita Version: 6.0.0-prealpha (git 79b3845)
Comment 1 Noel Santos 2025-06-28 12:46:53 UTC
I can confirm this happens in 5.2.9's appimage on Linux Mint. Not only when exporting but when "Saving As" as well.
Comment 2 Dmitry Kazakov 2025-11-20 14:51:32 UTC
The bug should be fixed now! 
https://invent.kde.org/graphics/krita/-/merge_requests/2531