Topic category: Troubleshooting, bugs, and solutions
my MCreator isn't working here is the log
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [version 10.0.14393]
(c) 2016 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator170>cd forge
C:\Pylo\MCreator170\forge>SET "JAVA_HOME=C:\Pylo\MCreator170\jdk64\"
C:\Pylo\MCreator170\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator170\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator170\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" cleanCache clean setupDecompWorkspace --refresh-dependencies
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.7/userguide/gradle_daemon.html.
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.7/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Picked up _JAVA_OPTIONS: -Xmx512M
C:\Pylo\MCreator170\forge>
Task completed with return code 0 in 908 milliseconds
So, same problem, different values.
--
Execution failed for task ':decompileMc'.
> Java heap space
--
Its the Java heap space still. Your Java global enviroment settings are being picked up as follows
--
Picked up _JAVA_OPTIONS: -Xmx900M
--
While your forge gradle within mCreator has these settings:
--
C:\Pylo\MCreator170\forge>gradlew -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m"
--
So, since your first log your java Xmx option somehow went from 512m to 900m, so Im gonna guess you found it lol. However, your mCreator gradle is trying to expand memory to 2048m, a value that your global enviroment settings don't allow with its cap set at 900m.
@#6 So um 3000m should be enough ?
@#6.1 Try 2048m ;P unless you've got a lot of ram to play with.
@#6 Its Working WOOOOOO thx ! ArcaneMortis
@#6.2 Alright! Anytime I can help, I try! This was a bit of a learning process for both of us ;) Now I too know what to do if I ever encounter a similar problem! Would you mind editing your OP title to "Java/Gradle Memory heap error:SOLVED" so others can find this thread if encountering the same problem? Keep on moddin'!
I know this is an older topic, but if someone stumbles upon this problem
a possible solution for this problem is described here: https://mcreator.net/wiki/gradle-setup-errors#wiki-index-14