Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: exception for Java compiling #12

Open
speedhawk opened this issue Aug 12, 2023 · 0 comments
Open

Bug: exception for Java compiling #12

speedhawk opened this issue Aug 12, 2023 · 0 comments

Comments

@speedhawk
Copy link

speedhawk commented Aug 12, 2023

Hi, thank you for your sharing of the great work! But I got a problem during running.
I am trying to reimplement the loop demo as the introduction of readme and the system (here, the code is not run in my computer but on google Colab) return the error info below:

[INFO:minedojo.tasks] Loaded 1581 Programmatic tasks, 1560 Creative tasks, and 1 special task: "Playthrough". Totally 3142 tasks loaded.
/usr/local/lib/python3.10/dist-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
  logger.warn(
Episode:   0% 0/2 [00:00<?, ?it/s][2023-08-12 15:01:52,958][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][INFO] - Starting Minecraft process: ['/tmp/tmpzq5jdvuq/Minecraft/launchClient.sh', '-port', '12249', '-env', '-runDir', '/tmp/tmpzq5jdvuq/Minecraft/run', '-seed', '982628585']
[2023-08-12 15:01:52,998][watchdog][INFO] - Launching watchdog daemonizer.
[INFO:minedojo.tasks] Loaded 1581 Programmatic tasks, 1560 Creative tasks, and 1 special task: "Playthrough". Totally 3142 tasks loaded.
[2023-08-12 15:02:00,610][watchdog][INFO] - Watchdog launched successfully.
[2023-08-12 15:03:34,116][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - import javax.xml.bind.JAXBException;
[2023-08-12 15:03:34,217][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - * Exception is:
[2023-08-12 15:03:34,217][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileJava'.
[2023-08-12 15:03:34,218][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
[2023-08-12 15:03:34,218][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
[2023-08-12 15:03:34,557][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - /tmp/tmpzq5jdvuq/Minecraft
[2023-08-12 15:03:34,557][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - # Configuration file
[2023-08-12 15:03:34,557][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - # Autogenerated from command-line options
[2023-08-12 15:03:34,557][minedojo.sim.bridge.mc_instance.instance.instance.fe69e2][ERROR] - 
...

until the error exactly declared:

...
Error executing job with overrides: []
Traceback (most recent call last):
  File "/content/MineCLIP/main/mineagent/run_env_in_loop.py", line 91, in main
    obs = env.reset()
  File "/usr/local/lib/python3.10/dist-packages/mineclip/dense_reward/mob_combat/combat_spider.py", line 77, in reset
    return super().reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/mineclip/dense_reward/mob_combat/dense_reward.py", line 25, in reset
    obs = super().reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/gym/core.py", line 292, in reset
    return self.env.reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/gym/core.py", line 292, in reset
    return self.env.reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/wrappers/ar_nn/delta_inventory_wrapper.py", line 78, in reset
    observation = self.env.reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/gym/core.py", line 319, in reset
    observation = self.env.reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/wrappers/ar_nn/nn_action_space_wrapper.py", line 259, in reset
    obs = self.env.reset(**kwargs)
  File "/usr/local/lib/python3.10/dist-packages/minedojo/tasks/meta/base.py", line 87, in reset
    obs = self.env.reset()
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/wrappers/fast_reset.py", line 71, in reset
    return self.env.reset()
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/sim.py", line 419, in reset
    raw_obs = self._bridge_env.reset(episode_id, [xml])[0]
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 72, in reset
    self._setup_instances()
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in _setup_instances
    self._instances.extend([f.result() for f in instance_futures])
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 157, in <listcomp>
    self._instances.extend([f.result() for f in instance_futures])
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/bridge/bridge_env/bridge_env.py", line 177, in _get_new_instance
    instance.launch(replaceable=self._is_fault_tolerant)
  File "/usr/local/lib/python3.10/dist-packages/minedojo/sim/bridge/mc_instance/instance.py", line 201, in launch
    raise EOFError(
EOFError: /tmp/tmpzq5jdvuq/Minecraft
# Configuration file
# Autogenerated from command-line options

It seems that the problem raises during loading Java modules and building for the support of minecraft. However, it still keeps running without any breaks until the final error thrown:

...
Note: Writing refmap to /tmp/tmpzq5jdvuq/Minecraft/build/tmp/compileJava/compileJava-refmap.json
Note: Writing refmap to /tmp/tmpzq5jdvuq/Minecraft/build/tmp/compileJava/compileJava-refmap.json
Note: Writing searge output SRGs to /tmp/tmpzq5jdvuq/Minecraft/build/tmp/compileJava/mcp-srg.srg
Note: Writing notch output SRGs to /tmp/tmpzq5jdvuq/Minecraft/build/tmp/compileJava/mcp-notch.srg
100 errors
34 warnings

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
...

Could you please help to fix this? Many thanks!

@speedhawk speedhawk changed the title Bug: Bug: exception for Java compiling Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant