woelper / oculante

A fast and simple image viewer / editor for many operating systems
https://github.com/woelper/oculante
MIT License
1.01k stars 45 forks source link

Extremely large images may take hundred(s?) of gigabytes of ram #508

Open Stoppedpuma opened 4 hours ago

Stoppedpuma commented 4 hours ago

50k x 50k image managed to take 115.4 GB of ram while testing #506 last week. I'm pretty sure it just keeps growing until Oculante crashes or the system runs out of memory.

@B-LechCode Pinging you here for this in-case you have any ideas of what's causing this.

B-LechCode commented 2 hours ago

50k x 50k x 4 x 1 byte = 10 GB RAM per image. So it shouldn't go above 50 GB: Reading image, Normal Buffer, Edit Buffer, Copying sub images and the texture itself

Which image did you use to "achieve" this?

Stoppedpuma commented 1 hour ago

The image can be downloaded here: https://puma.s-ul.eu/chOjoEaL (it may take several seconds to load in your browser)