Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887593 - x11-libs/libX11-1.8.3: some game and software freeze randomly
Summary: x11-libs/libX11-1.8.3: some game and software freeze randomly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-21 07:17 UTC by ston jia
Modified: 2023-06-23 18:03 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild in my overlay (libX11-1.8.3.ebuild,1.01 KB, text/plain)
2022-12-21 07:17 UTC, ston jia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ston jia 2022-12-21 07:17:12 UTC
Created attachment 844301 [details]
the ebuild in my overlay

When I play csgo on steam,the game randomly freeze
For example:
https://github.com/ValveSoftware/csgo-osx-linux/issues/3105

ArchLinux has applied some patches to solve this problem.
https://github.com/archlinux/svntogit-packages/tree/packages/libx11/trunk

I tested these patches in my overlay and it works ,No freezing!

I hope the maintainer of this ebuild can fix this bug
Comment 1 Ionen Wolkens gentoo-dev 2022-12-21 07:31:46 UTC
Also breaks godot, but godot:4 ebuild already requests <1.8.2-r1 for now notably given at the time thought was the only affected package (more specifically this was caused by the patch added in -r1, and is now part of 1.8.3).

But 1.8.2 was causing issues with firefox so it wasn't much better (that's why it got patched).

Last known good is stable 1.8.1 really, hard to say if [1] isn't going to break different things but it did help for godot when I tried the other day. May be simpler to just mask ~1.8.2 and =1.8.3.

wrt godot, see also:
https://github.com/godotengine/godot/issues/69352
https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/170

[1] https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/176
Comment 2 Jonas Jelten 2022-12-31 01:36:58 UTC
I got many error messages like:
Xlib: sequence lost (0x10000 > 0x...) in reply type 0xc!

my csgo freezes in-game, and only updates the frame buffer when moving the mouse or pressing any key - interesting behavior :)

my fix was downgrading from libX11-1.8.3 to currently stable 1.8.1.
Comment 3 Zentoo 2023-01-02 18:08:55 UTC
I confirm this bug too with firefox: Firefox crash regularly when doing copy/paste with such messages 
"Exiting due to channel error." on stderr.

Other bugzilla related:
https://bugzilla.mozilla.org/show_bug.cgi?id=1801820
https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/168
https://bugs.archlinux.org/task/76669
Comment 4 Larry the Git Cow gentoo-dev 2023-01-17 01:53:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4984fd11b13e48ab6f7c569759c8e40e1dc2281e

commit 4984fd11b13e48ab6f7c569759c8e40e1dc2281e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-17 01:47:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-17 01:47:27 +0000

    x11-libs/libX11: backport 2 regression fixes from master
    
    Should fix bug #886349 but not really clear wrt bug #887593.
    
    Bug: https://bugs.gentoo.org/886349
    Bug: https://bugs.gentoo.org/887593
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libX11-1.8.3-reentrancy-again.patch      | 188 +++++++++++++++++++++
 .../files/libX11-1.8.3-revert-XPutBackEvent.patch  |  57 +++++++
 x11-libs/libX11/libX11-1.8.3-r1.ebuild             |  49 ++++++
 3 files changed, 294 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2023-01-24 23:55:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc64115db583c1547bfaa32fe91199c203af6667

commit fc64115db583c1547bfaa32fe91199c203af6667
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-24 23:53:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-24 23:53:46 +0000

    x11-libs/libX11: drop 1.8.2, 1.8.2-r1, 1.8.3
    
    All of these versions are buggy. 1.8.3-r1 should be okay but use
    with caution for now until more soaking time is had.
    
    Bug: https://bugs.gentoo.org/887593
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/libX11/Manifest               |  1 -
 x11-libs/libX11/libX11-1.8.2-r1.ebuild | 48 ----------------------------------
 x11-libs/libX11/libX11-1.8.2.ebuild    | 44 -------------------------------
 x11-libs/libX11/libX11-1.8.3.ebuild    | 44 -------------------------------
 4 files changed, 137 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb3e1c5ab2b2df77aa6a1afd3b2c2875c4efc537

commit fb3e1c5ab2b2df77aa6a1afd3b2c2875c4efc537
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-24 23:53:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-24 23:53:16 +0000

    x11-libs/libX11: drop 1.8.3 back to ~arch
    
    1.8.3-r1 should have all the needed fixes.
    
    Bug: https://bugs.gentoo.org/891865
    Bug: https://bugs.gentoo.org/887593
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/libX11/libX11-1.8.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2023-02-05 16:45:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b41924d9f565680277cdc91a263532afff86f37

commit 4b41924d9f565680277cdc91a263532afff86f37
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2023-02-05 16:42:04 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-02-05 16:45:16 +0000

    x11-libs/libX11: Version bump to 1.8.4
    
    Bug: https://bugs.gentoo.org/887593
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-libs/libX11/Manifest            |  1 +
 x11-libs/libX11/libX11-1.8.4.ebuild | 44 +++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
Comment 7 Matt Turner gentoo-dev 2023-06-23 18:03:29 UTC
Calling this fixed.