Discussion:
[Wayland-bugs] [Bug 106713] Freezing on fullscreen when using Wayland and/or amdgpu module
b***@freedesktop.org
2018-05-29 15:34:13 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

Bug ID: 106713
Summary: Freezing on fullscreen when using Wayland and/or
amdgpu module
Product: Wayland
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: XWayland
Assignee: wayland-***@lists.freedesktop.org
Reporter: ***@yahoo.com
QA Contact: xorg-***@lists.x.org

This is a relatively complex issue but I have pin-pointed it to a combination
of Wayland (not Xorg) and amdgpu module (not radeon) on R9 290 hardware.

I realize this could be related to the upstream of amdgpu too but it's most
likely a higher level issue than that.

The distro is current debian sid for months.

The issue was reliably reproducible when using Dolphin emulator on XWayland. At
fullscreen it would freeze the rendering; it would either stay frozen
indefinitely, or, even if it would unfreeze, it would only happen after exiting
fullscreen. The issue goes away with a) Xorg b) rarely with specific backends
only (e.g. Vulkan and not OpenGL).

The issue also goes away more easily c) when radeon module is used.

I realize the issue report isn't extremely descriptive in terms of debugging.
Let me know if there is an easy way to get some data right at the point of
those freezes. From my perspective there is no feedback by default; not from
dolphin at least.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-06-25 20:35:34 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #1 from raneon <***@rainer-finke.de> ---
Since the upgrade to xorg 1.20 I have a similar issue. If I start F1 2017
(Vulkan) on Plasma on Wayland in fullscreen mode, the game will just freeze
with a black screen. If I start the game again, it tries to report that crash
to Feral, not sure if they can help as it didn't happen with xorg 1.19.
If I select the window mode in the Feral launcher, the game starts, the intro
video will be shown and I can play.

Arch Linux
Linux 4.17.2 with AMDGPU.DC=1
Plasma 5.13.1
Wayland 1.15
xorg 1.20
Mesa-git with RADV (2018-06-25)
Radeon RX480
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-06-26 07:58:53 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #2 from Michel DÀnzer <***@daenzer.net> ---
Do these fixes help?

https://cgit.freedesktop.org/xorg/xserver/commit/?id=3da999a0390407d512bf784e4faf01482bfff9ea
https://cgit.freedesktop.org/xorg/xserver/commit/?id=4d5950ce14676f970d9de97380929a93948b98f2
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-08-09 20:48:33 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #3 from raneon <***@rainer-finke.de> ---
Just upgrade to xorg 1.20.1 in the hope this release would fix this bug. If I
start F1 2017 (Vulkan) in fullscreen, I can see now the loading screen, so at
least something must have changed. But once the games tries to play the into
video, a black screen will be shown again. If I enforce the window mode via
Kwin (ALT+F3) with a window boarder, the game usually can be started, but
sometimes it crashed and created a report for Feral.

Arch Linux
Linux 4.17.14 with AMDGPU.DC=1
Plasma 5.13.3
Wayland 1.15
xorg 1.20.1
Mesa-git with RADV (2018-08-08)
Radeon RX480
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-08-09 20:55:38 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #4 from raneon <***@rainer-finke.de> ---
Another game where I have this issue is on Witcher 3 in Wine with DXVK
(Vulkan). If the game loads, only a black screen will be shown until I set the
game to window mode with window boarders. Tested as well on Plasma Wayland.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-08-20 20:40:58 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #5 from raneon <***@rainer-finke.de> ---
In Warhammer 40000: Dawn of War III with Vulkan enabled, I had to change as
well to window mode with window boarders to see the output after starting in
the game a new match, but at least I could run the benchmark without any
issues.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-08-20 21:20:49 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #6 from raneon <***@rainer-finke.de> ---
Serious Sam Fusion 2017 (beta) and The Talos Principle are affected as well,
they even crash if I don't set the fast enough to window mode with Kwin (ALT +
F3).
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-16 09:57:51 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #7 from Michel DÀnzer <***@daenzer.net> ---
I can't seem to reproduce this, does it still happen with Mesa >= 18.2.y and
libX11 >= 1.6.7?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-16 10:47:34 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #8 from Michel DÀnzer <***@daenzer.net> ---
I spoke too soon, Talos Principle hangs using Vulkan if "Enable V-Sync" is
enabled in the graphics options. Mesa's x11_manage_fifo_queues hangs in
xcb_wait_for_special_event here:

while (chain->last_present_msc < target_msc) {
xcb_generic_event_t *event =
xcb_wait_for_special_event(chain->conn, chain->special_event);

So it looks like a PresentCompleteNotify event is either lost somewhere, or has
the wrong MSC value.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-19 16:58:03 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

--- Comment #9 from Michel DÀnzer <***@daenzer.net> ---
https://gitlab.freedesktop.org/daenzer/xserver/commits/xwl_present_msc_bump-sync_flip
fixes this for me.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-25 16:00:53 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

Michel DÀnzer <***@daenzer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED

--- Comment #10 from Michel DÀnzer <***@daenzer.net> ---
Thanks for the report, fixed in xserver Git master:

commit ace551d8a2603e37b18237a52f62d627c75d9e2a
Author: Michel DÀnzer <***@amd.com>
Date: Thu Oct 18 17:42:01 2018 +0200

xwayland: Complete "synchronous" Present flips from xwl_present_msc_bump
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freedesktop.org
2018-10-27 14:09:27 UTC
Permalink
https://bugs.freedesktop.org/show_bug.cgi?id=106713

Michel DÀnzer <***@daenzer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@gmail.co
| |m

--- Comment #11 from Michel DÀnzer <***@daenzer.net> ---
*** Bug 107230 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...