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

            Bug ID: 487963
           Summary: kis_paint_device assert when altering layer from
                    Python
    Classification: Applications
           Product: krita
           Version: nightly build (please specify the git hash!)
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: * Unknown
          Assignee: krita-bugs-n...@kde.org
          Reporter: razin...@gmail.com
  Target Milestone: ---

Created attachment 170092
  --> https://bugs.kde.org/attachment.cgi?id=170092&action=edit
assert

SUMMARY

I have custom addon that replace layer byte data from python after custom
processing. It worked well in Krita 5.2.+ and 5.3.0. Today i updated Krita Next
to nightly build and it started to show an assert on each action. Tested both
on MacOs and Windows - same assert on same action. It worked the same way well
in previous nightly builds of 5.3.0

The python code that trigger assert is:
activeSel = doc.selection()
... many actions involving erode/dilate of selection ...
# restoring initial selection
doc.setSelection(activeSel) # causes assert

OBSERVED RESULT
- Assert in console SAFE ASSERT (krita): "!m_d->parent || !parent" in file
/Users/gitlab/ws/builds/GZwHuM5x/0/graphics/krita/libs/image/kis_paint_device.cc,
line 1195
- Alert on screen

EXPECTED RESULT
- no assert

SOFTWARE/OS VERSIONS
Windows: Windows 11
macOS: Sonoma 14.5 (23F79)

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

Reply via email to