Bug 407896 - Memory indicator widget bar is showing the memory used amount wrong
Summary: Memory indicator widget bar is showing the memory used amount wrong
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-24 08:06 UTC by Tiar
Modified: 2019-09-21 15:52 UTC (History)
2 users (show)

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


Attachments
Screenshot of the widget in the inconsistent state; I have 8GB of RAM (4.65 KB, image/png)
2019-05-24 08:06 UTC, Tiar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiar 2019-05-24 08:06:06 UTC
Created attachment 120283 [details]
Screenshot of the widget in the inconsistent state; I have 8GB of RAM

SUMMARY
Looks like the widget don't take new animation frames into account when they're added.


STEPS TO REPRODUCE
1. Make a big canvas, 32bit color depth
2. On the layer make a new frame, fill it.
3. Duplicate the frame as many times as needed to see the warning sign on the widget.

OBSERVED RESULT
The bar is still blue and nearly empty (most probably shows only the first frame). There is a warning sign that swapping already started. The number on it says that image takes a lot of memory, but if you click on it, you'll see that image data is this big amount of memory, but memory used is still a small amount (most probably only the first frame).


EXPECTED RESULT
Consistent: either there is no swapping and the bar is blue, not filled, or there is swapping and the bar is red and filled.


ADDITIONAL INFORMATION
After saving the file, closing Krita and opening the file again, the bar is red and filled, as it should be with that big of a file.



SOFTWARE/OS VERSIONS
Krita

 Version: 4.2.0-beta (git e041298)
 Languages: en_US
 Hidpi: false

Qt

  Version (compiled): 5.11.3
  Version (loaded): 5.12.2

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-45-generic
  Pretty Productname: Linux Mint 19.1
  Product Type: linuxmint
  Product Version: 19.1


Hardware Information

  GPU Acceleration: auto
  Memory: 7771 Mb
  Number of Cores: 4
  Swap Location: /tmp
Comment 1 Dmitry Kazakov 2019-05-24 08:57:30 UTC
But you have a swap file, and Krita also has its own swap. So the data may actually go there...

And afair, this value shows memory used without taking sparse tiles into account. So it is more like estimation.
Comment 2 wolthera 2019-09-21 15:52:53 UTC
If two developers agree something is a bug, the bug is confirmed.