Fail to make environment : Minecraft Process finished unexpectedly

Hello,

When following the Hello World tutorial : http://www.minerl.io/docs/tutorials/first_agent.html

and executing :

env = gym.make('MineRLNavigateDense-v0')

The following error is raised :

/anaconda3/lib/python3.6/site-packages/minerl/env/malmo.py in __init__(self, port, existing)
    258 
    259             # Launch the instance!
--> 260             self.launch(port, existing)
    261 
    262 

~/anaconda3/lib/python3.6/site-packages/minerl/env/malmo.py in launch(self, port, existing)
    286                     logger.debug("\n".join(line.split("\n")[:-1]))
    287                     if not line:
--> 288                         raise EOFError("Minecraft process finished unexpectedly")
    289                     client_ready =  "CLIENT enter state: DORMANT" in line
    290                     server_ready =  "SERVER enter state: DORMANT" in line

EOFError: Minecraft process finished unexpectedly

I work on Ubuntu 18.04 and have installed openjdk-8 as described in the installation tutorial : http://www.minerl.io/docs/tutorials/getting_started.html

Has this happened to anyone ?

Best,

1 Like

This happened to me when running the package out of a docker container -> forgot that I hard restarted this morning and had to do xhost + to allow external connections to the display

can’t say if the error is due to the same reasons, but it could be the case that your xhost doesn’t allow the connection from the client the Minecraft process is running from

This also happened to me because the process had no write permissions in the python directory. This was solved by installing minerl using “pip install --upgrade --user minerl”

Hi @vihanga, @anyonic_ai,

Thank you both for your answers. I have uninstalled minerl and reinstalled it with --user, I have also done xhost + but it still fails.

I use ssh to work remotely so this might be a factor.

Does your remote machine have a head? If so, are you exporting your display before running? export DISPLAY=:0 will let you run MineRL Env with GPU acceleration by using the remote display

1 Like

Please add the following to your code.

import logging
logging.basicConfig(level=logging.DEBUG)

That should give us a more detailed error.

Also please upgrade minerl.

Hi @william_guss after adding what you suggested I obtain :

(I have also updated minerl.)

INFO:minerl.env.malmo:Starting Minecraft process: ['/home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/launchClient.sh', '-port', '9000', '-env']
DEBUG:minerl.env.malmo:This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
DEBUG:minerl.env.malmo:#################################################
DEBUG:minerl.env.malmo:         ForgeGradle 2.2-SNAPSHOT-3966cea        
DEBUG:minerl.env.malmo:  https://github.com/MinecraftForge/ForgeGradle  
DEBUG:minerl.env.malmo:#################################################
DEBUG:minerl.env.malmo:               Powered by MCP unknown               
DEBUG:minerl.env.malmo:             http://modcoderpack.com             
DEBUG:minerl.env.malmo:         by: Searge, ProfMobius, Fesh0r,         
DEBUG:minerl.env.malmo:         R4wk, ZeuX, IngisKahn, bspkrs           
DEBUG:minerl.env.malmo:#################################################
DEBUG:minerl.env.malmo:Found AccessTransformer: malmomod_at.cfg
DEBUG:minerl.env.malmo::deobfCompileDummyTask
DEBUG:minerl.env.malmo::deobfProvidedDummyTask
DEBUG:minerl.env.malmo::sourceApiJava
DEBUG:minerl.env.malmo::compileApiJava UP-TO-DATE
DEBUG:minerl.env.malmo::processApiResources UP-TO-DATE
DEBUG:minerl.env.malmo::apiClasses UP-TO-DATE
DEBUG:minerl.env.malmo::copyModToClient
DEBUG:minerl.env.malmo::copyModToServer
DEBUG:minerl.env.malmo::extractMcpData SKIPPED
DEBUG:minerl.env.malmo::extractMcpMappings SKIPPED
DEBUG:minerl.env.malmo::getVersionJson
DEBUG:minerl.env.malmo::extractUserdev UP-TO-DATE
DEBUG:minerl.env.malmo::genSrgs SKIPPED
DEBUG:minerl.env.malmo::copySrg
DEBUG:minerl.env.malmo::deleteSchemas
DEBUG:minerl.env.malmo::copySchemas
DEBUG:minerl.env.malmo::jaxb
DEBUG:minerl.env.malmo::sourceMainJava
DEBUG:minerl.env.malmo::compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
DEBUG:minerl.env.malmo:Note: SpongePowered MIXIN Annotation Processor Version=0.7.5
DEBUG:minerl.env.malmo:Note: ObfuscationServiceMCP supports type: "searge"
DEBUG:minerl.env.malmo:Note: ObfuscationServiceMCP supports type: "notch"
DEBUG:minerl.env.malmo:Note: Loading searge mappings from /home/matthieu/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20161220/1.11.2/srgs/mcp-srg.srg
DEBUG:minerl.env.malmo:Note: Loading notch mappings from /home/matthieu/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20161220/1.11.2/srgs/mcp-notch.srg
DEBUG:minerl.env.malmo:Note: Writing refmap to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/compileJava-refmap.json
DEBUG:minerl.env.malmo:Note: Writing searge output SRGs to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/mcp-srg.srg
DEBUG:minerl.env.malmo:Note: Writing notch output SRGs to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/mcp-notch.srg
DEBUG:minerl.env.malmo:Note: Writing refmap to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/compileJava-refmap.json
DEBUG:minerl.env.malmo:Note: Writing searge output SRGs to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/mcp-srg.srg
DEBUG:minerl.env.malmo:Note: Writing notch output SRGs to /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/tmp/compileJava/mcp-notch.srg
DEBUG:minerl.env.malmo:Note: Some input files use or override a deprecated API.
DEBUG:minerl.env.malmo:Note: Recompile with -Xlint:deprecation for details.
DEBUG:minerl.env.malmo:Note: Some input files use unchecked or unsafe operations.
DEBUG:minerl.env.malmo:Note: Recompile with -Xlint:unchecked for details.
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo::processResources
DEBUG:minerl.env.malmo::classes
DEBUG:minerl.env.malmo::jar
DEBUG:minerl.env.malmo::extractNatives SKIPPED
DEBUG:minerl.env.malmo::getAssetIndex UP-TO-DATE
DEBUG:minerl.env.malmo::getAssets
DEBUG:minerl.env.malmo::makeStart SKIPPED
DEBUG:minerl.env.malmo::runClient
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Extra: []
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Found and added coremod: com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /home/matthieu/.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]
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_212, running on Linux:amd64:4.15.0-46-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [FML]: Found a command line coremod : com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo:[16:46:22] [main/WARN] [FML]: The coremod com.microsoft.Malmo.OverclockingPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [mixin]: SpongePowered MIXIN Subsystem Version=0.7.5 Source=file:/home/matthieu/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.7.5-SNAPSHOT/c989878008c2c5ff1a7c6491c4103d8faa221d19/mixin-0.7.5-SNAPSHOT.jar Service=LaunchWrapper Env=CLIENT
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [mixin]: Compatibility level set to JAVA_8
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [GradleStart]: Injecting location in coremod com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo:[16:46:22] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
DEBUG:minerl.env.malmo:[16:46:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [mixin]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@282308c3
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
DEBUG:minerl.env.malmo:[16:46:22] [main/WARN] [mixin]: Reference map 'mixins.replaymod.refmap.json' for mixins.overclocking.malmomod.json could not be read. If this is a development environment you can ignore this message
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:129]: MALMO: Found Minecraft, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:135]: MALMO: Found Minecraft.runGameLoop() method, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:150]: MALMO: Hooked into call to Minecraft.updateDisplay()
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [mixin]: A re-entrant transformer '$wrapper.com.microsoft.Malmo.OverclockingClassTransformer' was detected and will no longer process meta class data
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:129]: MALMO: Found Minecraft, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:135]: MALMO: Found Minecraft.runGameLoop() method, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:150]: MALMO: Hooked into call to Minecraft.updateDisplay()
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: Transformed Name: net.minecraft.client.entity.EntityPlayerSP
DEBUG:minerl.env.malmo:[16:46:23] [main/INFO] [STDOUT]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: Transformed Name: net.minecraft.client.entity.AbstractClientPlayer
DEBUG:minerl.env.malmo:[16:46:29] [Client thread/INFO]: Setting user: Player277
DEBUG:minerl.env.malmo:[16:46:31] [Client thread/WARN]: Skipping bad option: lastServer:
DEBUG:minerl.env.malmo:[16:46:31] [Client thread/INFO]: LWJGL Version: 2.9.4
DEBUG:minerl.env.malmo:libGL error: No matching fbConfigs or visuals found
DEBUG:minerl.env.malmo:libGL error: failed to load driver: swrast
DEBUG:minerl.env.malmo:[16:46:36] [Client thread/INFO]: [STDOUT]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo:[16:46:36] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:36] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager.bindTexture() method, attempting to transform it
DEBUG:minerl.env.malmo:[16:46:36] [Client thread/INFO]: [STDOUT]: MALMO: Hooked into call to GlStateManager.bindTexture()
DEBUG:minerl.env.malmo:[16:46:37] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
DEBUG:minerl.env.malmo:// I bet Cylons wouldn't have this problem.
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:Time: 6/10/19 4:46 PM
DEBUG:minerl.env.malmo:Description: Loading screen debug info
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:A detailed walkthrough of the error, its code path and all known details is as follows:
DEBUG:minerl.env.malmo:---------------------------------------------------------------------------------------
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:-- System Details --
DEBUG:minerl.env.malmo:Details:
DEBUG:minerl.env.malmo:	Minecraft Version: 1.11.2
DEBUG:minerl.env.malmo:	Operating System: Linux (amd64) version 4.15.0-46-generic
DEBUG:minerl.env.malmo:	Java Version: 1.8.0_212, Oracle Corporation
DEBUG:minerl.env.malmo:	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
DEBUG:minerl.env.malmo:	Memory: 890573968 bytes (849 MB) / 1014497280 bytes (967 MB) up to 1908932608 bytes (1820 MB)
DEBUG:minerl.env.malmo:	JVM Flags: 1 total; -Xmx2G
DEBUG:minerl.env.malmo:	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
DEBUG:minerl.env.malmo:	FML: 
DEBUG:minerl.env.malmo:	Loaded coremods (and transformers): 
DEBUG:minerl.env.malmo:OverclockingPlugin (MalmoMod-0.37.0.jar)
DEBUG:minerl.env.malmo:  com.microsoft.Malmo.OverclockingClassTransformer
DEBUG:minerl.env.malmo:	GL info: ' Vendor: 'Intel Inc.' Version: '1.4 (2.1 INTEL-10.32.48)' Renderer: 'Intel HD Graphics 4000 OpenGL Engine'
DEBUG:minerl.env.malmo:[16:46:37] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
DEBUG:minerl.env.malmo:[16:46:37] [Client thread/INFO] [FML]: Replaced 232 ore recipes
DEBUG:minerl.env.malmo:[16:46:37] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
DEBUG:minerl.env.malmo:[16:46:37] [Client thread/INFO] [FML]: Searching /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/run/mods for mods
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at CLIENT
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at SERVER
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Microsoft Malmo Mod
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /home/matthieu/.local/lib/python3.6/site-packages/minerl/env/Malmo/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Applying holder lookups
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Holder lookups applied
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Applying holder lookups
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Holder lookups applied
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Applying holder lookups
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Holder lookups applied
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
DEBUG:minerl.env.malmo:[16:46:38] [Client thread/INFO]: [STDOUT]: Testing schemas against internal version number: 0.37
DEBUG:minerl.env.malmo:[16:46:38] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
DEBUG:minerl.env.malmo:[16:46:39] [Client thread/INFO] [FML]: Applying holder lookups
DEBUG:minerl.env.malmo:[16:46:39] [Client thread/INFO] [FML]: Holder lookups applied
DEBUG:minerl.env.malmo:[16:46:39] [Client thread/INFO] [FML]: Injecting itemstacks
DEBUG:minerl.env.malmo:[16:46:39] [Client thread/INFO] [FML]: Itemstack injection complete
DEBUG:minerl.env.malmo:[16:46:39] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 13.20.1.2386
DEBUG:minerl.env.malmo:[16:46:39] [Sound Library Loader/INFO]: Starting up SoundSystem...
DEBUG:minerl.env.malmo:[xcb] Unknown request in queue while dequeuing
DEBUG:minerl.env.malmo:[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
DEBUG:minerl.env.malmo:[xcb] Aborting, sorry about that.
DEBUG:minerl.env.malmo:java: ../../src/xcb_io.c :165 : dequeue_pending_request:  l'assertion « !xcb_xlib_unknown_req_in_deq » a échoué.
DEBUG:minerl.env.malmo::runClient FAILED
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:FAILURE: Build failed with an exception.
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:* What went wrong:
DEBUG:minerl.env.malmo:Execution failed for task ':runClient'.
DEBUG:minerl.env.malmo:> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 134
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:* Try:
DEBUG:minerl.env.malmo:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:BUILD FAILED
DEBUG:minerl.env.malmo:
DEBUG:minerl.env.malmo:Total time: 26.224 secs
DEBUG:minerl.env.malmo:
---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)
<ipython-input-3-9dbc52007bce> in <module>
----> 1 env = gym.make('MineRLNavigateExtremeDense-v0')

