Bug 318652

Summary: Krita eats lots of memory free space whenever changing layers order, and the occupied memory cannot released.
Product: [Applications] krita Reporter: ono <azazabc123>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: azazabc123, dimula73, halla
Priority: NOR    
Version: 2.6.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://dl.dropboxusercontent.com/u/1776218/krita.mp4
Latest Commit: Version Fixed In:

Description ono 2013-04-21 00:52:07 UTC
Krita eats lots of memory free space whenever changing layers order, and the eaten memory cannot be released.And more times you change, more spaces Krita takes.

This question often results in the whole system freezed for lack of memory if I forgot to check RAM frees (total 6GB). The only solution seems to be restarting Krita. 

It'll be released some (not complete) after I C-w to close current image, however Krita still has a strange memory occupying. The memory will be released completely when only C-q quitting Krita.

Reproduce video is here:
https://dl.dropboxusercontent.com/u/1776218/krita.mp4

Reproducible: Always

Steps to Reproduce:
Change layers order.
Krita eats lots of free RAM.
Actual Results:  
Krita eats lots of free RAM and nearly not released until quit Krita.

Expected Results:  
Changing layers shouldn't takes occupy layers without releasing.
Comment 1 Halla Rempt 2013-04-24 14:50:45 UTC
This looks related to group layers. If the layers are toplevel, memory consumption doesn't change. If you have two dozen layers inside a group, and move those about, memory consumption balloons.
Comment 2 Dmitry Kazakov 2013-05-07 11:02:44 UTC
I cannot reproduce it, could you send me a file that shows the problem?
(the video in the attachment doesn't play in my browser, i don't know why)
Comment 3 Halla Rempt 2013-05-08 11:59:59 UTC
Hi,

Which version of opensuse do you have exactly?
Comment 4 Halla Rempt 2013-12-17 10:33:31 UTC
We still use way too much memory, but the leaks are gone.