You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this code on stage 2 will fail with a stack overflow. Runs correctly without errors on stage 1. I was able to reproduce in with zig run example.zig (Windows).
Zig Version
0.10.0-dev.3659+e5e6eb983
Steps to Reproduce
Running this code on stage 2 will fail with a stack overflow. Runs correctly without errors on stage 1. I was able to reproduce in with
zig run example.zig
(Windows).Refactoring the while loop will allow it to run correctly:
Also changing MaxParticles to smaller number will allow stage 2 to run it:
Expected Behavior
Runs and exits without errors
Actual Behavior
Stack overflow.
Exception has occurred: W32/0xC00000FD Exception thrown at 0x00007FF7D9A185C6 in program.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000000, 0x0000001469A03760).
Stack Overflow
The text was updated successfully, but these errors were encountered: