Bug 452153

Summary: A Transparency or Filter Mask being present causes a crash on next opening.
Product: [Applications] krita Reporter: Ahab Greybeard <ahab.greybeard>
Component: Filter LayersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: halla
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test file for crash bug

Description Ahab Greybeard 2022-04-01 16:10:38 UTC
Created attachment 147881 [details]
Test file for crash bug

SUMMARY
This bug was introduced in the Mar 29th 5.1.0-prealpha (git 6da8c772d3) appimage and is not present in the Mar 28th or earlier appimages.
It is reported for the Mar 31 5.1.0 prealpha (git 625152f808) appimage on Debian 10.

There are two greyscale related Commits in the Mar 28 version but the bug doesn't happen until the Mar 29 version.

A test file, Test-Trans-Filter-Masks.kra, is attached that can be used to induce the crash.

This crash bug may be related to the area of concern for this crash bug:
https://bugs.kde.org/show_bug.cgi?id=452145

STEPS TO REPRODUCE
1. Open the attached Test-Trans-Filter-Masks.kra file.
2. Close it then Open it again.

OBSERVED RESULT
1. Note that the transparency and filter mask are not visible.
2. A crash with the terminal saying "Segmentation fault".

EXPECTED RESULT
Not crashing.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.1.0-prealpha (git 625152f)
 Languages: en_GB, en, en, en_GB, en
 Hidpi: false

Qt

  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.19.0-20-amd64
  Pretty Productname: Debian GNU/Linux 10 (buster)
  Product Type: debian
  Product Version: 10
  Desktop: MATE
Comment 2 Ahab Greybeard 2022-04-06 16:14:46 UTC
This was fixed in the Apr 03 5.1.0-prealpha (git bcff23b8f0) appimage.