Hit a panic: integer overflow running on Apple M1 Pro (zig 0.13.0) ```sh thread 29789858 panic: integer overflow /Users/quigon/sandbox/DOOM-fire-zig/src/main.zig:534:31: 0x10232103f in paintBuf (DOOM-fire) bs_sz_avg = bs_sz_avg * (bs_frame_tic - 1) / bs_frame_tic + bs_len / bs_frame_tic; ^ /Users/quigon/sandbox/DOOM-fire-zig/src/main.zig:677:17: 0x1022fb4a3 in showDoomFire (DOOM-fire) paintBuf(); ^ /Users/quigon/sandbox/DOOM-fire-zig/src/main.zig:695:17: 0x1022f8d3b in main (DOOM-fire) showDoomFire(); ^ /opt/homebrew/Cellar/zig/0.13.0/lib/zig/std/start.zig:524:37: 0x1022f89d3 in main (DOOM-fire) const result = root.main() catch |err| { ^ ???:?:?: 0x19476b153 in ??? (???) ???:?:?: 0xf65affffffffffff in ??? (???) run └─ run DOOM-fire failure error: the following command terminated unexpectedly: /Users/quigon/sandbox/DOOM-fire-zig/zig-out/bin/DOOM-fire Build Summary: 3/5 steps succeeded; 1 failed (disable with --summary none) run transitive failure └─ run DOOM-fire failure error: the following build command failed with exit code 1: /Users/quigon/sandbox/DOOM-fire-zig/.zig-cache/o/67782a5dc412ad16b42c77c1fa5bc802/build /opt/homebrew/Cellar/zig/0.13.0/bin/zig /Users/quigon/sandbox/DOOM-fire-zig /Users/quigon/sandbox/DOOM-fire-zig/.zig-cache /Users/quigon/.config/cache/zig --seed 0x59836f02 -Zc60d731a387bf85b run ```
Activity
const-void commentedon Dec 15, 2024
A fix for large displays has just been merged...could you try refreshing and seeing if the error continues?
tml-adobe commentedon Jan 1, 2025
Still crashes for me.
Display (LG UltraFine): 3840x2160 @ 60 Hz in 27"tml-adobe commentedon Jan 1, 2025
This, however, seems to fix it:
const-void commentedon Jan 1, 2025
nice patch!
const-void commentedon Jan 1, 2025
@rhettjay - hopefully this does the trick! Please close this issue if this fixes your problem!
rhettjay commentedon Jan 7, 2025
Sorry the delay and missing the earlier request for trying. That seems to have fixed that issue. Thank you!