~/anaconda3/lib/python3.6/site-packages/gym/envs/registration.py in make(id, **kwargs)
    154 
    155 def make(id, **kwargs):
--> 156     return registry.make(id, **kwargs)
    157 
    158 def spec(id):

~/anaconda3/lib/python3.6/site-packages/gym/envs/registration.py in make(self, path, **kwargs)
     99             logger.info('Making new env: %s', path)
    100         spec = self.spec(path)
--> 101         env = spec.make(**kwargs)
    102         # We used to have people override _reset/_step rather than
    103         # reset/step. Set _gym_disable_underscore_compat = True on

~/anaconda3/lib/python3.6/site-packages/gym/envs/registration.py in make(self, **kwargs)
     71         else:
     72             cls = load(self._entry_point)
---> 73             env = cls(**_kwargs)
     74 
     75         # Make the enviroment aware of which spec it came from.

~/.local/lib/python3.6/site-packages/minerl/env/core.py in __init__(self, xml, observation_space, action_space, port, noop_action, docstr)
    124         self.had_to_clean = False
    125 
--> 126         self.init(observation_space, action_space, port=port)
    127 
    128     def init(self,  observation_space, action_space,  port=None):

~/.local/lib/python3.6/site-packages/minerl/env/core.py in init(self, observation_space, action_space, port)
    150                 self.instance = InstanceManager.add_existing_instance(port)
    151             else:
--> 152                 self.instance = InstanceManager.get_instance().__enter__()
    153         # Parse XML file
    154         with open(self.xml_file, 'r') as f:

~/anaconda3/lib/python3.6/contextlib.py in __enter__(self)
     79     def __enter__(self):
     80         try:
---> 81             return next(self.gen)
     82         except StopIteration:
     83             raise RuntimeError("generator didn't yield") from None

~/.local/lib/python3.6/site-packages/minerl/env/malmo.py in get_instance(cls)
     87         if cls.managed:
     88             if len(cls._instance_pool) < cls.MAXINSTANCES:
---> 89                 inst = cls._Instance(cls._get_valid_port())
     90                 cls.ninstances += 1
     91                 cls._instance_pool.append(inst)

~/.local/lib/python3.6/site-packages/minerl/env/malmo.py in __init__(self, port, existing)
    257 
    258             # Launch the instance!
--> 259             self.launch(port, existing)
    260 
    261 

~/.local/lib/python3.6/site-packages/minerl/env/malmo.py in launch(self, port, existing)
    289                     logger.debug("\n".join(line.split("\n")[:-1]))
    290                     if not line:
--> 291                         raise EOFError("Minecraft process finished unexpectedly")
    292                     client_ready =  "CLIENT enter state: DORMANT" in line
    293                     server_ready =  "SERVER enter state: DORMANT" in line

EOFError: Minecraft process finished unexpectedly

Hi @BrandonHoughton,thank you for your answer, I am not sure what you mean by a head ?

I have tried export DISPLAY=:0 on my remote computer but the same error occurred. I have copied the full error above.

Sorry, to clarify by head I meant a physical display attached to your graphics card.

@william_guss this is a new error to me, you?

This is an issue with Minecraft forge! Good catch. I have implemented some changes that may fix this.
Can you upgrade your minerl package:

pip3 install --upgrade minerl

Hello,

Thank you both for your answers, it all works now ! :slight_smile:

Some more information about the issue :

  • Running env = gym.make("MineRLObtainDiamondDense-v0") on my remote machine via TeamViewer made it work.

  • It did not work when doing it via ssh -X. However upgrading minerl as told by @william_guss solved this issue.

Thanks,