GUI error on M1 Chip

Hi,
i finished the project on a windows pc in the virtual machine and am able to open the GUI there, but on a M1 Chip the following error occurs:
Bildschirmfoto 2022-05-04 um 15.38.33
Any help is appreciated.

Edit: Apparently i have no GUI manager. Is it possible to make it work somehow?

Hey,

The easiest way would be to run the GUI locally on your machine (without Docker).

Therefore you need to install a JVM (as discussed here), which you may already have installed to run Mars directly on M1. Additionally you will need to patch the GUI (as described here) to be able to run it at all on a Mac without the Virtual Machine. Then you can just run the GUI using ./run_gui.py from your MacOS Terminal in the project directory.

Different approach:

Warning: The GUI could be lagging and will have some visual bugs running it this way

Update the start_container.sh to add

if [ $# -eq 1 ] && [ "$1" = "gui" ]
then
BASE_COMMAND="$BASE_COMMAND -e DISPLAY=$MY_DISPLAY -e XAUTHORITY=/.Xauthority --net host -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/.Xauthority"
fi

at line 31 (right after COMMAND="zsh").

Run the GUI:

  1. Start XQuartz
  2. In the terminal, first run host + ${hostname}
  3. Navigate to your Docker Workspace directory
  4. Run ./start_container.sh gui
  5. Navigate to your project folder inside the container and run ./run_gui.py
3 Likes