Bug 396704

Summary: Using Transform Tool (ctrl+t) on a selection, when applied, the contents of the selection disappears.
Product: [Applications] krita Reporter: Gremriel <gremriel>
Component: Tools/TransformAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: a.kamakin, halla, kapyia.art, raghu
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: df20641705b4135ad0bc94086aea0ad6e45af5cd
Sentry Crash Report:
Attachments: Video demonstration

Description Gremriel 2018-07-20 18:39:24 UTC
In 4.20.0alpha (git 9a237sd), when using Transform Tool (ctrl+t) on a selection, and then apply the transformation, the contents of the selection disapears. The selection is still active, but the border is invisible. Deselect i sgreyed out, and when I try to draw something, the strokes only appear in where the hidden selection is.

A short gif showing the issue: https://1drv.ms/u/s!AkaeRsWLjDGIpTYJbIz9tzAZoTrx

With larger documents, with multiple layers and open for a while, sometimes the contents of the entire layer disappears after applying the transform, and undo will only bring back some parts or will do nothing at all, even whne going all the way to the beginning of the Undo stack. I can not, however, reliable reproduce this.

Win10 64bit, nVidia GTX1070ti, 32gb RAM
Comment 1 Gremriel 2018-07-20 19:01:11 UTC
The git hash is 9a2372d, sorry for the typo.
Comment 2 Kapyia 2018-07-20 19:15:33 UTC
Created attachment 114034 [details]
Video demonstration


I can confirm with my similar setup (nVidia GPU, Intel CPU, Win 10) that the Transform tool is broken in the 4.2.0 pre-alpha (git 9a2372d). Undoing + redoing Transform actions results in duplicates on the canvas, and Transforming a layer multiple times results in data corruption.
Comment 3 Halla Rempt 2018-07-23 18:24:37 UTC
Dmitry, 

I think this is one for you and Lieroz to look into?
Comment 4 Dmitry Kazakov 2018-07-24 10:10:40 UTC
I guess it is related to Lieroz's tile manager fix. In my selections branch (which is based on before-tile-manager-optimization era) it works fine.