setupDecompWorkspace refuses to succeed

#################################################
         ForgeGradle 2.1-SNAPSHOT-unknown        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
Found AccessTransformer: common_at.cfg
Found AccessTransformer: common_at.cfg
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':decompileMc'.
> GC overhead limit exceeded

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6 mins 13.364 secs

Anyone tell me how to fix that? AS always they will get free cookies or cake depending on their choice :slight_smile:

I guess you don’t have enough ram memory available to complete decompileMc. Can I ask what your trying to do with forgegradle (I am going for the :cookie:) ?

Add the following line to ~/.gradle/gradle.properties: org.gradle.jvmargs=-Xmx3G

1 Like

:cookie:s and :cake:s for both of you @thomas15v and @Feeliiix.

However have another issue :confused:

:makeStart FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':makeStart'.
> java.io.FileNotFoundException: /home/hunar/Desktop/SpongeForge/build/tmp/makeStart/extracted/GradleStart.java (Permission denied)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

ForgeGradle needs to generate and compile the Start classes what allows your IDE to run forge. But as it looks like the permissions on /home/hunar/Desktop/SpongeForge/build/tmp/makeStart/extracted/ are read only I guess.

Meaby offtopic and also a bit self promotion. If you are trying to get a debug environment working just for sponge you might want to try my plugin: https://forums.spongepowered.org/t/spongestart-gradle-plugin/ :blush:.

You also can try to kill your gradle process or restart your PC.

@Feeliiix killing didn’t help did that before posting that :stuck_out_tongue:

What should I do to give the perms… I am fairly new to linux environment so help is appreciated :slightly_smiling:

Can you give me the output of this?:
ls -l /home/hunar/Desktop/SpongeForge/build/tmp/makeStart/extracted/

total 12
-rw-r--r-- 1 root root 3832 Feb 13 12:44 GradleStart.java
-rw-r--r-- 1 root root  717 Feb 13 12:44 GradleStartServer.java
drwxr-xr-x 3 root root 4096 Feb 13 12:44 net

See

ok i managed to get the previous issue circumvented by running gradle as superuser. However I get this in the Minecraft Server configuration(untouched by me)

which makes me believe that the genIntelliJRuns silently failed…

Don’t run gradle as super user. Remove all of build, .gradle and ~/.gradle as super user, and do everything without root or sudo.

i tried it without first… @kenzierocks

Yes, and you had files in build that were under root. Remove them, and try again.

@kenzierocks heres a ton of cookies and cakes for you :slightly_smiling:

:cake::cake::cake::cake::cake::cake::cake::cake::cake::cake::cake::cake::cake::cake:

:cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie::cookie:

1 Like

Ive tried everything in this post and nothing seems to be working for me, i keep getting the same error by doing it while running cmd as Admin or not in Admin.

:decompileMc FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:decompileMc’.

Java heap space

You are running out of memory

Try calling Gradle like this:
GRADLE_OPTS=-Xmx2G ./gradlew --no-daemon setupDecompWorkspace