minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
712 stars 153 forks source link

Main monitor turns off after env.close() #181

Open KarolisRam opened 5 years ago

KarolisRam commented 5 years ago

My main monitor sometimes turns off when running the environment. It only happens sometimes when running env.reset(). It happens every time when I run env.close(). 2nd monitor and the OS keep working as if nothing happened. It never happened doing anything else before. Only way I found to get it back on is a hard reboot. I tried searching for generic monitor turning off problems with no success.

Minimal code to reproduce:

import minerl
import gym
import logging
logging.basicConfig(level=logging.DEBUG)
env = gym.make('MineRLNavigateDense-v0')
env.close()

Device information: OS: Ubuntu 18.04 GPU: GTX 1070 Ti GPU Driver Version: 384.130 CPU: AMD FX(tm)-8350 Python: 3.6.7 Java: 1.8.0_212 MineRL: 0.2.2

Logs for gym.make():

INFO:minerl.env.malmo.instance.31d35a:Starting Minecraft process: ['/tmp/tmpn04mcqh8/Minecraft/launchClient.sh', '-port', '9001', '-env', '-runDir', '/tmp/tmpn04mcqh8/Minecraft/run']
INFO:minerl.env.malmo.instance.31d35a:Starting process watcher for process 6776 @ localhost:9001
DEBUG:minerl.env.malmo.instance.31d35a:This mapping 'snapshot_20161220' was designed for MC 1.11! Use at your own peril.
DEBUG:minerl.env.malmo.instance.31d35a:#################################################
DEBUG:minerl.env.malmo.instance.31d35a:         ForgeGradle 2.2-SNAPSHOT-3966cea        
DEBUG:minerl.env.malmo.instance.31d35a:  https://github.com/MinecraftForge/ForgeGradle  
DEBUG:minerl.env.malmo.instance.31d35a:#################################################
DEBUG:minerl.env.malmo.instance.31d35a:               Powered by MCP unknown               
DEBUG:minerl.env.malmo.instance.31d35a:             http://modcoderpack.com             
DEBUG:minerl.env.malmo.instance.31d35a:         by: Searge, ProfMobius, Fesh0r,         
DEBUG:minerl.env.malmo.instance.31d35a:         R4wk, ZeuX, IngisKahn, bspkrs           
DEBUG:minerl.env.malmo.instance.31d35a:#################################################
DEBUG:minerl.env.malmo.instance.31d35a:Found AccessTransformer: malmomod_at.cfg
DEBUG:minerl.env.malmo.instance.31d35a::deobfCompileDummyTask
DEBUG:minerl.env.malmo.instance.31d35a::deobfProvidedDummyTask
DEBUG:minerl.env.malmo.instance.31d35a::getVersionJson
DEBUG:minerl.env.malmo.instance.31d35a::extractUserdev
DEBUG:minerl.env.malmo.instance.31d35a::downloadClient SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::downloadServer SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::splitServerJar SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::mergeJars SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::applyBinaryPatches
DEBUG:minerl.env.malmo.instance.31d35a::extractDependencyATs SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::extractMcpData SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::extractMcpMappings SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::genSrgs SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::deobfMcMCP
DEBUG:minerl.env.malmo.instance.31d35a:Applying SpecialSource...
DEBUG:minerl.env.malmo.instance.31d35a:Applying Exceptor...
DEBUG:minerl.env.malmo.instance.31d35a:Applying RuntimeInvisibleParameterAnnotations workaround...
DEBUG:minerl.env.malmo.instance.31d35a::sourceApiJava
DEBUG:minerl.env.malmo.instance.31d35a::compileApiJava UP-TO-DATE
DEBUG:minerl.env.malmo.instance.31d35a::processApiResources UP-TO-DATE
DEBUG:minerl.env.malmo.instance.31d35a::apiClasses UP-TO-DATE
DEBUG:minerl.env.malmo.instance.31d35a::copyModToClient
DEBUG:minerl.env.malmo.instance.31d35a::copyModToServer
DEBUG:minerl.env.malmo.instance.31d35a::copySrg
DEBUG:minerl.env.malmo.instance.31d35a::deleteSchemas
DEBUG:minerl.env.malmo.instance.31d35a::copySchemas
DEBUG:minerl.env.malmo.instance.31d35a::jaxb
DEBUG:minerl.env.malmo.instance.31d35a::sourceMainJava
DEBUG:minerl.env.malmo.instance.31d35a::compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
DEBUG:minerl.env.malmo.instance.31d35a:Note: SpongePowered MIXIN Annotation Processor Version=0.7.5
DEBUG:minerl.env.malmo.instance.31d35a:Note: ObfuscationServiceMCP supports type: "searge"
DEBUG:minerl.env.malmo.instance.31d35a:Note: ObfuscationServiceMCP supports type: "notch"
DEBUG:minerl.env.malmo.instance.31d35a:Note: Loading searge mappings from /home/karolis/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20161220/1.11.2/srgs/mcp-srg.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Loading notch mappings from /home/karolis/.gradle/caches/minecraft/de/oceanlabs/mcp/mcp_snapshot/20161220/1.11.2/srgs/mcp-notch.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing refmap to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/compileJava-refmap.json
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing searge output SRGs to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/mcp-srg.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing notch output SRGs to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/mcp-notch.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing refmap to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/compileJava-refmap.json
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing searge output SRGs to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/mcp-srg.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Writing notch output SRGs to /tmp/tmpn04mcqh8/Minecraft/build/tmp/compileJava/mcp-notch.srg
DEBUG:minerl.env.malmo.instance.31d35a:Note: Some input files use or override a deprecated API.
DEBUG:minerl.env.malmo.instance.31d35a:Note: Recompile with -Xlint:deprecation for details.
DEBUG:minerl.env.malmo.instance.31d35a:Note: Some input files use unchecked or unsafe operations.
DEBUG:minerl.env.malmo.instance.31d35a:Note: Recompile with -Xlint:unchecked for details.
DEBUG:minerl.env.malmo.instance.31d35a:
DEBUG:minerl.env.malmo.instance.31d35a::processResources
DEBUG:minerl.env.malmo.instance.31d35a::classes
DEBUG:minerl.env.malmo.instance.31d35a::jar
DEBUG:minerl.env.malmo.instance.31d35a::extractNatives SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::getAssetIndex UP-TO-DATE
DEBUG:minerl.env.malmo.instance.31d35a::getAssets
DEBUG:minerl.env.malmo.instance.31d35a:Current status: 595/1196   49%
DEBUG:minerl.env.malmo.instance.31d35a:Current status: 975/1196   81%
DEBUG:minerl.env.malmo.instance.31d35a:Current status: 987/1196   82%
DEBUG:minerl.env.malmo.instance.31d35a:Current status: 1192/1196   99%
DEBUG:minerl.env.malmo.instance.31d35a::makeStart SKIPPED
DEBUG:minerl.env.malmo.instance.31d35a::runClient
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:26] [main/INFO]: Extra: []
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Found and added coremod: com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, /home/karolis/.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.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_212, running on Linux:amd64:4.15.0-45-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Found a command line coremod : com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/WARN]: 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.instance.31d35a:[15:03:27] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.7.5 Source=file:/home/karolis/.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.instance.31d35a:[15:03:27] [main/INFO]: Compatibility level set to JAVA_8
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Injecting location in coremod com.microsoft.Malmo.OverclockingPlugin
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@5215cd9a
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:27] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/WARN]: 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.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:129]: MALMO: Found Minecraft, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:135]: MALMO: Found Minecraft.runGameLoop() method, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:150]: MALMO: Hooked into call to Minecraft.updateDisplay()
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: A re-entrant transformer '$wrapper.com.microsoft.Malmo.OverclockingClassTransformer' was detected and will no longer process meta class data
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:58]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:129]: MALMO: Found Minecraft, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:135]: MALMO: Found Minecraft.runGameLoop() method, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:overclockRenderer:150]: MALMO: Hooked into call to Minecraft.updateDisplay()
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: Transformed Name: net.minecraft.client.entity.EntityPlayerSP
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:28] [main/INFO]: [com.microsoft.Malmo.OverclockingClassTransformer:transform:42]: Transformed Name: net.minecraft.client.entity.AbstractClientPlayer
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:29] [Client thread/INFO]: Setting user: Player74
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:31] [Client thread/WARN]: Skipping bad option: lastServer:
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:31] [Client thread/INFO]: LWJGL Version: 2.9.4
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: [STDOUT]: MALMO: Attempting to transform MinecraftServer
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: [STDOUT]: MALMO: Found GlStateManager.bindTexture() method, attempting to transform it
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: [STDOUT]: MALMO: Hooked into call to GlStateManager.bindTexture()
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: MinecraftForge v13.20.0.2228 Initialized
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:32] [Client thread/INFO]: Replaced 232 ore recipes
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:33] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:33] [Client thread/INFO]: Searching /tmp/tmpn04mcqh8/Minecraft/run/mods for mods
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Forge Mod Loader has identified 5 mods to load
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at CLIENT
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, malmomod] at SERVER
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Microsoft Malmo Mod
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Processing ObjectHolder annotations
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Found 444 ObjectHolder annotations

DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Identifying ItemStackHolder annotations
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:34] [Client thread/INFO]: Found 0 ItemStackHolder annotations
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Applying holder lookups
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Holder lookups applied
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Applying holder lookups
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Holder lookups applied
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Applying holder lookups
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Holder lookups applied
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Configured a dormant chunk cache size of 0
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: [STDOUT]: Testing schemas against internal version number: 0.37
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: [STDOUT]: [LOGTOPY] Performance directory not specified.
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Applying holder lookups
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Holder lookups applied
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Injecting itemstacks
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Client thread/INFO]: Itemstack injection complete
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Target: 13.20.1.2386
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:35] [Sound Library Loader/INFO]: Starting up SoundSystem...
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:36] [Thread-6/INFO]: Initializing LWJGL OpenAL
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:36] [Thread-6/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:36] [Thread-6/INFO]: OpenAL initialized.
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:36] [Sound Library Loader/INFO]: Sound engine started
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Max texture size: 16384
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Created: 16x16 textures-atlas
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: [STDOUT]: CLIENT request state: WAITING_FOR_MOD_READY
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Injecting itemstacks
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Itemstack injection complete
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Forge Mod Loader has successfully loaded 5 mods
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Microsoft Malmo Mod
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:37] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: MalmoMod in /tmp/tmpn04mcqh8/Minecraft/build/libs/MalmoMod-0.37.0.jar
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Client thread/INFO]: SoundSystem shutting down...
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Sound Library Loader/INFO]: Starting up SoundSystem...
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Thread-8/INFO]: Initializing LWJGL OpenAL
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:38] [Thread-8/INFO]: OpenAL initialized.
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:39] [Sound Library Loader/INFO]: Sound engine started
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:39] [Client thread/INFO]: Max texture size: 16384
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:39] [Client thread/INFO]: Created: 512x512 textures-atlas
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:40] [Client thread/WARN]: Skipping bad option: lastServer:
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:40] [Client thread/INFO]: [STDOUT]: CLIENT enter state: WAITING_FOR_MOD_READY
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:40] [Client thread/INFO]: [STDOUT]: ***** Start MalmoEnvServer on port 9001
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:40] [Client thread/INFO]: [STDOUT]: CLIENT request state: DORMANT
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:40] [Client thread/INFO]: [STDOUT]: CLIENT enter state: DORMANT
INFO:minerl.env.malmo.instance.31d35a:Minecraft process ready
INFO:minerl.env.malmo:Logging output of Minecraft to ./logs/mc_1.log
DEBUG:minerl.env.malmo.instance.31d35a:[15:03:41] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id

Logs for env.close():

DEBUG:minerl.env.malmo.instance.31d35a:[15:04:35] [EnvServerSocketHandler/INFO]: Java has been asked to exit (code 0) by net.minecraftforge.fml.common.FMLCommonHandler.exitJava(FMLCommonHandler.java:659).
INFO:minerl.env.malmo:Minecraft process psutil.Process(pid=6776, status='terminated') terminated with exit code 0

Any help highly appreciated!

MadcowD commented 5 years ago

Hmmm, I've never experienced this. Sometimes when you close Minecraft or some process that is using your GPU on Ubuntu your screen does flash black, but I think this issue might be out of our hands.

KarolisRam commented 5 years ago

It also happens when I simply close Minecraft after launching it with MineRL. Both screens flash black, but one stays black. I found a way to get the screen back by "changing" the resolution of that monitor.

Find the output name by running xrandr:

Screen 0: minimum 8 x 8, current 3840 x 1200, maximum 32767 x 32767
DVI-D-0 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 490mm x 310mm
   1920x1200     59.94 +  59.88* 
HDMI-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  

Set the resolution to what it already is: xrandr --output "DVI-D-0" --mode 1920x1200

It's not ideal, but it works for now. I'll keep the issue open in case someone finds a more permanent fix.