minerllabs / minerl

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

When launching minerl-1.0 with WSL2, an error occurred and the game window did not open #692

Open LAYccc03 opened 1 year ago

LAYccc03 commented 1 year ago

I am a beginner, but I am very interested in MineRL, so please help me.

running.py

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

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

obs = env.reset() done = False


$ xvfb-run -a python running.py

INFO:minerl.env.malmo.instance.8afa0a:Starting Minecraft process: ['/home/layccc/anaconda3/lib/python3.9/site-packages/minerl/env/../MCP-Reborn/launchClient.sh', '-port', '10133', '-env', '-runDir', '/home/layccc/anaconda3/lib/python3.9/site-packages/minerl/env/../MCP-Reborn/run'] INFO:process_watcher:Launching process watcher daemonizer. /home/layccc/anaconda3/lib/python3.9/runpy.py:127: RuntimeWarning: 'minerl.utils.process_watcher' found in sys.modules after import of package 'minerl.utils', but prior to execution of 'minerl.utils.process_watcher'; this may result in unpredictable behaviour warn(RuntimeWarning(msg)) INFO:process_watcher:Process watcher daemonizer launched successfully. DEBUG:minerl.env.malmo.instance.8afa0a:/home/layccc/anaconda3/lib/python3.9/site-packages/minerl/env/../MCP-Reborn DEBUG:minerl.env.malmo.instance.8afa0a:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". DEBUG:minerl.env.malmo.instance.8afa0a:SLF4J: Defaulting to no-operation (NOP) logger implementation DEBUG:minerl.env.malmo.instance.8afa0a:SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:52] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' ERROR:minerl.env.malmo.instance.8afa0a:[23:00:53] [Render thread/ERROR]: Failed to verify authentication! DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:53] [Render thread/INFO]: Setting user: Player683 DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:53] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 SNAPSHOT ERROR:minerl.env.malmo.instance.8afa0a:[23:00:55] [Render thread/WARN]: ERROR : Couldn't load Narrator library : Unable to load library 'fliteWrapper': Can't obtain InputStream for linux-x86-64/libfliteWrapper.so DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:55] [Render thread/INFO]: Reloading ResourceManager: Default DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:58] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:58] [Render thread/INFO]: OpenAL initialized. DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:58] [Render thread/INFO]: Sound engine started DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/blocks.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/banner_patterns.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/shield_patterns.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:00:59] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:00] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:00] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:00] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/mob_effects.png-atlas DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [Thread-4/INFO]: [STDOUT]: ** Start MalmoEnvServer on port 10133 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [Thread-4/INFO]: [STDOUT]: CLIENT enter state: DORMANT INFO:minerl.env.malmo.instance.8afa0a:Minecraft process ready DEBUG:minerl.env._multiagent:Creating socket connection Malmo[None:8afa0a, proc=11119, addr=localhost:10133, locked=True] INFO:minerl.env.malmo:Logging output of Minecraft to ./logs/mc_1133.log DEBUG:minerl.env._multiagent:Saying hello for client: Malmo[None:8afa0a, proc=11119, addr=localhost:10133, locked=True] INFO:minerl.env._multiagent:Attempting to quit: Malmo[None:8afa0a, proc=11119, addr=localhost:10133, locked=True] DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [Thread-4/INFO]: [STDOUT]: SERVER enter state: DORMANT DEBUG:minerl.env._multiagent:Sending mission init: Malmo[None:8afa0a, proc=11119, addr=localhost:10133, locked=True] DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: Received Mission token 21e12c8b-f0b9-43cc-92b5-fc9a45101bbd:0:0:1:true DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: Received mission init command

MineRLBasaltFindCave-v050trueMineRLAgent0true1.02.070.016plainstrue64036021e12c8b-f0b9-43cc-92b5-fc9a45101bbd0127.0.0.100127.0.0.10000000 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: [STDOUT]: Setting width, height to 640, 360 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: [STDOUT]: Gamma: 2.0 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: [STDOUT]: FOV: 70.0 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [EnvServerSocketHandler/INFO]: [STDOUT]: GuiScale: 1.0 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:02] [Render thread/INFO]: [STDOUT]: Seed not provided, generating random one: 2057548564583151678 WARNING:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] WARNING:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] WARNING:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] WARNING:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] WARNING:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/INFO]: Reloading ResourceManager: Default DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:03] [Render thread/INFO]: Loaded 7 recipes DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:04] [Render thread/INFO]: Loaded 927 advancements DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:05] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:05] [Render thread/INFO]: Starting integrated minecraft server version 1.16.5 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:05] [Render thread/INFO]: Generating keypair DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:09] [Render thread/INFO]: Preparing start region for dimension minecraft:overworld DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:18] [Render thread/INFO]: Changing view distance to 11, from 10 DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:18] [Render thread/INFO]: MineRLAgent0[local:E:d1a99e81] logged in with entity id 164 at (114.5, 74.0, -965.5) DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:18] [Render thread/INFO]: MineRLAgent0 joined the game DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: [STDOUT]: creating fake mouse cursor DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: Preparing spawn area: 6% DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: Time elapsed: 3 ms DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: [STDOUT]: Starting new video null DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: Saving and pausing game... DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:19] [Render thread/INFO]: Saving chunks for level 'ServerLevel[mcpworld3a347a11d8a8]'/minecraft:overworld DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:20] [Render thread/INFO]: Saving chunks for level 'ServerLevel[mcpworld3a347a11d8a8]'/minecraft:the_nether DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:20] [Render thread/INFO]: Saving chunks for level 'ServerLevel[mcpworld3a347a11d8a8]'/minecraft:the_end DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:20] [Render thread/INFO]: Loaded 0 advancements DEBUG:minerl.env._multiagent:Peeking the clients. DEBUG:minerl.env.malmo.instance.8afa0a:[23:01:23] [EnvServerSocketHandler/INFO]: [STDOUT]: Stopping the replay, returning control to the inputs INFO:process_watcher:About to reap process tree of 11119:launchClient.sh: i zombie, owner 11095, printing process tree status in termination order: INFO:process_watcher: -11119:launchClient.sh: i zombie, owner 11095 INFO:process_watcher:Trying to SIGTERM 11119:launchClient.sh: i zombie, owner 11095 INFO:process_watcher:Process psutil.Popen(pid=11119, name='launchClient.sh', status='terminated', exitcode=0, started='23:00:40') terminated with exit code 0