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

            Bug ID: 505986
           Summary: Crash when enabling gradient overlay when no preset is
                    selected
    Classification: Applications
           Product: krita
      Version First 5.2.9
       Reported In:
          Platform: Appimage
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: layer styles
          Assignee: krita-bugs-n...@kde.org
          Reporter: n...@virtualcuriosities.com
  Target Milestone: ---

Created attachment 182530
  --> https://bugs.kde.org/attachment.cgi?id=182530&action=edit
File that can crash Krita

SUMMARY

Enabling gradient overlay seems to crash Krita when there is no gradient preset
selected. I have attached a file where this might be reproducible.

STEPS TO REPRODUCE
1. Open layer styles for "Clone Layer 3"
2. Click on the checkbox to enable "Gradient Overlay"

OBSERVED RESULT

Krita crashes after a moment.

EXPECTED RESULT

No crashing.

SOFTWARE/OS VERSIONS
I'm on Linux Mint.

ADDITIONAL INFORMATION
Selecting Gradient Overlay without enabling it doesn't crash Krita. It seems
the box to select a preset doesn't have a gradient selected. If you select a
gradient first and then enable the gradient overlay, Krita won't crash. In
other words, somehow the preset selected by default is invalid, and instead of
falling back to some fallback gradient Krita just crashes.

I'm not sure what controls which gradient is selected by default when you open
the dialog. If it's a global setting per user, then the file won't help
reproduce the bug and you'll have to somehow make the default invalid to
trigger the bug. I don't know why my default is empty.

I tried setting the overlay on both 5.2.2 and 5.2.9, it crashes in both
versions.

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

Reply via email to