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

            Bug ID: 503599
           Summary: Crash when selecting a custom Filter Engine Brush with
                    Color Adjustment filter
    Classification: Applications
           Product: krita
           Version: 5.2.9
          Platform: Android
                OS: Android 14.x
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Brush engines
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

This bug has been puzzling me because it only happens in a very specific
condition, and it is a bit tricky to reproduce, and when it does happen, Krita
crashes, and it doesn't create a crash log either.

So I use a custom Filter Engine brush with the Color Adjustment filter to
sometimes change the alpha value of my lineart when I ink. (The "alpha" channel
in the filter settings has points on the graph.) For example, my settings are
such that applying a brushstroke with this brush will decrease the alpha value.
Another one of my custom brushes increases the alpha.

What I've noticed is that whenever I select this brush from the Brush Presets
list, there is a very small chance Krita will crash. It doesn't always happen.
Sometimes I select the brush and I can use it normally. But on rare occasions
when I do select it, it will eventually cause the Krita UI to freeze for a few
seconds, and then the whole app will then crash.

Another observation is that the crash never happens when selecting the default
Filter brushes that come with Krita. In other words, the "Filter Blur" and
"Filter Sharpen" brushes never crash when selecting it. This leads me to
believe that only specific Filter Brushes with specific filters cause it.

The quickest way to reproduce this crash is to open your Brush Preset list, and
rapidly switch between the custom Filter Engine brush and the default Krita
brushes repeatedly. And maybe make a few brush strokes on the canvas while you
do this. It probably won't crash right away, but if you keep switching between
your brushes and this Color Adjustment filter brush long enough, it will
eventually trigger a crash, as though you finally encountered a shiny Pokemon,
heh.

I don't think this crash happens on the desktop version. I've only encountered
it on Android, so I'm probably 90% sure it's Android exclusive.



STEPS TO REPRODUCE
1.  Create a new Filter Engine brush with the Color Adjustment filter. Put
whatever setting in the filter's alpha channel.
2. Bring up your Brush Presets list by pressing the brush thumbnail on the
toolbar ("Painter's Tools" action).
3. Choose your custom Filter Engine brush

OBSERVED RESULT
A very low chance that Krita will crash. Maybe 5% or 10% chance? You will
probably need to select this brush many times for the crash to happen.  You'll
encounter the crash faster if you rapidly switch between this custom brush and
other default brushes repeatedly, and maybe making a few brush strokes along
the way.

When the bug finally occurs, the UI will freeze for a few seconds upon
selecting the Color Adjustment brush, and then crash to the Android home
screen.

EXPECTED RESULT
Should never crash when selecting a brush. Note that the crash does NOT happen
with default brush like Filter Blur and Filter Sharpen.

SOFTWARE/OS VERSIONS
Android 15
arm64 APK
Krita 5.2.9 and the latest 5.3 nightly at the time of this post

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

Reply via email to