Skip to contentSkip to conversation

Some games hang while loading when compositing is shut off or absent

Bug 101683 [email protected] 1 participant 8 messages Jul 4, 2017 – Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=101683

Bug ID: 101683
Summary: Some games hang while loading when compositing is shut
off or absent
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 132420
--> https://bugs.freedesktop.org/attachment.cgi?id=132420&action=edit
glxinfo output

Recently, several games have been lock up during loading at one point or another. You can get the game to continue loading by hitting ALT-TAB or going into something like the Activites screen in Gnome Shell. It seems that this only happens when compositing is absent or shut off. Also, as far as I have been able to tell, this only when the game is using an older version of OpenGL.

Card: RX 480

Driver: Mesa 17.1.3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

--- Comment #2 from Shmerl <[email protected]> --- Please list some examples of games / engines.

I encountered something like this with Jedi Academy. See:
https://github.com/JACoders/OpenJK/issues/921

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

Logan Hanning <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|git |17.1

--- Comment #3 from Logan Hanning <[email protected]> --- Games/engines this happens in:

Arx Fatalix running in Arx Libertatis

Warzone2100

OpenJK (as mentioned)

ResidualVM

Ur Quan Masters

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

--- Comment #4 from Michel Dänzer <[email protected]> ---
I'm able to reproduce the problem with Warzone2100, looks like a DRI3 related issue. One of the DRI3 fixes Thomas Hellström has been working on might help. Meanwhile, you can work around that one by disabling DRI3 for the game:

LIBGL_DRI3_DISABLE=1 warzone2100

AFAICT this already happened with Mesa 13 though, so you might be running into different issues with other games. When a game hangs, attach gdb to its process, run

thread apply all bt full

and attach the output here.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

--- Comment #5 from Logan Hanning <[email protected]> --- (In reply to Michel Dänzer from comment #4)

Quoted 6 lines

I'm able to reproduce the problem with Warzone2100, looks like a DRI3 related issue. One of the DRI3 fixes Thomas Hellström has been working on might help. Meanwhile, you can work around that one by disabling DRI3 for the game:

LIBGL_DRI3_DISABLE=1 warzone2100

Disabling DRI3 also clears up the problem with Arx Libertatis. I'll be able to test more in depth later.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

--- Comment #6 from Michel Dänzer <[email protected]> ---
The patch I just attached to bug 97957 fixes the Warzone2100 hangs for me as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101683

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Michel Dänzer <[email protected]> ---
Thanks for the report, should be at least mostly fixed in Git. If there's still an issue with a game, please file a new report for that.

Module: Mesa
Branch: master
Commit: 81fb1547772d42c527318837d4207ecdb6899e5d
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=81fb1547772d42c527318837d4207ecdb6899e5d

Author: Thomas Hellstrom <[email protected]>
Date:   Tue Jul  4 12:55:15 2017 +0900

loader/dri3: Use dri3_find_back in loader_dri3_swap_buffers_msc

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel