Gradle task failed!

Started by Davves on Thu, 04/27/2017 - 14:54

Topic category: Bugs and solutions

Last seen on 19:55, 23. May 2017
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Gradle task failed!
Thu, 04/27/2017 - 14:54

I havent been using MCreator for a while now and it said that i should download the newest version of the program and i did. Then it said Gradle task failed! I reinstalled it like 100 times.

Heres the error log:

   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Med ensamr„tt.
C:\Pylo\MCreator175765>cd forge
C:\Pylo\MCreator175765\forge>SET "JAVA_HOME=C:\Pylo\MCreator175765\jdk32\"
C:\Pylo\MCreator175765\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator175765\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator175765\forge>gradlew -Dorg.gradle.jvmargs="-Xms512m -Xmx1024m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-7f5a769        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:cleanCache
:clean UP-TO-DATE
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData
:extractMcpMappings
:genSrgs
:downloadClient
:downloadServer
:splitServerJar
:mergeJars
:deobfMcSRG
Applying SpecialSource...
Applying Exceptor...
:decompileMc
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
:decompileMc FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
* WhatExecution failed for task ':decompileMc'.
 went wrong:
Total time: 1 mins 17.642 secs
> Process 'command 'C:\Pylo\MCreator175765\jdk32\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Pylo\MCreator175765\forge>
Task completed with return code 0 in 78072 milliseconds
   
Executing gradle command: cleanCache clean setupDecompWorkspace --refresh-dependencies
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. Med ensamr„tt.
C:\Pylo\MCreator175765>cd forge
C:\Pylo\MCreator175765\forge>SET "JAVA_HOME=C:\Pylo\MCreator175765\jdk32\"
C:\Pylo\MCreator175765\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator175765\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator175765\forge>gradlew -Dorg.gradle.jvmargs="-Xms512m -Xmx1024m" cleanCache clean setupDecompWorkspace --refresh-dependencies 
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-7f5a769        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:cleanCache
:clean UP-TO-DATE
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData
:extractMcpMappings
:genSrgs
:downloadClient
:downloadServer
:splitServerJar
:mergeJars
:deobfMcSRG
Applying SpecialSource...
Applying Exceptor...
:decompileMc
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
:decompileMc FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
* WhatExecution faiTotal time: 1 mins 18.34 secs
led for task ':decompileMc'.
 went wrong:
> Process 'command 'C:\Pylo\MCreator175765\jdk32\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Pylo\MCreator175765\forge>
Task completed with return code 0 in 78797 milliseconds

Last seen on 08:40, 25. Mar 2018
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Your issue is memory limits,
Thu, 04/27/2017 - 15:35

Your issue is memory limits, I'm thinking.

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

You need to adjust MCreator's -Xmx1024m argument to specify more RAM. You can also do this through the Java control panel globally I believe.

Last seen on 19:55, 23. May 2017
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:Your issue is memory limits,
Thu, 04/27/2017 - 18:52

@#1 How do you do that?

 

 

Last seen on 08:40, 25. Mar 2018
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There are a couple of ways to
Thu, 04/27/2017 - 19:55

There are a couple of ways to do it. But first, I'm curious. Are you running 32-bit or 64-bit Windows 10? Also, are you you running 32-bit or 64-bit Java? How much RAM is in your machine?

Last seen on 19:55, 23. May 2017
Joined Apr 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
64, win 10, 64 and 16 RAM
Thu, 05/04/2017 - 15:38

64, win 10, 64 and 16 RAM