EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
983 stars 186 forks source link

Error: Couldn't create [size] image [3DS] #2184

Open minusplus opened 4 years ago

minusplus commented 4 years ago

Name of the game:

Most

Player platform:

3DS

Attach files (as a .zip archive or link them)

easyrpg_log.txt

Describe the issue in detail and how to reproduce it:

Play a game for a while and eventually it will crash with the above error message. Loading a recent save will usually allow you to progress, unless there is a long period leading up to the error where you are unable to save, such as a cutscene.

carstene1ns commented 4 years ago

Duplicate of #1097.

minusplus commented 4 years ago

This is not a duplicate of that issue. That one describes long load times and an eventual failure to load in specific games. This issue describes a crash that happens in most games only after the game has been running for a while.

carstene1ns commented 4 years ago

Root cause is running out of memory.

minusplus commented 4 years ago

No it isn't. Root cause in the other issue is not enough memory to load the game. Root cause in this issue is not freeing up values in memory that are no longer needed, as indicated by being able to load a recent save and continue playing past the failure point.

carstene1ns commented 4 years ago

Then it is a duplicate of #1135, which we track inside #1097.

Ghabry commented 4 years ago

Could you upload Save04.lsd?

issue is not freeing up values in memory that are no longer needed, as indicated by being able to load a recent save and continue playing past the failure point.

We are not aware of memory leaks in the picture code. The problem you encounter is likely: We have a asset cache which keeps even unused assets in memory. Many games recycle assets quickly so you avoid lots of SD card reads and lag this way. The cache is only freed when:

minusplus commented 4 years ago

Save04 isn't useful, but I'll attach it. I'm including Save05.lsd and another log as well.

erpg.zip

If you load Save05 and go south, it will trigger a cutscene. I have consistently had it crash either before you have full control of your character again or shortly thereafter. Sometimes, during the battle, it throws up "Error allocating PNG pixel buffer" and fails to load animation frames, but continues playing. Sometimes it crashes with "Couldn't create [size] image" when loading a battle animation. Sometimes you get through the battle and another long cutscene and it crashes when you go south past the save point with "Couldn't create [size] image"

Save04 was made at that last save point. If you load Save04 you can continue past the teleport to the south without a crash. I don't know what happens after that point.

EDIT: This is on launch 3DS if that makes a difference. It has half the system memory of the New 3DS