Layer content gone after transformation? (video demonstration caught!)

Anyone encountered same problem?
I think there are chances that the content of the layer will be gone after you transform it.
The canvas still has it (shows it), but the layer is empty, you are seeing the “cache”.
If you inspect this layer in isolation mode, you see it is empty.

Often you notice this after you been drawing for a while. So it is really nasty to deal with.
(I just do a screenshot and go with it…)

Bc it is a random event, i don’t have any evidence nor the way to reproduce it.
(That is why i am not opening any ticket.)
I am going in with a OBS recording from now on, see if i can provide some evidence later.
But now, has anyone ever encountered this “bug”?

----------------demo----------------

1 Like

Ticket opened.
Video demo: https://bugsfiles.kde.org/attachment.cgi?id=153259

Hi

I’m not sure to understand what exactly is the problem.
The video doesn’t provide any useful information to me, especially because the layer stack is missing.
Without having the layer stack visible, not possible to determinate what happen.

Usually, it’s better to provide a full Krita window screenshot/video than a cropped canvas area.

Also, providing OS & Krita version are welcome too :slight_smile:

Grum999

1 Like

The full screen recording exceeds the size limitation.

Watch from 1:27

3 Likes

After examining my own recording… the moment my layer icon changed into a rectangle, i am switching my pen direction. (Pen tail is eraser)
Could this be the cause?

If that is the cost, it would grave hard to reproduce, cus i am pretty sure i switch about hundreds times a day.

Ok thanks for full video.

What happen here doesn’t seems to be normal.
For me it’s not the transform tool, but a problem with dynamic brush.

It seems to be similar to thjs one with line tool.

If you’re running on Windows (always a good idea to provide OS and krita version…) you can try version provided by @dkazakov here to check if problem still occurs:

Grum999

3 Likes

Yes, i am using windows and 5.1.1…
:grinning: Thx for the help, i will definitely check that version.

:smiling_face_with_tear: Sadly this happened again.

Didn’t caught it on recording. Trying to record one on above dev build too.

1 Like

Recorded video on dev build.

Can you give the URL of the bug report you made? @freyalupen and @dkazakov might be interested in this.

Problem might be different then :roll_eyes:

I have no other idea, need for a developper for this case I think, I can’t help more on my side :face_with_spiral_eyes:

Grum999

1 Like

461109 – Layer content gone after transformation
:smiling_face_with_tear: sorry, forgot to paste ticket link

1 Like

Thank you for your effort. :smiling_face_with_three_hearts:

Thanks for the bug report. let us wait for the developers to check it out.

1 Like

Judging by both videos, it does appear that after switching to the eraser, the entire layer is cleared (content erased, boundary resized, which is visible in the layer thumbnail) without updating the canvas.
Looking at the second video in slow-motion (around :04), I can see the layer thumbnail update while the brush outline is not visible- while the pen is being flipped, before the eraser is activated.

It is different from the other bug, which only erased part of the layer and did update the canvas.
I haven’t managed to reproduce it, so I don’t really have any ideas.

1 Like

Hi, @BhVg0L0VGGs-0x16plAO!

Could you please check if the bug still happens if you switch to the transform tool into “Preview: Accurate” mode?

UPD: also disable Instant Preview in ‘View->Instant Preview’ and ‘Settings->Preferences->Performance->Instant Preview->Force Instant Preview in Transoform Tool’

1 Like

Hi, @BhVg0L0VGGs-0x16plAO!

Could you please also test this package? It has Instant Preview explicitly disabled, so it would be easier to track the problem down

krita-5.2.0-transofrm-corruption-dk1.zip — Яндекс.Диск

Please also make sure you run DebugView alongside Krita, because Krita will dumb a bit of info into it.

UPD:
The person in the bugreport said that the shortcuts scheme is related to the issue, that is, he had “Brush Tool” linked to ‘V’ key. Do you also have something like that?

1 Like

As per bug 460557 – Selection content deleted after transform but remains on screen until canvas area is "refreshed", I tested repeatedly toggling the Line Tool using the ‘V’ shortcut while the Transform Tool is active, and it caused unpredictable behavior. Either the Transform Tool would return to the unapplied transformation, the unapplied transformation would be reverted, or the layer would be cleared. I also encountered an assert in the memento manager on undo/redo.
Now that I have some idea of how to reproduce it, I’ll look into it further and see if I find anything.

2 Likes

Hi, @freyalupen!

I think I found the issue: on pressing of the V key, the tools switch too quickly, so the transform tool activates and deactivates too quickly, so that KisToolTransform::slotTransactionGenerated doesn’t have a chance to execute, therefore no updates come. I’ll check what I can do with that.

The only trouble is that I cannot reproduce the memento manager safe assert here. I can only see the pixel data loss, but not the undo breakage :frowning:

1 Like

Hi, @freyalupen and @BhVg0L0VGGs-0x16plAO!

Could you please test this package? I think it should fix the bug, though I’m not sure ti won’t introduce any other bugs :slight_smile:

krita-5.2.0-transofrm-corruption-dk2.zip — Яндекс.Диск

2 Likes