Crashes by decoding
I was trying to decompile following file:
grfcodec.exe -d pb_trains_10CC.grf
Grfcodec version is 'trunk-r983'.
Following error occurred:
Found grf container version 2
terminate called after throwing an instance of 'std::bad_alloc'
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
#1 Updated by Rubidium almost 4 years ago
The looks like a memory allocation issue where not enough contiguous space could be found to allocate memory for a larger buffer for PNG sprites. At peak the program uses about 1 GB for me, for a significant share caused by the huge sprite sheets (about 200 000 lines).
Use -h to limit the maximum size of the sprite sheets.