Bug 434467 - Changing certain particle engine settings causes several gigabytes of memory leakage
Summary: Changing certain particle engine settings causes several gigabytes of memory ...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Brush engines (other bugs)
Version First Reported In: 4.4.2
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: sh_zam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 00:41 UTC by tomtomtomreportingin
Modified: 2021-04-13 14:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomtomtomreportingin 2021-03-16 00:41:22 UTC
SUMMARY
When changing certain particle brush settings, Krita spontaneously utilizes gigabytes of memory, which don't get cleared until Krita is exited.

STEPS TO REPRODUCE
1. Select Experimental Webs brush preset and open the brush settings.
2. Slide gravity down to the minimum value.
3. Slide iterations up to the maximum value.
4. Observe.

OBSERVED RESULT
Krita starts using excessive amounts of memory. Continuing to change settings or drawing on the canvas might cause an effective system lockup if the process isn't killed in time.

EXPECTED RESULT
No memory leakage.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.12.9 (Appimage)
Comment 1 Halla Rempt 2021-03-16 09:10:30 UTC
I can confirm the issue. Since it's a popup window, valgrind cannot really create a memcheck log.
Comment 2 Bug Janitor Service 2021-04-13 13:06:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/804
Comment 3 Halla Rempt 2021-04-13 14:31:28 UTC
Git commit 5fe44e273670d49d322b9709176f5f7864d7daa7 by Halla Rempt, on behalf of Sharaf Zaman.
Committed on 13/04/2021 at 14:31.
Pushed by rempt into branch 'master'.

Bugfix: Particle Engine memory usage with negative

.. value of gravity.

M  +1    -1    plugins/paintops/particle/particle_brush.cpp

https://invent.kde.org/graphics/krita/commit/5fe44e273670d49d322b9709176f5f7864d7daa7