mojira.dev
MC-213340

Cannot save screenshot: divided by zero

I was unable to take a screenshot and got this error in the chat logs.

[13:11:20] [IO-Worker-219/WARN]: Couldn't save screenshot
java.lang.ArithmeticException: / by zero
    at det.a(NativeImage.java:478) ~[det.class:?]
    at det.a(NativeImage.java:443) ~[det.class:?]
    at det.a(NativeImage.java:405) ~[det.class:?]
    at dkh.lambda$saveScreenshotRaw$2(ScreenShotHelper.java:140) [dkh.class:?]
    at dkh$$Lambda$5605/1255066787.run(Unknown Source) [dkh.class:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
[13:11:20] [main/INFO]: [CHAT] Couldn't save screenshot: / by zero

This issue did not fix itself after restarting Minecraft or rebooting my computer.

 

Linked issues

Comments 2

I have the exact same problem, with lightly modded 1.16.4 minecraft. (9 mods)
I think the game might be calculating the pixels very detailed because of antialiasing to the point that it cant display 

Yeah, seems to be a problem with OptiFine's antialiasing option. I'm going to make a bug report on OptiFine's bug report GitHub instead.

Noah Graham

(Unassigned)

Unconfirmed

(Unassigned)

screenshot

1.16.5

Retrieved