-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
zig version
0.13.0
MacOS 15.3
Tested on iTerm2 and Ghostty.
Build succeeds, opens the splash screen, then on Enter it crashes as below.
Error:
thread 9473501 panic: index out of bounds: index 316659348809645, len 10406
/Users/h/DOOM-fire-zig/src/main.zig:690:39: 0x10159e0cd in showDoomFire (DOOM-fire)
screen_buf[spread_dst - FIRE_W] = spread_px - (spread_rnd_idx & 1);
^
/Users/h/DOOM-fire-zig/src/main.zig:748:21: 0x101594d83 in main (DOOM-fire)
try showDoomFire();
^
/usr/local/Cellar/zig/0.13.0/lib/zig/std/start.zig:524:37: 0x1015949db in main (DOOM-fire)
const result = root.main() catch |err| {
^
???:?:?: 0x7ff80ae162cc in ??? (???)
Unwind information for `???:0x7ff80ae162cc` was not available, trace may be incomplete
???:?:?: 0x0 in ??? (???)
run
└─ run DOOM-fire failure
error: the following command terminated unexpectedly:
/Users/h/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/h/DOOM-fire-zig/.zig-cache/o/4266a87667ea93b0206d11aa6def2c86/build /usr/local/Cellar/zig/0.13.0/bin/zig /Users/h/DOOM-fire-zig /Users/h/DOOM-fire-zig/.zig-cache /Users/h/.cache/zig --seed 0xac79a0d1 -Z889d2205159e4c50 run