Creating a buffer of 1022*1024 bytes causes a crash
complete
Frionil Fang
I think it crashes the region shortly after "succeeding".
b = buffer.create(1024*1022)
ll.Say(0, `created, size = {buffer.len(b)}`)
will report a buffer of 1046528 bytes being created, and shortly after nothing goes through anymore and the region drops me. 1023*1024 bytes is too much and gets an out of memory error.
Log In
H
Harold Linden
complete
Thanks! The crashes should be fixed, we'll look into the potential memory limit non-determinism separately.
H
Harold Linden
Is this still an issue under recent versions? Running afoul of the memory limits in a single script shouldn't be able to crash the region anymore, but it _may_ still get your script wedged in a way that you have to recompile to get it to run again, we're working on that bit.
Frionil Fang
Harold Linden
I made some scripts that allocate over-large buffers or generate uuids into a table until memory runs out and the region didn't act up, the very least. The uuid-table thing still caused some unpredictable memory behavior (at first I was able to generate X amount of keys, on subsequent resets they'd run out of memory for the same amount), but at least stable.
H
Harold Linden
inĀ progress
Signal Linden
planned
Reproduces, thanks for the report. Full memory limits are still WIP.