sporchia / alttp_vt_randomizer

ALttP VT Randomizer and API
https://alttpr.com/
MIT License
315 stars 147 forks source link

out of memory error generating seeds in bulk #909

Closed okay-dude closed 1 year ago

okay-dude commented 3 years ago

I hit this error before like 1.5 years ago. Apparently it was fixed in v31.0.2 but this must be a regression. Generation fails for me around 1400 seeds in.

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 528384 bytes) in /home/server/alttp_vt_randomizer/app/Rom.php on line 3022

Symfony\Component\Debug\Exception\FatalErrorException : Allowed memory size of 536870912 bytes exhausted (tried to allocate 528384 bytes)

at /home/server/alttp_vt_randomizer/app/Rom.php:3022 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 69632 bytes) in /home/server/alttp_vt_randomizer/vendor/jakub-onderka/php-console-highlighter/src/Highlighter.php on line 113

sporchia commented 1 year ago

We are unaware of any current memory leaks, but if this persists and can be circumvented by smaller bulk batches that may be the better way to go. Currently we are doing a full engine rewrite so most of our efforts are going that way.