Crash with shader that has empty new lines at end of file #2

Open
opened 2025-08-23 21:01:30 +00:00 by danielbross · 0 comments
Collaborator
Array bounds check failed. (The attempted index is 1675, but the highest valid index is 1673). Site is c:/Personal/active/modules/Ink/Lexing.jai:339.
Panic.
A breakpoint was hit, but no debugger is attached.

Printing the stack trace:
handle_exception                  C:\Personal\jai\modules\Runtime_Support_Crash_Handler.jai:356
... (skipping OS-internal procedures)
debug_break                       C:\Personal\jai\modules\Runtime_Support.jai:462
my_panic                          C:\Personal\jai\modules\Runtime_Support.jai:364
__array_bounds_check_fail         C:\Personal\jai\modules\Runtime_Support.jai:163
new_token                         c:\Personal\active\modules\Ink\Lexing.jai:339
make_token                        c:\Personal\active\modules\Ink\Lexing.jai:365
scan_next_token                   c:\Personal\active\modules\Ink\Lexing.jai:426
lex                               c:\Personal\active\modules\Ink\Lexing.jai:515
compile_file                      c:\Personal\active\modules\Ink\module.jai:494
load_shader                       c:\Personal\active\modules\Coven\shader.jai:8
main                              c:\Personal\active\oath\src\main.jai:30

The shader file was this one

``` Array bounds check failed. (The attempted index is 1675, but the highest valid index is 1673). Site is c:/Personal/active/modules/Ink/Lexing.jai:339. Panic. A breakpoint was hit, but no debugger is attached. Printing the stack trace: handle_exception C:\Personal\jai\modules\Runtime_Support_Crash_Handler.jai:356 ... (skipping OS-internal procedures) debug_break C:\Personal\jai\modules\Runtime_Support.jai:462 my_panic C:\Personal\jai\modules\Runtime_Support.jai:364 __array_bounds_check_fail C:\Personal\jai\modules\Runtime_Support.jai:163 new_token c:\Personal\active\modules\Ink\Lexing.jai:339 make_token c:\Personal\active\modules\Ink\Lexing.jai:365 scan_next_token c:\Personal\active\modules\Ink\Lexing.jai:426 lex c:\Personal\active\modules\Ink\Lexing.jai:515 compile_file c:\Personal\active\modules\Ink\module.jai:494 load_shader c:\Personal\active\modules\Coven\shader.jai:8 main c:\Personal\active\oath\src\main.jai:30 ``` The shader file was this one
danielbross changed title from Crash with shader that has empty new lines at end to Crash with shader that has empty new lines at end of file 2025-08-23 21:02:20 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nielsbross/Ink-Shader-Language#2
No description provided.