MovingBlocks / FacadeApplet

A facade to the Terasology engine that wraps it to run as an applet
Apache License 2.0
4 stars 6 forks source link

Applet seems to run out of memory oddly easily on switching worlds #10

Open Cervator opened 10 years ago

Cervator commented 10 years ago

While testing I routinely hit out-of-memory errors on creating or leaving worlds. This is with a version holding all stable modules. One example:

Maybe applets have a little more memory overhead or the browser's choice of JVM can end up with a 32-bit Java? Not too worried about it but wanted to report it none the less in case somebody else can reproduce or if we get user reports to the same effect.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3345973-applet-seems-to-run-out-of-memory-oddly-easily-on-switching-worlds?utm_campaign=plugin&utm_content=tracker%2F1159548&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1159548&utm_medium=issues&utm_source=github).
immortius commented 10 years ago

We might be leaking previous worlds again, will have to check with YourKit later (basically the majority of memory should be freed after returning to menu).

On 27 July 2014 09:36, Rasmus Praestholm notifications@github.com wrote:

While testing I routinely hit out-of-memory errors on creating or leaving worlds. This is with a version holding all stable modules. One example:

  • Started Perlin world with no modules (other than Core)
  • Exited to main menu
  • Enabled all Throughout the Ages modules
  • Started TtA world
  • Crash!

Maybe applets have a little more memory overhead or the browser's choice of JVM can end up with a 32-bit Java? Not too worried about it but wanted to report it none the less in case somebody else can reproduce or if we get user reports to the same effect.

— Reply to this email directly or view it on GitHub https://github.com/MovingBlocks/FacadeApplet/issues/10.

Cervator commented 10 years ago

Good idea, I'm sure we have other things to hunt down that way too :-)

I hadn't noticed it with normal execution of the game, just tried 6-7 worlds in one go from a local source workspace, no problem. Admittedly that's from source, not binary, and not with as many modules.