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)
I can confirm the issue. Since it's a popup window, valgrind cannot really create a memcheck log.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/804
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