nomacs crashes when rotating huge images on 32-bit Windows
|Version:||3.4.1||Operating System:||Windows 7/8/10 32bit|
- Install 32-bit Windows
- Open a huge (around 14000x14000) PNG file in nomacs
- Rotate the image
- Image is rotated
- nomacs crashes
At first i thought it just a weird bug. I've tried another free software image viewer (ImageGlass), and it crashed too! Then i ran a proprietary image viewer and tried to rotate there. That was when the real problem became apparent: the proprietary image viewer reported that it ran out of memory. Checking the process in Process Hacker showed memory usage around 900MB, so it is no inconceivable that rotating an image (which, at some point, probably requires having 2 copies of the image in the memory: the original and the rotated one) would make the process hit the memory limitations (i would have expected memory limit to be 4GB, but some APIs could limited to 2GB due to using signed values).