

Note: If Stencyl fails to launch after you make an edit, your number is too high. (If your Mac complains that the app is "damaged", go to System Preferences > Security and Privacy and allow apps to be downloaded from Anywhere.) Search for -Xmx1536m and change the number to something higher such as 3072 (which would be 3 GB). Using a text editor, open up Contents/MacOS/Stencyl. Right-click the Stencyl.app bundle and pick Show Package Contents.
#Stencyl out of memory how to#
See this tutorial for how to delete the variable. Note 2:Note: The -Xmx setting in the script may be overridden by the _JAVA_OPTIONS environment variable. Note 1: If Stencyl fails to launch, choose a script with a lower amount of memory. Double-click the script to launch Stencyl from now on.

If you have 4 GB, choose the 2 or 3 GB option.) (For best results, go lower than what you have - e.g. Install the 64-bit version (圆4) of Java 8 to your computer.ĭownload one of the following scripts and place it into your Stencyl installation directory. You could have 128 GB of RAM and still hit this since Java's upper cap sits around 4 GB and on some systems, may be as low as 2 GB. This guide explains how you can raise the limit.Ĭommon Misconception: The 90% memory warning has nothing to do with how much RAM your computer has.

So why not just set the limit very high? It causes machines with less memory to fail to launch Stencyl at all.Īlthough we are working to reduce memory usage and plug leaks, there are large games for which having the higher memory usage is useful. If you exceed this limit, Stencyl locks up. The Java runtime reserves a chunk of memory for Stencyl to use before launching - it can't be raised after the fact. By Jon (Updated on ) Why does this happen?
