![]() Registered Member ![]()
|
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. |
![]() KDE Developer ![]()
|
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.
|
![]() KDE Developer ![]()
|
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.
|
![]() Registered Member ![]()
|
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. |
![]() KDE Developer ![]()
|
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.
|
![]() Registered Member ![]()
|
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. |
![]() Registered Member ![]()
|
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.
|
![]() Registered Member ![]()
|
No, it is suspicious ![]() |
![]() KDE Developer ![]()
|
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? |
![]() Registered Member ![]()
|
Thank you, new version 2.9.11 do not have this problem!
Now I can run Krita FOREVER ![]() * except OpenGL error during canvas creation for new document |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]