https://bugs.kde.org/show_bug.cgi?id=475448

            Bug ID: 475448
           Summary: data loss when copy pasting into active layer in
                    subwindow mode.
    Classification: Applications
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Tools/Transform
          Assignee: krita-bugs-n...@kde.org
          Reporter: ghe...@gmail.com
  Target Milestone: ---

The bug causes data loss only in subwindow mode with both subwindows visible.
Tabbed mode or subwindows both in full screen and using the menu to switch
documents does not trigger apparently any issue. Tested on 5.1.5, and master
(21c93450d8)

To reproduce:
make 2 images A and B (A is source with paint info, B will be empty here)
Select from image A 
Edit-> Paste into active layer: to B (!this is important as paste into active
layer activates transform)
Ctrl + Z <- undo should make the transform go away, but it doesn't until the
second a undo is perform
Ctrl + Z <- transforms dissapears
Go back image A, Copy
Activate image B

Depending on windows some minor differences happen
Tabs: A legend "cannot transform empty region" (this assumes initial condition
of empty image B)
Subwindows: A ghost transform decoration (in the video) appears, the image A
tile data is deleted, this is permanent if transform is done in any way to this
ghost outline, if enter is pressed the data reapppers in image A. If the
transform mask is modified in this state then returning to image A and deleting
the selection and then selecting image B subwindow destroys the entire paint
data of image A.

Terminal output
2023-10-10 15:33:56.755317-0600 krita[95800:4455524] [krita.general] Unexpected
tool event has come to cancelStroke while being mode 0 !
2023-10-10 15:18:07.888869-0600 krita[95588:4445691] SAFE ASSERT (krita):
"dst->lodData->levelOfDetail() == defaultBounds->currentLevelOfDetail()" in
file
/Users/daedalus/developer/krita/repos/master/krita/libs/image/kis_paint_device.cc,
line 845
2023-10-10 15:18:10.646901-0600 krita[95588:4446046] SAFE ASSERT (krita):
"changeList.memento == memento" in file
/Users/daedalus/developer/krita/repos/master/krita/libs/image/tiles3/kis_memento_manager.cc,
line 275
2023-10-10 15:18:46.549543-0600 krita[95588:4444795] [krita]
CGImageDestinationAddImage:4060: *** ERROR: CGImageDestinationAddImage: cgImage
is nil
2023-10-10 15:18:46.550962-0600 krita[95588:4444795] [krita]
finalizeDestination:3167: *** ERROR: image destination must have at least one
image
2023-10-10 15:18:46.552450-0600 krita[95588:4444795] [krita.general] Warning:
some tiles have leaked:
2023-10-10 15:18:46.552463-0600 krita[95588:4444795] [krita.general]    Tiles
in memory: 249

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to