-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extremely high suspended procs force proc array reallocation #87
Comments
Seems to be a wider issue with random invalid proc references, only on some procs. |
poking @Absolucy for this since primary maintainer of 515 support |
It's being |
Got a working (albeit poorly made) patch to proc.rs that fixes the issue. Other possible solution is hooking the proc that BYOND reallocates the proc entry array on and only checking for reallocation then, but that requires maintaining another signature. Patch
|
do we know why a reallocation is happening? |
it seems that the best solution would be to store the index in to the array inside our Proc type instead of the pointer |
good solution, except you have the overhead of grabbing with get_proc_array_entry every time. it might be faster to actually store the proc array and do pointer arithmetic to get the proc entry instead of calling into it in that case
no idea, random byond code that I didn't look into a whole lott |
goon probably has this issue due to the massive amount of spawns we use |
platform: windows
byond ver: 515.1633
hello, I am experiencing periodic crashes while debugging (both breakpoints/runtime errors)
i decided to spend some time debugging; the crash is apparently caused by
get_line_number
.more specifically, the
get_misc_by_id
call caused byproc.bytecode()
.get_misc_by_id
is called with an ID of 0x007F7A5C by auxtools; after checking, this byondcore function checks it against what seems to be a maximum, which at that time was 0x0001665F; an infinitely more reasonable value.i can't consistently repro, but I was just debugging runtime errors on that specific byond version for https://github.com/Foundation-19/Foundation-19 when I experienced this issue
crash point; https://github.com/willox/auxtools/blob/master/debug_server/src/server.rs#L210
caused by; https://github.com/willox/auxtools/blob/master/auxtools/src/raw_types/misc.rs#L152
The text was updated successfully, but these errors were encountered: