godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.34k stars 21.06k forks source link

ERROR: Caller thread can't call this function in this node (/root). Use call_deferred() or call_thread_group() instead #97129

Open fabiuz opened 1 month ago

fabiuz commented 1 month ago

Tested versions

Reproducible in Godot_v4.4-dev2_linux.x86_64, and Godot_v3

System information

Linux fedora 38,

Issue description

I download Godot, on the link: https://github.com/godotengine/godot-builds/releases/download/4.4-dev2/Godot_v4.4-dev2_linux.x86_64.zip, I extract the program, I do create the project, then when I edit is error is showed:

ERROR: Caller thread can't call this function in this node (/root). Use call_deferred() or call_thread_group() instead.
   at: propagate_notification (scene/main/node.cpp:2446)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev2.official (97ef3c837263099faf02d8ebafd6c77c94d2aaba)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib64/libc.so.6(+0x3dbb0) [0x7f624994abb0] (??:0)
[2] llvm::CmpInst::Create(llvm::Instruction::OtherOps, llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (??:0)
[3] [0x7f622026e8c0] (??:0)
-- END OF BACKTRACE --

Captura de tela de 2024-09-17 19-42-54 Captura de tela de 2024-09-17 19-43-56 Captura de tela de 2024-09-17 19-44-15 Captura de tela de 2024-09-17 19-44-39 Captura de tela de 2024-09-17 19-44-51

Steps to reproduce

The images on issue description reproduce the errors.

Minimal reproduction project (MRP)

fb_godot_2.zip

fabiuz commented 1 month ago

The project is created, but, when I try to edit the project, the error ocurr.

akien-mga commented 1 month ago

Can you give more details about your system? It sounds like you may be running in a virtual machine (which type?) which doesn't support Vulkan. It then tries to use software rendering from Mesa (llvmpipe) but the version in Fedora 38 is pretty old and is known to be broken.

If that's your situation then it's a duplicate of #82435. You can use the "Compatibility" renderer (OpenGL) instead of "Forward+" or "Mobile" (Vulkan).

fabiuz commented 1 month ago

The system not is a virtual machine!.

Operating System: Fedora Linux 38 KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.12 Kernel Version: 6.6.8-100.fc38.x86_64 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-2600 CPU @ 3.40GHz Memory: 19.5 GiB of RAM Graphics Processor: AMD CYPRESS Ati Radeon 5850

On the mode "Compatibility", the editor IS WORKING but, on the mode "Forward+", the editor IS NOT WORKING.