Bug 396606 - Undoing a crop action causes data corruption
Summary: Undoing a crop action causes data corruption
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tools (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-07-17 15:16 UTC by Tyson Tan
Modified: 2018-07-31 12:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: df20641705b4135ad0bc94086aea0ad6e45af5cd


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tyson Tan 2018-07-17 15:16:09 UTC
In krita-4.2.0-pre-alpha. when undoing a crop action under certain circumstances, the data of the cropped areas will be corrupted.

1) Drag an existing JPG/PNG into Krita
2) Crop it
3) Undo the crop
4) Although Krita can restore the document's dimensions, it does not fully restore its information. It's weird that the restored area of the picture looks like it has the same size as the crop area, but it is actually not the same.

Tested on krita-4.2.0-pre-alpha-11668da-x86_64.appimage, Manjaro 17.1.11 KDE
Comment 1 Kapyia 2018-07-17 19:48:13 UTC
Present for me in 4.2.0-pre-alpha (git 024d1a3) on Win 10 as well
Comment 2 Antti Savolainen 2018-07-21 12:15:37 UTC
I can reproduce this but only with the 4.2.0-pre-alpha-3ec98eb appimage and krita 4.2.0-pre-alpha from krita-lime.

Here's a video where I test the stable, git(be4ed82), and various appimages: https://youtu.be/YTacGBgOPa0

I tested the krita-testing version after realizing I had the old installed and was able to reproduce it there too but it didn't make it to the video.
Comment 3 Dmitry Kazakov 2018-07-23 10:10:20 UTC
Yes, I can confirm. The bug is *not* present in this sha1

af6febcd63d92c6b840fd79abfef637e7e9bb4c7

It might be related to Andrew's has table patch...
Comment 4 Dmitry Kazakov 2018-07-23 11:46:20 UTC
The bug first appeared in the merge from Andrew:

d9dce0b93ca72ed5fb46e9f291ff615bfdef86b6