You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.error("First decompile failed with OutOfMemory using JVM Args: " + jvm);
846
-
LOGGER.error("Attempting again with: " + newJvm);
847
-
ret = ProcessUtils.runJar(jdk, log.getParentFile(), log, tool, newJvm, run, logHandler);
848
-
if (ret.exitCode == OUT_OF_MEMORY)
849
-
LOGGER.error("Ran out of memory again, you can specify more manually using the --decompile-memory Mavenizer argument");
842
+
if (isDecompile) {
843
+
if (ret.exitCode == NOT_ENOUGH_MEMORY) {
844
+
LOGGER.error("Failed to create JVM with Not Enough Memory issue, Modern minecraft requires atleast 4GB to decompile. Run it on a system with more ram.");
845
+
} elseif (ret.exitCode == INVALID_INITAL_HEAP) {
846
+
LOGGER.error("Attempted to run decompile with JVM args: " + jvm + " resulted in Invalid Inital and Max heap settings.");
847
+
LOGGER.error("This is typically caused by you having a environement variable setting the global memory options, remove or set those variables to values higher then 4GB.");
848
+
}
849
+
if (ret.exitCode == OUT_OF_MEMORY || ret.exitCode == INVALID_INITAL_HEAP) {
0 commit comments