microsoft / malmo

Project Malmo is a platform for Artificial Intelligence experimentation and research built on top of Minecraft. We aim to inspire a new generation of research into challenging new problems presented by this unique environment. --- For installation instructions, scroll down to *Getting Started* below, or visit the project page for more information:
https://www.microsoft.com/en-us/research/project/project-malmo/
MIT License
4.08k stars 600 forks source link

Client (0.34.0) freezes (the machine?) mid way on running launchclient #710

Closed okkhoy closed 6 years ago

okkhoy commented 6 years ago

After following the setup steps for Linux (fresh install of Ubuntu 16.04, 64 bit, python 2.7), I tried to launch the client.

However, client freezes after showing up Minecraft window. It brings the entire workstation on its knees! I have to kill the process from the terminal. I am not sure if the following log helps.

$ ./launchClient.sh 
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-9bc34b4        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
: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 SKIPPED
:fixMcSources SKIPPED
:applySourcePatches SKIPPED
:remapMcSources SKIPPED
:recompileMc SKIPPED
:extractNatives SKIPPED
:getAssetIndex UP-TO-DATE
:getAssets
:makeStart SKIPPED
:setupDecompWorkspace

BUILD SUCCESSFUL

Total time: 12.586 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-9bc34b4        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:copyModToClient
:copyModToServer
:deleteSchemas
:copySchemas
:jaxb UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources UP-TO-DATE
:classes
:jar UP-TO-DATE
:sourceTestJava UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:getVersionJson
:extractUserdev UP-TO-DATE
:genSrgs SKIPPED
:reobfJar
:assemble
:check UP-TO-DATE
:build

BUILD SUCCESSFUL

Total time: 6.328 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html
This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-9bc34b4        
  https://github.com/MinecraftForge/ForgeGradle  
#################################################
               Powered by MCP unknown               
             http://modcoderpack.com             
         by: Searge, ProfMobius, Fesh0r,         
         R4wk, ZeuX, IngisKahn, bspkrs           
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:copyModToClient
:copyModToServer
:deleteSchemas
:copySchemas
:jaxb UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources UP-TO-DATE
:classes
:jar
:getVersionJson
:extractNatives SKIPPED
:extractUserdev UP-TO-DATE
:getAssetIndex UP-TO-DATE
:getAssets
:makeStart SKIPPED
:runClient
[18:09:06] [main/INFO] [GradleStart]: Extra: []
[18:09:06] [main/INFO] [GradleStart]: Found and added coremod: com.microsoft.Malmo.OverclockingPlugin
[18:09:06] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /home/anarayan/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:09:06] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
[18:09:06] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_171, running on Linux:amd64:4.13.0-45-generic, installed at /usr/lib/jvm/java-8-oracle/jre
[18:09:06] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:09:06] [main/INFO] [FML]: Found a command line coremod : com.microsoft.Malmo.OverclockingPlugin
[18:09:06] [main/WARN] [FML]: The coremod com.microsoft.Malmo.OverclockingPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[18:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:09:06] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:09:06] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:09:06] [main/INFO] [GradleStart]: Injecting location in coremod com.microsoft.Malmo.OverclockingPlugin
[18:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:09:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:09:06] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:09:07] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:09:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:09:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:09:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:09:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:09:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:09:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:09:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:187]: MALMO: Found Minecraft, attempting to transform it
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:193]: MALMO: Found Minecraft.runGameLoop() method, attempting to transform it
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:208]: MALMO: Hooked into call to Minecraft.updateDisplay()
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: net.minecraft.client.entity.EntityPlayerSP
[18:09:07] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: net.minecraft.client.entity.AbstractClientPlayer
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:123]: MALMO: Found MinecraftServer, attempting to transform it
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:129]: MALMO: Found MinecraftServer.run() method, attempting to transform it
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:137]: MALMO: Transforming LDC
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:137]: MALMO: Transforming LDC
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:137]: MALMO: Transforming LDC
[18:09:07] [Client thread/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockServer:137]: MALMO: Transforming LDC
[18:09:07] [Client thread/INFO]: Setting user: Player817
[18:09:09] [Client thread/WARN]: Skipping bad option: lastServer:
[18:09:09] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:09:10] [Client thread/INFO]: [STDOUT]: MALMO: Attempting to transform MinecraftServer
[18:09:10] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager, attempting to transform it
[18:09:10] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager.bindTexture() method, attempting to transform it
[18:09:10] [Client thread/INFO]: [STDOUT]: MALMO: Hooked into call to GlStateManager.bindTexture()
[18:09:10] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 6/18/18 6:09 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
        Minecraft Version: 1.11.2
        Operating System: Linux (amd64) version 4.13.0-45-generic
        Java Version: 1.8.0_171, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 801724440 bytes (764 MB) / 1074790400 bytes (1025 MB) up to 1908932608 bytes (1820 MB)
        JVM Flags: 1 total; -Xmx2G
        IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
        FML: 
        Loaded coremods (and transformers): 
