ImageFrame icon indicating copy to clipboard operation
ImageFrame copied to clipboard

Server becomes unresposive while loading maps

Open AleFunky opened this issue 2 years ago • 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?

AleFunky avatar Jun 29 '23 17:06 AleFunky

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

LOOHP avatar Jun 29 '23 18:06 LOOHP

Nope, thats the only error that is shown.

AleFunky avatar Jun 30 '23 09:06 AleFunky

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

LOOHP avatar Jun 30 '23 15:06 LOOHP

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.

AleFunky avatar Jun 30 '23 17:06 AleFunky

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?

LOOHP avatar Jun 30 '23 19:06 LOOHP

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.

AleFunky avatar Jul 01 '23 07:07 AleFunky

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?

LOOHP avatar Jul 02 '23 14:07 LOOHP

i have aproximately 800 frames

AleFunky avatar Jul 02 '23 17:07 AleFunky

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

LOOHP avatar Jul 02 '23 17:07 LOOHP

800 images imported.

AleFunky avatar Jul 03 '23 08:07 AleFunky