java jvm ran out of ram (64 bit)

Started by FiRe JaAy on Sun, 12/27/2020 - 22:16

Topic category: Bugs and solutions

Last seen on 22:33, 27. Dec 2020
Joined May 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
java jvm ran out of ram (64 bit)
Sun, 12/27/2020 - 22:16

heres a link to the screenshot: https://prnt.sc/wb2ddo

this is on the spigot generator it works fine for forge

 

Executing 
    Gradle task: dependencies buildLatestSpigot --refresh-dependencies

Build 
    info: MCreator 2020.5.47520, spigot-1.16.4, 64-bit, 32695 MB, Windows 10, 
    JVM 1.8.0_265, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk


    Task :dependencies

------------------------------------------------------------

Root 
    project

------------------------------------------------------------

annotationProcessor 
    - Annotation processors and their dependencies for source set 'main'.

No 
    dependencies

apiElements 
    - API elements for main. (n)

No 
    dependencies

archives 
    - Configuration for archive artifacts.

No 
    dependencies

compileClasspath 
    - Compile classpath for source set 'main'.

\--- 
    org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT

 
        +--- commons-lang:commons-lang:2.6

 
        +--- com.google.guava:guava:21.0

 
        +--- com.google.code.gson:gson:2.8.0

 
        +--- net.md-5:bungeecord-chat:1.16-R0.3

 
        |    +--- com.google.code.gson:gson:2.8.0

 
        |    \--- com.google.guava:guava:21.0

 
        \--- org.yaml:snakeyaml:1.26

compileOnly 
    - Compile only dependencies for source set 'main'. (n)

\--- 
    org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT (n)

default 
    - Configuration for default artifacts.

No 
    dependencies

implementation 
    - Implementation only dependencies for source set 'main'. (n)

No 
    dependencies

runtimeClasspath 
    - Runtime classpath of source set 'main'.

No 
    dependencies

runtimeElements 
    - Elements of runtime for main. (n)

No 
    dependencies

runtimeOnly 
    - Runtime only dependencies for source set 'main'. (n)

No 
    dependencies

testAnnotationProcessor 
    - Annotation processors and their dependencies for source set 'test'.

No 
    dependencies

testCompileClasspath 
    - Compile classpath for source set 'test'.

No 
    dependencies

testCompileOnly 
    - Compile only dependencies for source set 'test'. (n)

No 
    dependencies

testImplementation 
    - Implementation only dependencies for source set 'test'. (n)

No 
    dependencies

testRuntimeClasspath 
    - Runtime classpath of source set 'test'.

No 
    dependencies

testRuntimeOnly 
    - Runtime only dependencies for source set 'test'. (n)

No 
    dependencies

(*) 
    - dependencies omitted (listed previously)

(n) 
    - Not resolved (configuration is not meant to be resolved)


    web-based, searchable dependency report is available by adding the --scan 
    option.


    Task :buildLatestSpigot

Download 
    https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/art…

Loading 
    BuildTools version: git-BuildTools-7fe9375-122 (#122)

Java 
    Version: Java 8

Current 
    Path: D:\Plugins\build\btmp\.

*** 
    Using downloaded git PortableGit-2.24.1.2-64-bit\PortableGit ***

*** 
    Please note that this is a beta feature, so if it does not work please 
    also try a manual install of git from https://git-for-windows.github.io/ 
    ***

git 
    version 2.24.1.windows.2

JaAy-DEV

71148323+JaAy-DEV@users.noreply.github.com

Attempting 
    to build version: '1.16.4' use --rev <version> to override

Found 
    version

{

 
      "name": "2973",

 
      "description": "Jenkins build 2973",

 
      "refs": {

 
         "BuildData": "501ea060743c7bba4436878207e4f1232298efce",

 
         "Bukkit": "f4a9ed36c2d9276713078ea0ae92e47e23a2f828",

 
         "CraftBukkit": "72c5e7477a09856c6759bc33b5667a7ff9b926cb",

 
         "Spigot": "628435a80b4e69e07735824489f15c9689a411d7"

 
      },

 
      "toolsVersion": 105,

 
      "javaVersions": [52, 59]

}

Pulling 
    updates for D:\Plugins\build\btmp\BuildData\.git

Successfully 
    fetched updates!

Checked 
    out: 501ea060743c7bba4436878207e4f1232298efce

Pulling 
    updates for D:\Plugins\build\btmp\Bukkit\.git

Successfully 
    fetched updates!

Checked 
    out: f4a9ed36c2d9276713078ea0ae92e47e23a2f828

Pulling 
    updates for D:\Plugins\build\btmp\CraftBukkit\.git

Successfully 
    fetched updates!

Checked 
    out: 72c5e7477a09856c6759bc33b5667a7ff9b926cb

Pulling 
    updates for D:\Plugins\build\btmp\Spigot\.git

Successfully 
    fetched updates!

Checked 
    out: 628435a80b4e69e07735824489f15c9689a411d7

Attempting 
    to build Minecraft with details: VersionInfo(minecraftVersion=1.16.4, 
    accessTransforms=bukkit-1.16.4.at, classMappings=bukkit-1.16.4-cl.csrg, 
    memberMappings=bukkit-1.16.4-members.csrg, packageMappings=package.srg, 
    minecraftHash=c43dc4c1bda4f485428fc60d5b998270, classMapCommand=java -jar 
    BuildData/bin/SpecialSource-2.jar map --only . --only net/minecraft 
    --auto-lvt BASIC --auto-member SYNTHETIC -e 
    BuildData/mappings/bukkit-1.16.4.exclude -i {0} -m {1} -o {2}, 
    memberMapCommand=java -jar BuildData/bin/SpecialSource-2.jar map --only . 
    --only net/minecraft --auto-member LOGGER --auto-member TOKENS -i {0} -m 
    {1} -o {2}, finalMapCommand=java -jar BuildData/bin/SpecialSource.jar 
    --only . --only net/minecraft -i {0} --access-transformer {1} -m {2} -o 
    {3}, decompileCommand=java -jar BuildData/bin/fernflower.jar -dgs=1 -hdc=0 
    -asc=1 -udv=0 -rsy=1 -aoa=1 {0} {1}, 
    serverUrl=https://launcher.mojang.com/v1/objects/35139deedbd5182953cf1caa23835da5…;
    toolsVersion=105)

Found 
    good Minecraft hash (c43dc4c1bda4f485428fc60d5b998270)

Final 
    mapped jar: work\mapped.13da6e65.jar does not exist, creating (please 
    wait)!

Picked 
    up _JAVA_OPTIONS: -Djdk.net.URLClassPath.disableClassPathURLCheck=true

Exception 
    in thread "main" java.lang.OutOfMemoryError: Java heap space

 
      at org.objectweb.asm.tree.ClassNode.visitMethod(
ClassNode.java:299
 
      at org.objectweb.asm.tree.ClassNode.visitMethod(ClassNode.java:299)

 
      at org.objectweb.asm.ClassReader.readMethod(
ClassReader.java:1327
 
      at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1327)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:718
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:718)

 
      at org.objectweb.asm.ClassReader.accept(
ClassReader.java:401
 
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:401)

 
      at net.md_5.ss.repo.JarRepo.getClass0(
JarRepo.java:38
 
      at net.md_5.ss.repo.JarRepo.getClass0(JarRepo.java:38)

 
      at net.md_5.ss.repo.ClassRepo.getClass(
ClassRepo.java:22
 
      at net.md_5.ss.repo.ClassRepo.getClass(ClassRepo.java:22)

 
      at net.md_5.ss.repo.JarRepo$1.computeNext(
JarRepo.java:69
 
      at net.md_5.ss.repo.JarRepo$1.computeNext(JarRepo.java:69)

 
      at net.md_5.ss.repo.JarRepo$1.computeNext(
JarRepo.java:53
 
      at net.md_5.ss.repo.JarRepo$1.computeNext(JarRepo.java:53)

 
      at com.google.common.collect.AbstractIterator.tryToComputeNext(
AbstractIterator.java:145
 
      at 
    com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:145)

 
      at com.google.common.collect.AbstractIterator.hasNext(
AbstractIterator.java:140
 
      at 
    com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:140)

 
      at com.google.common.collect.MultitransformedIterator.hasNext(
MultitransformedIterator.java:47
 
      at 
    com.google.common.collect.MultitransformedIterator.hasNext(MultitransformedIterator.java:47)

 
      at net.md_5.ss.SpecialSource.map(
SpecialSource.java:123
 
      at net.md_5.ss.SpecialSource.map(SpecialSource.java:123)

 
      at net.md_5.ss.SpecialSource.main(
SpecialSource.java:49
 
      at net.md_5.ss.SpecialSource.main(SpecialSource.java:49)

Exception 
    in thread "main" java.lang.RuntimeException: Error running command, return 
    status !=0: [cmd.exe, /D, /C, java, -jar, 
    BuildData/bin/SpecialSource-2.jar, map, --only, ., --only, net/minecraft, 
    --auto-lvt, BASIC, --auto-member, SYNTHETIC, -e, 
    BuildData/mappings/bukkit-1.16.4.exclude, -i, 
    work\minecraft_server.1.16.4.jar, -m, 
    BuildData/mappings/bukkit-1.16.4-cl.csrg, -o, work\mapped.13da6e65.jar-cl]

 
      at org.spigotmc.builder.Builder.runProcess0(
Builder.java:819
 
      at org.spigotmc.builder.Builder.runProcess0(Builder.java:819)

 
      at org.spigotmc.builder.Builder.runProcess(
Builder.java:756
 
      at org.spigotmc.builder.Builder.runProcess(Builder.java:756)

 
      at org.spigotmc.builder.Builder.main(
Builder.java:439
 
      at org.spigotmc.builder.Builder.main(Builder.java:439)

 
      at org.spigotmc.builder.Bootstrap.main(
Bootstrap.java:34
 
      at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:34)


    Task :buildLatestSpigot FAILED

FAILURE: 
    Build failed with an exception.


    Where:

Build 
    file 'D:\Plugins\build.gradle' line: 28


    What went wrong:

Execution 
    failed for task ':buildLatestSpigot'.


    Process 'command 'C:\Program Files\Pylo\MCreator\jdk\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. Run with --scan to get full 
    insights.


    Get more help at https://help.gradle.org

BUILD 
    FAILED in 55s


    actionable tasks: 2 executed

BUILD 
    FAILED

Task 
    completed in 70345 milliseconds

This is spigot plugin so…
Mon, 12/28/2020 - 09:22
  1. This is spigot plugin so report the bug to the plugin authors
  2. Read https://mcreator.net/wiki/general-publishing-guidelines, please, and avoid posting logs this way as we really do not welcome such log formats.
I know this is an older…
Sun, 01/17/2021 - 12:57

I know this is an older topic, but if someone stumbles upon this problem

Error occurred during initialization of VM:

Picked up _JAVA_OPTIONS

a possible solution for this problem is described here: https://mcreator.net/wiki/gradle-setup-errors#wiki-index-14