New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project or editor crashes randomly from xcb XInitThreads #75308
Comments
I haven't been able to reproduce this so far on Fedora 37 KDE (GeForce RTX 4090 with NVIDIA 525.89.02). What graphics card model, driver version and desktop environment are you using? Edit: As of November 2023, I've started to be able to reproduce this issue on the same setup as mentioned above (with Fedora 38 and then 39). |
Oh right, I forgot about GPU-related info. I have an AMD 7900 XT, running on the open-source amdgpu drivers with Mesa 22.3.5 (amdgpu version is "kernel"). |
Saw this happening (only once) on a totally different config: |
I have this too, again. Seems very reminiscent of #69352
Godot: v4.0.1.stable.arch_linux |
Manjaro kernel version: 6.1.22-1 Managed to reproduce it when connected to gdb, adding backtrace as the attachment Forgot to mention Godot version: custom build based on 4.0.2 stable |
Seeing the same thing on Manjaro here, I have integrated Intel graphics (Intel i7-1165G7). Gnome on Wayland. Common factor seems to be Arch based distros? Full backtrace:
|
Having the same issue, Manjaro with Hyprland / Wayland here. Also Godot 4.0.1 stable, libx11 v1.8.4-1, intel integrated graphics. |
Can confirm on Manjaro with kernel 6.1.23, X11 (no wayland) with libx11 1.8.4-1 as well, intel integrated, godot 4.1 compiled from source (from a fork not far from master, but judging from this report the issue is in godot, I could confirm if necessary), backtrace is exactly the same as @Eraph above. Also, I noticed this is with .NET 7.0.3, while if I download the official stable godot mono from godotengine.org (not from Manjaro's pacman) it never crashes this way, and it's on .NET6, not sure if it matters. Any other info I could provide to help debug this? |
Same issue.
|
It seems that the problem no longer occurs in version 1.8.5 (Arch Linux official extra repository). UPD. The problem appears again on libX11 1.8.7 |
Just had this happen swaywm
|
I'm getting the same error, with a recent libX11 and non-Arch Linux Godot Engine v4.1.1.stable.custom_build Void Linux
|
Confirmed on Fedora running KDE with Mesa Intel® Xe Graphics. |
Can also confirm that a downgrade to libX11 1.8.4 fixed the issue. I already thought that godot is somewhat unstable but now even 4.2 beta1 works like a charm :-) |
I am having similar crashes involving Ubuntu 23.04 The error messages are as follow:
or
or
It also sometimes crashes without an error message. |
Keeps happening here all the time, it makes editor basically unusable due to how often it happens. It's really frustrating to the point of me not wanting to work on my project anymore.
|
On Ubuntu 23.04, all of Godot 4.1.1, 4.1.2, 4.1.3 crash about three times per hour. If I downgrade xserver-xorg-core from 2:21.1.7-1ubuntu3.1 to 2:21.1.7-1ubuntu3, then the crashes happen only once every few days. Edit: fixed the version numbers |
Single window mode also helps alot. |
This is becoming more critical. Fedora 39 does not have an option to downgrade libX11 from libX11-1.8.7-1. That means Godot in any form becomes unusable in Fedora 39 and other current distros. |
Please report the issue to https://gitlab.freedesktop.org/xorg/lib/libx11, it should not regress and break existing applications. Even if we could find a workaround in Godot to not trigger whatever makes libx11 fail, all existing Godot releases and published games would still be broken. So libx11 needs to stop breaking Godot every other patch release. |
Reported: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/199 I hope we can get a fix before Fedora 40. |
Forgive my ignorance here, but given |
Yep, now I have a reason not to feel bad about catching myself subconsciously spamming CTRL+S. Milestone shows 4.3, would the fix last or do you guys think an update gonna break it again soon after? Might just downgrade libx11 if it gets really annoying but I'm kinda too busy to troubleshoot stuff rn if doing so happens to break any of my other packages. ;-; |
@Lamby777 Upgrading libx11 works, too. I compiled and installed the latest libx11 from master on fedora 39 by doing https://gitlab.freedesktop.org/xorg/lib/libx11/-/tree/master
and then reboot and I haven't had a crash yet. |
Gonna share I'm experiencing this regularly on my Manjaro KDE machine.
Currently working with Godot 4.2-Stable running it from the command line so I get more interesting details. Error from terminal:
|
System info...
Error in terminal...
|
That's weird, as the latest So there's a difference between the Fedora package for libX11-1.8.7-1.fc39 and the one you compiled locally. It can be a different set of install dependencies so that your local builds adds or removes a feature, or this patch that Fedora is chugging along https://src.fedoraproject.org/rpms/libX11/blob/rawhide/f/dont-forward-keycode-0.patch, or any of the other custom tweaks in their .spec file, though I don't see much that sounds relevant: https://src.fedoraproject.org/rpms/libX11/blob/rawhide/f/libX11.spec Either way, I suggest also opening a Fedora bug report, as the upstream libX11 report isn't getting any traction and we now have evidence that a self-compiled libx11 performs differently. |
|
Possible CFLAGS are involved and some UB is causing this? aka when you built libX11 manually from master I'd assume you didn't use the same (possibly just a plain -O2). I don't really keep up with fedora, but believe they use LTO nowadays for one? (Edit: as for autoconf options, they don't pass anything notable I can see, the keycode patch sounds harmless too -- not that I looked too closely) Haven't run into crashes with 1.8.7 myself on Gentoo, albeit I may not use it enough to run into these (I just test godot a bit for packaging, haven't got bug reports either way). |
@ionenwks That's a good call. Here are the build flags used on Fedora (as of Fedora 38 on my VM, but it's likely similar on F39).
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Just another confirmation: After having crashes every 10 minutes, i'm using godot editor now for almost 4 hours without any issues after compiling libx11 by myself. |
(FWIW, this isn't RedHat-specific: I just got it with Debian, using libx11 1.8.7-1. FWIW I'm running Wayland.) The code in But consider the following rule (from
So we would expect the call to So it seems possible that there's a race there. I have only read the code, so this could be totally bogus. But it seems plausible. |
it's been annoying me so much that i finally decided to go looking for this thread again... :P Not that compiling your own version doesn't work; that I don't know. The actual compiling part doesn't work. I tried |
At least the error message apologizes, which I found somewhat amusing. |
I'll add another data point I guess, got the same crash on two different machines: Happened on both machines at around twice per hour. Wasn't able to pick up on anything specifically that caused them. |
Godot version
v4.1.dev.custom_build [0291fcd]
System information
Linux Manjaro, kernel 6.1.19, X11
Issue description
The editor or the running project sometimes crashes with the following error:
Crashes are more common while a project is running, but the editor also crashed because of this a couple of times over the past week or so.
I am not using any thread-related functions in my project, physics/rendering are not threaded, the project I'm working on as this happens is a simple GUI-based game.
Steps to reproduce
This seems to happen fairly randomly.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: