LOOHP/ImageFrame

Server becomes unresposive while loading maps

Opened this issue · 10 comments

So I migrated from imageonmap to imageframe and i really like the result, but while loading the maps, the server seems to get unresponsive and displays this occasionally:
imagen
I also realised that ram usage is generally high even with low player count, perhaps all images are loaded to memory?

LOOHP commented

Are there any more of those errors? If so can you post them too?

Nope, thats the only error that is shown.

LOOHP commented

Nothing in the stacktrace links to ImageFrame. Are you sure ImageFrame is the sole cause of this problem?

I think it could be something related with imageframe, because it started happening when i switched from imageonmap to imageframe. It also appears to be happening between loading the last map and the message of completion. The server hangs for at least 3 minutes after loading the last map and that is when the error pops up.

LOOHP commented

The error seems to be related to the world saving to file but not the loading of maps. Have you tried disabling ImageFrame to see if this still happens?

Just tried and it doesn't happen without imageframe, also noticed that ram usage without imageframe is 2 gb and with imageframe is 5 gb.

LOOHP commented

The RAM increase could be explained by the fact that the pixels need to be loaded into memory. However, it shouldn't stop the world from saving. I am running IF on my showcase server and it had never hung because of IF. How many frames do you have imported on your server?

i have aproximately 800 frames

LOOHP commented

800 frames as in 800 images imported or images making up 800 item frames?

800 images imported.