Bug 431758 - Krita fails to save all partial .kra files when using the "Split Image" tool along several vertical guides if the guides were added in random order.
Summary: Krita fails to save all partial .kra files when using the "Split Image" tool ...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 4.4.2-beta2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: sh_zam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-17 21:17 UTC by Ecstatic Coder
Modified: 2021-08-16 20:38 UTC (History)
2 users (show)

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


Attachments
test files, output files and log files (1.44 MB, application/x-7z-compressed)
2021-01-17 21:17 UTC, Ecstatic Coder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ecstatic Coder 2021-01-17 21:17:34 UTC
Created attachment 134975 [details]
test files, output files and log files

SUMMARY

Krita fails to save all partial .kra files when using the "Split Image" tool along several vertical guides if the guides were added in random order.

STEPS TO REPRODUCE
1. open "footer.kra" which contains a fake footer image with guides added in random order (middle guides then left side guides then right side guide)
2. Image > Split Image > enable both vertical and horizontal guides > launch the operation



OBSERVED RESULT

Krita shows an error panel telling that an exported file can't be saved, and indeed only some of the files have been properly cropped and saved, a file being missing, and another one not properly cut.

EXPECTED RESULT

Several .kra files saved, one of each strip between the vertical guides.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Family v1909 (18363.1316)

ADDITIONAL INFORMATION
Comment 1 Ahab Greybeard 2021-01-19 08:46:09 UTC
I can confirm this for the Jan 18 4.4.3 alpha (git 7a4a88d) appimage.

The problem seems to be caused by the guides not being positioned in the order in which they were created.
After a failure, if you drag the guides to reposition them in the order in which they were first created (assuming you can remember what it was) then the split can be done with no problems.