godotengine / godotengine/godot
Failed to import resources when running Godot 4 in Linux ARM64 (Asahi)
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- Reproducible in Godot 4.3 Stable (v4.3.stable.flathub [77dcf97d8]) (and perhaps 4.2, as I already had the issue in the past but didn't spend much time on it as I assumed it was an issue related to the GPU driver of the OS.)
### System information
Asahi Linux (Linux ARM64) - Godot v4.3 Stable - forward+/compatibility/mobile - CPU/GPU M1 Pro Max 24 CU
### Issue description
Hello everyone, this is my first issue submission. Before I continue I want to thank everyone for the hard work on the project :fist_raised:
Just the other day Asahi Linux (ARM64 Linux for apple silicon-based Macs) got conformant Vulkan, OpenCL, OpenGL driver implementations, so I installed Godot to see if it finally worked alright. I cloned the repository of the game I am working on at the moment and I noticed a bunch of errors when first opening the project. All the errors read something like:
> Failed loading resource: res://textures/texture-arm.jpg. Make sure resources have been imported by opening the project in the editor at least once.
> editor/editor_node.cpp:1278 - Condition "!res.is_valid()" is true. Returning: ERR_CANT_OPEN

On top of that, the editor would try to re-import all the assets every time it will regain focus from the OS. (For example if I did alt+tab to switch between opened apps)
I assume this is not a Git issue because the project loads just fine on both Linux x86_64 (my desktop machine) and MacOS ARM64 (My laptop, on its other OS).
I was looking for this error message online and I found some posts online where the solution was to manually delete the `.godot` folder of the project. I tried that but didn't work for me. I also tried deleting the generated `.import` files associated to the assets that couldn't load properly, and that seemed to work temporarily, as restarting the editor would cause the errors to appear again.
Sorry if I am missing something here, I would be glad to add more information to this if it is needed. I have attached a MRP project that reproduces the error constantly on my machine. Thanks again to everyone.
### Steps to reproduce
1- Install Godot 4 via flatpak on Asahi Linux
2- Open the MRP project
3- Dismiss asset import errors
4- Delete .import file of the texture_arm.jpg file to reimport the asset and "solve" the issue
5- Restart Godot editor to have the error appear again.
### Minimal reproduction project (MRP)
[test-project.zip](https://github.com/user-attachments/files/17349436/test-project.zip)
Contributor guide
Research direction
Start with the attached test-project.zip and reproduce the import failure on Asahi Linux using the listed steps. Inspect editor/editor_node.cpp:1278 alongside the resource import behavior, including the .import files and project .godot directory. Done means the texture imports successfully and remains available after editor restart or focus changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- game-dev, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100