Skip to main content

Cannot Open Godot on Arch Linux

·
Problem Godot

Problem Description
#

Unable to open Godot project, double-clicking the project with no reflection.

  • Environment: Arch Linux with Hyprland
  • Hardware: AMD 8845HS + AMD 780M

Trouble Shooting
#

  • Check the current display driver: Run the lspci command to list all PCI devices. Look for the entry containing VGA compatible controller to see if there is a description of the AMD 780M integrated graphics.
lspci | grep VGA
  • Check if the AMD driver is loaded: Check if AMD’s open-source driver amdgpu is loaded by using lsmod. If it is loaded, it means the system should be using the AMD 780M integrated graphics.
lsmod | grep amdgpu
  • Use glxinfo to check the currently used GPU: If you have the mesa-utils package installed, you can use glxinfo to view the current graphics card and OpenGL rendering information.
glxinfo | grep "OpenGL renderer"
  • Check the dmesg output: Also can check the dmesg’s output to confirm whether there is any loading information about the AMD GPU.
dmesg | grep amdgpu

Solution to The Problem
#

Based on the error information from the dmesg output, Godot encountered a segmentation fault (segfault) during startup. This means that the program had an invalid operation during memory access, possibly due to some configuration issues with the program or the system. So I try to Forcibly use a different rendering driver. Like

godot --rendering-driver opengl3
# godot --rendering-driver opengl2
# godot --rendering-driver vulkan

When I use opengl3, it opens successfully, but when I use vulken, it shows I havn’t installed it. After I open the godot, I try to change the default rendering driver to opengl3 in setting for avoiding manually entering the driver from the commant line. Then I found it’s default driver is vulken. So I think that maybe install vulken can solve this problem

Install Vulken
#

  1. Check is the Vulken driver is installed
vulkaninfo
  1. Install Vulken driver
sudo pacman -S vulkan-radeon  # For AMD GPU Hardware
sudo pacman -S vulkan-tools   # Some Vulkan tools for helping with debugging.
  1. Use step 1 for checking the installation