Skip to content
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

Arbitrary crashes (seemingly) due to Point2i method [Linux] #82864

Open
weidengeist opened this issue Oct 5, 2023 · 7 comments
Open

Arbitrary crashes (seemingly) due to Point2i method [Linux] #82864

weidengeist opened this issue Oct 5, 2023 · 7 comments

Comments

@weidengeist
Copy link

Godot version

Godot Engine v4.1.stable.official.970459615

System information

Godot v4.1.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1050 Ti (nvidia; 535.104.05) - Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz (8 Threads)

Issue description

At least when using the debug mode (play the scene by pressing F5; no exported project), the scene seems to crash randomly even when there is no interaction with the window. Most recently, the window closed/crashed when I was on the phone and didn’t do anything that I am aware of. As I have encountered this issue multiple times during the recent maybe two weeks, I have started Godot with the terminal and can provide a crash log:

ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199394
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199399
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199404
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199409
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199414
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199419
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199424
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199429
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199434
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199439
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199444
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199449
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199454
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199459
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199464
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199469
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 199474
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
X connection to :0.0 broken (explicit kill or server shutdown).
ERROR: BUG: Unreferenced static string to 0: Physics2DConstraintSolveIslands
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: Physics2DConstraintSetup
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: Physics3DConstraintSolveIslands
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: Physics3DConstraintSetup
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: Variant
   at: unref (core/string/string_name.cpp:129)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketLargeE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools12BucketMediumE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketSmallE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: BUG: Unreferenced static string to 0: GodotPhysicsDirectSpaceState2D
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: GodotPhysicsDirectSpaceState3D
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: interface_added
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: frame_pre_draw
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: frame_post_draw
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: SceneReplicationInterface
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: process_frame
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: physics_frame
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: joy_connection_changed
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: bus_layout_changed
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: SceneCacheInterface
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: SceneRPCInterface
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: fallback_changed
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: child_entered_tree
   at: unref (core/string/string_name.cpp:131)

Before I encountered this issue the first time, I did a full system update, including graphics card drivers, of course, and switched to the most recent Godot version (I have used 4.0 before), so I can’t exclude a graphics driver issue here that is not handled by Godot. I hope that the method Point2i pinpointed by the log above will narrow it down enough to find the reason.

Steps to reproduce

None, unfortunately. Seems to happen randomly and without doing anything.

Minimal reproduction project

None.

@Calinou
Copy link
Member

Calinou commented Oct 5, 2023

Which desktop environment and window manager are you using?

@weidengeist
Copy link
Author

I am using the awesomeWM desktop/WM, which has received its latest update on 28 January 2019, so most probably this won’t be the cause of the issue.

@weidengeist
Copy link
Author

In some cases, I receive the error that is documented in #75308:

ERROR: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 2263838
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:869)
[xcb] Unknown sequence number while processing queue
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
Godot_v4.1-stable_linux.x86_64: xcb_io.c:278: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

It looks like this issue is indeed related to a regression in libX11 which affects other applications besides Godot as well, e.g. Gamescope and vkQuake. I’m currently on libX11 1.8.6-1 and will have to test if a prior version fixes the issues with Godot.

As it has been stated on the Gitlab issue tracker of libX11, this is quite a severe issue, as it will likely also affect all commercial games exported with Godot. Hopefully, this X11 issue will be fixed soon.

@Zireael07
Copy link
Contributor

In this case, Point2i is a red herring and it looks related to the xcb issue?

@weidengeist
Copy link
Author

It is indeed related to the xcb issue. However, I wouldn’t exclude a link to DisplayServerX11::screen_get_position returning a Point2i yet.

@felipefacundes
Copy link

I've been having this same problem since version 4.0 and now in 4.1.3, out of nowhere the game screen closes and shows this same message:

E 0:00:24:0066 default_window_error_handler: Unhandled XServer error: BadImplementation (server does not implement operation)
Major opcode of failed request: 20
Serial number of failed request: 0
Current serial number in output stream: 15371
<C++ Source> platform/linuxbsd/x11/display_server_x11.cpp:869 @ default_window_error_handler()

E 0:00:24:0085 default_window_error_handler: Unhandled XServer error: BadImplementation (server does not implement operation)
Major opcode of failed request: 20
Serial number of failed request: 0
Current serial number in output stream: 15380
<C++ Source> platform/linuxbsd/x11/display_server_x11.cpp:869 @ default_window_error_handler()

@em-s-h
Copy link

em-s-h commented Apr 9, 2024

I've also started to see this error in Godot v4.2.1.stable, error message:

E 0:00:42:0525   default_window_error_handler: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 27564
  <C++ Source>   platform/linuxbsd/x11/display_server_x11.cpp:1108 @ default_window_error_handler()

E 0:00:42:0525   default_window_error_handler: Unhandled XServer error: BadImplementation (server does not implement operation)
   Major opcode of failed request: 20
   Serial number of failed request: 0
   Current serial number in output stream: 27565
  <C++ Source>   platform/linuxbsd/x11/display_server_x11.cpp:1108 @ default_window_error_handler()

System Info:

Godot v4.2.1.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 05 Apr 2024 00:14:23 +0000 - Wayland - Vulkan (Forward+) - integrated Intel(R) HD Graphics 5500 (BDW GT2) () - Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 Threads)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants