godotengine / godot

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

3D projects crashes on start #62256

Open rogerdv opened 2 years ago

rogerdv commented 2 years ago

Godot version

4.0 alpha 9

System information

Linux, AMD RX 5500 XT

Issue description

A couple of 3D projects now crash on start and I get this: handle_crash: Program crashed with signal 11 Engine version: Godot Engine v4.0.alpha10.official (4bbe7f0b98de72d6dd77d5ade4b761de375bcf66) Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues [1] /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f4bb27ea210] (??:0) [2] /home/roger/work/godot4/Godot_v4.0-alpha10_linux.64() [0xde3997] (??:0) [3] /home/roger/work/godot4/Godot_v4.0-alpha10_linux.64() [0x37c7d80] (??:0) [4] /home/roger/work/godot4/Godot_v4.0-alpha10_linux.64() [0xdcafef] (??:0) [5] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f4bb27cb0b3] (??:0) [6] /home/roger/work/godot4/Godot_v4.0-alpha10_linux.64() [0xddfa3e] (??:0) -- END OF BACKTRACE --

The projects were working until alpha 8. Other, simpler projects, still work, also, if I use Windows, all the projects run fine.

Steps to reproduce

I havent been able to reproduce the problem. I created a new project, and added more and more elements (larger scenes, animated models, navigation regions) but it runs fine.

Minimal reproduction project

No response

Calinou commented 2 years ago

Do you use CSG nodes in the project? If so, this is resolved in 4.0.alpha10: https://github.com/godotengine/godot/issues/60936

rogerdv commented 2 years ago

Do you use CSG nodes in the project? If so, this is resolved in 4.0.alpha10: #60936

I had no idea what a CSG node was until you mentioned. No, I dont use CSG nodes at all and the problem started in alpha 9, but persist in alpha 10.

rogerdv commented 2 years ago

Ok, found the cause of the problem (or the cause of some problem). When I change the default values in Viewport width and height the project no longer runs and I get that crash. Restoring the default values doesnt solves the crash. It is a Linux specific problem (Linux Mint, with default drivers)

rogerdv commented 2 years ago

I made a quick test: exported the project and tried to run: it crashes.

Calinou commented 2 years ago

Can you reproduce this on the latest master branch, on a build with debug symbols? This will give you an useful crash backtrace. You can download a nightly build here, or compile from source.

rogerdv commented 2 years ago

I have updated from master an hour ago, compiled, and the error persists. Here is the backtrace handle_crash: Program crashed with signal 11 Engine version: Godot Engine v4.0.alpha.custom_build (ecf187705eb59632cefa649b0f4b44dd3569c0fb) Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues [1] /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f2cec24c210] (??:0) [2] GLManager_X11::release_current() (??:0) [3] DisplayServerX11::release_rendering_thread() (??:0) [4] RenderingServerDefault::init() (??:0) [5] Main::setup2(unsigned long) (??:0) [6] Main::setup(char const*, int, char**, bool) (??:0) [7] /home/roger/work/godot/bin/godot.linuxbsd.tools.64(main+0x12c) [0x5574f44d0ab5] (??:0) [8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f2cec22d0b3] (??:0) [9] /home/roger/work/godot/bin/godot.linuxbsd.tools.64(_start+0x2e) [0x5574f44d08ce] (??:0) -- END OF BACKTRACE --