godotengine / godot

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

X11 error bad request #44342

Closed QbieShay closed 3 months ago

QbieShay commented 3 years ago

Godot version: 4.0 12/12/2020 0762484473c1330c5d524d5cc3644d5e2b2e557c

OS/device including version: Linux 5.9.13-arch1-1 i3 window manager

Issue description: Godot 4.0 silently closes with this error:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  182781
  Current serial number in output stream:  182782

Steps to reproduce: I didn't figure out what triggers it

pouleyKetchoupp commented 3 years ago

Did it happen while a project was open, or is it when the editor starts?

QbieShay commented 3 years ago

It happened when the project was open. My FBX files keep reimporting as well, maybe it's related?

RevoluPowered commented 3 years ago
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  182781
  Current serial number in output stream:  182782

can you try loading gnome and let us know if it happens? libXft is probably to blame

3top1a commented 3 years ago

Happens to me too, no idea why tho

3top1a commented 3 years ago

From the name, you can guess this happens when you bring focus to the window. For some reason, it errors out.

akien-mga commented 2 years ago

Is this still reproducible? Given the age of the issue and the lack of duplicates I guess not, but just in case :)

3top1a commented 2 years ago

Is this still reproducible? Given the age of the issue and the lack of duplicates I guess not, but just in case :)

I haven't tested 4.0 in a long time, but probably will soon.

3top1a commented 2 years ago

Is this still reproducible? Given the age of the issue and the lack of duplicates I guess not, but just in case :)

I tried compiling eb6ebdc4aff88de8da4217dfe1c4f226a1fd2132, and here's the stuff I found out:

3top1a commented 2 years ago

I have installed libxft again, and focusing the import window and then any other window crashed the editor. This has also happened with libxft-bgra

lemtea8 commented 9 months ago

This is still reproducible on latest 4.2.1 when I tried to open project with integrated gpu (UHD 630), fedora 38, KDE 5.27.9 The error for me is:

X Error of failed request:  BadMatch (invalid parameter attributes)                                                        
  Major opcode of failed request:  149 ()
  Minor opcode of failed request:  4
  Serial number of failed request:  192
  Current serial number in output stream:  231

Full log (with --verbose):

``` Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org TextServer: Added interface "Dummy" TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)" Xshape 1.1 detected. Xinerama 1.1 detected. Xrandr 1.6 detected. Xrender 0.11 detected. Xinput 2.2 detected. XInput: Refreshing devices. XInput: No touch devices found. Detecting GPUs, set DRI_PRIME in the environment to override GPU detection logic. Only one GPU found, using default. ScreenSaver: DBus 1.14.10 detected. PortalDesktop: DBus 1.14.10 detected. Using "default" pen tablet driver... Shader 'CanvasSdfShaderGLES3' SHA256: 53494399b7dcef64290c02e71014345a8945579c5e0f2b4ddc0370fe88017425 Shader 'SkeletonShaderGLES3' SHA256: 5740513903e90ff36aeca8604faa75aed0771e773ff6db0955ba34b4d62021b6 Shader 'ParticlesShaderGLES3' SHA256: bf07cd51eb5a30a7398ffa5108c6c05e7fd2c8b3bba32fecfabc90d526fa1e08 Shader 'ParticlesCopyShaderGLES3' SHA256: 53d820d1dba2dae1cc8a954d600f6e5b09dc6c870cbaca1f187c9b58349b8d65 Shader 'CopyShaderGLES3' SHA256: 9e862cf0b58983eb66a0c55a6590963f31ef72d2b8571437607f06b8a245e541 Shader 'CanvasShaderGLES3' SHA256: fa48892465359cb32bc243f7f6f00a10a7396cb405fc79509547141d5a7d48fa Shader 'CanvasOcclusionShaderGLES3' SHA256: cf9c3aab3bae5a8c78ee67907525805dbcf0545b38f7bad058c0545f09984835 Shader 'SceneShaderGLES3' SHA256: f2f0cfa5537a7249edb72551ad9898162add56141db537cb40d06fb117561e38 Shader 'SkyShaderGLES3' SHA256: 5369650a2231437c303a0f69dae44c6a50a5b85f79cb154d1f32335d134a61ee Shader 'CubemapFilterShaderGLES3' SHA256: 452cc68d9c65606efbd067291715734f6368016857fd78ebb2c37f9f71855749 OpenGL API 3.3.0 NVIDIA 545.29.06 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce GTX 1660 Ti JoypadLinux: udev enabled and loaded successfully. PulseAudio 16.1.0 detected. PulseAudio: context other PulseAudio: context other PulseAudio: context other PulseAudio: context ready PulseAudio: Detecting channels for device: alsa_output.pci-0000_00_1f.3.analog-stereo PulseAudio: detected 2 output channels PulseAudio: audio buffer frames: 512 calculated output latency: 11ms TextServer: Primary interface set to: "ICU / HarfBuzz / Graphite (Built-in)". CORE API HASH: 915626997 EDITOR API HASH: 1313472085 EditorSettings: Load OK! Project is missing: /home/lemtea/Documents/Dev/godot/godot4-3d-reversi/godot-3d-reversi/project.godot Loaded system CA certificates EditorSettings: Save OK! Editing project: /home/lemtea/Documents/Dev/godot/reversi Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org TextServer: Added interface "Dummy" EditorSettings: Save OK! XR: Clearing primary interface XR: Removed interface "Native mobile" XR: Removed interface "OpenXR" PulseAudio: context terminated TextServer: Added interface "ICU / HarfBuzz / Graphite (Built-in)" Xshape 1.1 detected. Xinerama 1.1 detected. Xrandr 1.6 detected. Xrender 0.11 detected. Xinput 2.2 detected. XInput: Refreshing devices. XInput: No touch devices found. Vulkan devices: #0: Intel Intel(R) UHD Graphics 630 (CFL GT2) - Supported, Integrated #1: NVIDIA NVIDIA GeForce GTX 1660 Ti - Supported, Discrete #2: Unknown llvmpipe (LLVM 16.0.6, 256 bits) - Supported, CPU Vulkan API 1.3.246 - Forward Mobile - Using Vulkan Device #0: Intel - Intel(R) UHD Graphics 630 (CFL GT2) Optional extension VK_KHR_fragment_shading_rate not found Optional extension VK_GOOGLE_display_timing not found - Vulkan Variable Rate Shading not supported - Vulkan multiview supported: max view count: 16 max instances: 268435455 - Vulkan subgroup: size: 32 min size: 8 max size: 32 stages: STAGE_VERTEX, STAGE_TESSELLATION_CONTROL, STAGE_TESSELLATION_EVALUATION, STAGE_GEOMETRY, STAGE_FRAGMENT, STAGE_COMPUTE supported ops: FEATURE_BASIC, FEATURE_VOTE, FEATURE_ARITHMETIC, FEATURE_BALLOT, FEATURE_SHUFFLE, FEATURE_SHUFFLE_RELATIVE, FEATURE_CLUSTERED, FEATURE_QUAD quad operations in all stages X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 149 () Minor opcode of failed request: 4 Serial number of failed request: 192 Current serial number in output stream: 231 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: TextServerDummy at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: IPUnix at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: ResourceFormatImporterSaver at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: MovieWriterMJPEG at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: interface_added at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: TextServerAdvanced at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: ImageFormatLoader at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: ResourceFormatSaver at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: GDScriptEditorTranslationParserPlugin at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: MovieWriterPNGWAV at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: ScriptLanguage at: unref (core/string/string_name.cpp:129) ERROR: BUG: Unreferenced static string to 0: ResourceFormatLoader at: unref (core/string/string_name.cpp:129) ```
akien-mga commented 3 months ago

The original bug report is quite old and might have been fixed either in Godot or in libX11 a while ago.

We have other, more recent bug reports about X11 related crashes though, which are mostly bugs in libX11 we haven't found how to work around yet.