Page 1 of 1

[0.14.21] Crash after taking large screenshot

Posted: Tue Jan 17, 2017 6:39 pm
by Bilka
My game crashed after taking a 7200 x 12800 (zoom level 0.2) screenshot, followed by a 3000 x 5000 (zoom level 0.2) screenshot.

After I took the first screenshot and the game unfreezed, the screenshot was not saved in the script-output folder so I tried again, that time with lower resolution. Immediately after the game unfreezed and the console message appeared in blue, the game crashed. Then the first screenshot was actually saved in the script-output folder.

Re: [0.14.21] Crash after taking large screenshot

Posted: Tue Jan 17, 2017 7:05 pm
by daniel34
http://lua-api.factorio.com/latest/LuaG ... screenshot
resolution :: Position (optional): Maximum allowed resolution is 16384x16384 (resp. 8196x8196 when anti_alias is true), but maximum recommended resolution is 4096x4096 (resp. 2048x2048).
The maximum possible resolution depends on the amount of video memory your card has, with 2GB (dedicated) VRAM it is around 8192x8192. If you want to take larger screenshots you should take smaller screenshots of various parts instead and stitch them together manually.

It shouldn't crash when taking a smaller screenshot after the bigger one failed though, unless taking the first screenshot already corrupted some RAM/VRAM. The top left portion of your screenshot looks like it has been corrupted.

Re: [0.14.21] Crash after taking large screenshot

Posted: Tue Jan 17, 2017 7:11 pm
by Bilka
The top left corner of the screenshot is actually unexplored terrain, which would explain why it is black. I took the big screenshot on mistake, actually. Yes, the game froze, but it also unfroze and worked normally until I took the second screenshot.