This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Memory consuption

Tags: None
(comma "," separated)
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Memory consuption

Thu Dec 24, 2015 5:18 am
After long painting session with multiple layers and multiple documents krita had taked 18 GB of RAM. But when I had closed all documents it was still using 17 GB of RAM.

Screenshot with version (2.9.7) and memory statistics:
http://dobrokot.ru/pics/i2015-12-24__08-18-50_496kb.png


After I had restarted Krita and reopened documents, Krita taked only 1.5 gb, not 18.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Memory consuption

Thu Dec 24, 2015 10:59 am
Yes, that's because Krita pools memory, which means that if you use some, and then stop using it, Krita keeps it in reserve for later. You can set a maximum in the settings->configure Krita->performance panel.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Memory consuption

Thu Dec 24, 2015 11:20 am
Well more interesting would be what Krita reported in the statusbar; the OS memory usage reports are notoriously confusing. Windows can very well report that your working set stays really big, while actual physical ram is released for use by other processes.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Re: Memory consuption

Thu Dec 24, 2015 2:49 pm
boudewijn wrote:Well more interesting would be what Krita reported in the statusbar; the OS memory usage reports are notoriously confusing. Windows can very well report that your working set stays really big, while actual physical ram is released for use by other processes.


Please note, that column field is "Working set size", which is real physical RAM usage (virtual memory is here too, but this is not what bother me).

Still, consuption of 17 GB of memory when actually only 1.5 is needed for image - is suspicious.

And Windows gives warning "low memory, please close krita.exe", so even this is "pooling" of memory manager - something went wrong with this.

OK, next time I take a note of internal status bar of Krita RAM report.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Memory consuption

Thu Dec 24, 2015 3:57 pm
It isn't suspicious. Krita stores other things besides the amount of ram it requires to have your file in memory. Undo states, for example, or caching for animation. It's why we have that performance tab. Indeed, make sure to show what Krita itself reports, and check the performance tab.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Re: Memory consuption

Sat Jan 02, 2016 9:02 pm
Same thing happens today, Krita allocate huge amount of memory. Some applications crashes, some can't start, I can't even take screenshot with PrintScreen (so I have used photo).
Screenshot - http://dobrokot.ru/pics/i2016-01-02__23-59-51_319kb.jpg

Krita is using 22 Gb of RAM, but you can see on screenshot that settings allows no more than 16 Gb memory usage (and anyway, there is nothing it can spend these 16gb when everything is closed, and even opened images were not large enough to take even 1 GB).

I can't find where Krita reports memory usage. Well, Krita reports about 400 bytes memory used by last opened document, but I had closed all documents.

> Undo states, for example, or caching for animation
Which undo states and animation? I had CLOSED ALL documents.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Re: Memory consuption

Wed Jan 27, 2016 7:16 am
Nailed the memory leak, I think!

When I copy (Ctrl+C) large image in other program (mspaint.exe, for example), Krita in background takes more memory. Also I have clipboard watcher program (clcl.exe , http://www.nakka.com/soft/clcl/index_eng.html ) , when it is running Krita takes more memory (1 GB per every copy action). But even without this program memory grows at every Ctrl+C

Version - 2.9.10, Windows7.

Also memory grows when I press Ctrl+N in Krita, with "Create from clipboard" highlighted (about 50 MB), and never shrinks (dialog can be closed with Esc after Ctrl+N, actual creation is not needed for infinite memory grow).

Last edited by dobrokotov on Wed Jan 27, 2016 1:50 pm, edited 1 time in total.
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Re: Memory consuption

Wed Jan 27, 2016 7:17 am
TheraHedwig wrote:It isn't suspicious.

No, it is suspicious :)
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Memory consuption  Topic is solved

Wed Jan 27, 2016 11:10 am
Yes, that was a good catch. There was a memory leak in the clipboard handling.

Fixed in:

3.0: 2dd3e0b7a8c6d2543a1dda9039c4a49a0485a909
2.9: 8db2d4f7ddce6f38b80b40cdbb5bf022ee2671e3

But, like I asked before, could you please, please, please make _bug reports_ instead of forum posts for bugs?
User avatar
dobrokotov
Registered Member
Posts
125
Karma
0

Re: Memory consuption

Mon Feb 29, 2016 6:01 am
Thank you, new version 2.9.11 do not have this problem!
Now I can run Krita FOREVER :) (almost*)!

* except OpenGL error during canvas creation for new document


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]