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.
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