poly-flif icon indicating copy to clipboard operation
poly-flif copied to clipboard

Maximum Image Size

Open ibrokemypie opened this issue 8 years ago • 2 comments

Using the latest release with one 7.9MB and one 2.8MB flif, neither render and this is output to the console.

Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 33554432, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 flif-stillonly.js:44:383

ibrokemypie avatar Aug 16 '17 00:08 ibrokemypie

Did you try those suggestions in the makefile? 32MB was sufficient for even the large images I was testing with, but we can probably bump it up further.

hrj avatar Aug 16 '17 05:08 hrj

Please update the title with at least including "Cannot enlarge memory arrays", thanks!

grinapo avatar May 02 '18 07:05 grinapo