OverclockingPlugin (MalmoMod-0.34.0.jar)
  com.microsoft.Malmo.OverclockingClassTransformer
        GL info: ' Vendor: 'nouveau' Version: '3.0 Mesa 17.2.8' Renderer: 'NV124'
[18:09:10] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
[18:09:10] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[18:09:10] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:09:10] [Client thread/INFO] [FML]: Searching /home/anarayan/bin/Malmo-0.34.0/Minecraft/run/mods for mods
[18:09:11] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[18:09:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at CLIENT
[18:09:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at SERVER
[18:09:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Microsoft Malmo Mod
[18:09:11] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:11] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:11] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:09:11] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
[18:09:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:09:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:09:11] [Client thread/INFO] [FML]: Applying holder lookups
[18:09:11] [Client thread/INFO] [FML]: Holder lookups applied
[18:09:11] [Client thread/INFO] [FML]: Applying holder lookups
[18:09:12] [Client thread/INFO] [FML]: Holder lookups applied
[18:09:12] [Client thread/INFO] [FML]: Applying holder lookups
[18:09:12] [Client thread/INFO] [FML]: Holder lookups applied
[18:09:12] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:09:12] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[18:09:12] [Client thread/INFO]: [STDOUT]: Testing schemas against internal version number: 0.34
[18:09:12] [Client thread/INFO] [FML]: Applying holder lookups
[18:09:12] [Client thread/INFO] [FML]: Holder lookups applied
[18:09:12] [Client thread/INFO] [FML]: Injecting itemstacks
[18:09:12] [Client thread/INFO] [FML]: Itemstack injection complete
[18:09:12] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:09:12] [Thread-7/INFO]: Initializing LWJGL OpenAL
[18:09:12] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:09:12] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 13.20.1.2386
[18:09:12] [Thread-7/INFO]: OpenAL initialized.
[18:09:13] [Sound Library Loader/INFO]: Sound engine started
[18:09:13] [Client thread/INFO] [FML]: Max texture size: 16384
[18:09:13] [Client thread/INFO]: Created: 16x16 textures-atlas
[18:09:14] [Client thread/INFO]: [STDOUT]: CLIENT request state: WAITING_FOR_MOD_READY
[18:09:14] [Client thread/INFO] [FML]: Injecting itemstacks
[18:09:14] [Client thread/INFO] [FML]: Itemstack injection complete
[18:09:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[18:09:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Microsoft Malmo Mod
[18:09:14] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:14] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:14] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/anarayan/bin/Malmo-0.34.0/Minecraft/build/libs/MalmoMod-0.34.0.jar
[18:09:14] [Client thread/INFO]: SoundSystem shutting down...
[18:09:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[18:09:14] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:09:14] [Thread-9/INFO]: Initializing LWJGL OpenAL
[18:09:14] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:09:14] [Thread-9/INFO]: OpenAL initialized.
[18:09:15] [Sound Library Loader/INFO]: Sound engine started
[18:09:15] [Client thread/INFO] [FML]: Max texture size: 16384
[18:09:15] [Client thread/INFO]: Created: 512x512 textures-atlas
[18:09:16] [Client thread/WARN]: Skipping bad option: lastServer:
:runClient FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runClient'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 137

* 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: 2 mins 50.12 secs
AndKram commented 6 years ago

What flavour of Linux are you running and what example were you trying to run? One possible issue is not having MALMO_XSD_PATH set up in your shell.

okkhoy commented 6 years ago

I am running Ubuntu 16.04. MALMO_XSD_PATH is set.

The issue appears even before launching Minecraft fully.

It freezes while creating/just after creating the textures-atlas everytime.

image

DaveyBiggers commented 6 years ago

An exit value of 137 might suggest that gradle is running out of memory. I think I've seen this before, when building inside a docker container, though it crashed at a different point. Trying watching the output from top as Minecraft builds.

If the machine has plenty of RAM, it may be that gradle just isn't allowed to use it - there are some settings you can tweak to control how much memory gradle is allocated, if memory serves. This thread might have some clues: https://github.com/MinecraftForge/ForgeGradle/issues/324

okkhoy commented 6 years ago

I managed to resolve the issue with an update to the nvidia drivers 😕 After installing the nvidia-390 no more freezes. I am not sure what the issue was!! I will close this for now.