Skip to content

Troubleshooting

Phantomb edited this page Oct 11, 2017 · 14 revisions

Problem: On Windows, DLL load failed: %1 is not a valid Win32 application:

C:\Malmo-0.11.2-Windows-64bit\Python_Examples>python run_mission.py
Traceback (most recent call last):
  File "run_mission.py", line 5, in <module>
    import MalmoPython
ImportError: DLL load failed: %1 is not a valid Win32 application.

Solution:

Make sure you are using the 64-bit version of Python. To test, type python and look at the welcome message. For 64-bit Python on Windows I get:

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

This error message can also be caused by the issue below.


Problem: On Windows, 'The program can't start because xerces-c_3_1_vc120.dll is missing from your computer.'

Solution:

Check that you have C:\Program Files (x86)\CodeSynthesis XSD 4.0\bin64 on your PATH. The CodeSynthesis .msi installer should have added it but does have an option to not add it.


Problem: 'ImportError: No module named MalmoPython'

This is can be caused one of the following:

  • Trying to run Malmo from source without building it.
  • Running a (pre)built Malmo, but missing the MalmoPython.so or MalmoPython.lib file in the path or directory.

Solution:

This can be solved by, respectively:

  • Building the Malmo from source or installing the pre-built binaries (the last of which is recommended)
  • Adding the mentioned file to your MALMMOPATH, or copying the file to the directory from from which you start the agent. This file can be found in the xxx_Examples folder (substitute xxx for the programming language used).

Problem: launchClient fails with error about wrong ELF class:

Unable to launch java.lang.reflect.InvocationTargetException 
..
..
at GradleStart.main(Unknown Source) [start/:?]
Caused by: java.lang.UnsatisfiedLinkError: liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

Solution:

If you are trying to run Minecraft on a machine with no desktop environment installed then you will get this error. For example if you are SSH-ing into a cluster machine. The best approach is to run Minecraft on a different machine, one with a desktop environment installed. Make a note of its IP address and use the version of AgentHost::startMission that takes a ClientPool. See Python_Examples/MultiMaze.py for an example of that.


Problem: On MacOSX, launchClient cannot find symbol setW(float) in Vector4f:

.../Minecraft/build/tmp/recompileMc/sources/net/minecraftforge/client/model/obj/OBJModel.java:597:
error: cannot find symbol
[ant:javac]                     material.getColor().setW(alpha);
[ant:javac]                                        ^
[ant:javac]   symbol:   method setW(float)
[ant:javac]   location: class Vector4f
[ant:javac] Note: Some input files use or override a deprecated API.
[ant:javac] Note: Recompile with -Xlint:deprecation for details.
[ant:javac] Note: Some input files use unchecked or unsafe operations.
[ant:javac] Note: Recompile with -Xlint:unchecked for details.
[ant:javac] 1 error
[ant:javac] 1 warning
:recompileMc FAILED

FAILURE: Build failed with an exception.

Solution:

Try the installer mentioned here: http://www.minecraftforge.net/forum/index.php/topic,35273.msg185825.html


Problem: On MacOSX, "Symbol not found: __ZNK5boost10filesystem4path16lexically_normalEv"

Solution:

Try this:

brew update
brew upgrade

Problem: What went wrong: Execution failed for task ':deobfMcMCP'. > Your Access Transformers be broke!

Solution:

Make sure you are using the 64-bit JDK, and that the JAVA_HOME variable is set to the location of your JDK installation, e.g. C:\Program Files\Java\jdk1.8.0_92


Problem: "schemaLocation does not contain namespace-location pairs"

Solution:

Spaces in the location of your Malmo installation (e.g. C:\Project Malmo\Malmo-0.14.0-Windows-64bit) can cause problems (#220). Please use paths without spaces.

Clone this wiki locally