Bug#973552: xserver-xorg-video-amdgpu: GPU crashed while doing screencast using ffmpeg with gsequencer

2021-04-06 Thread Bernhard Übelacker

Hello Joël,
I guess I have a similar setup and had similar
lock-ups as your video shows.

I had opened this upstream bug [1].

Either with latest bios updates the situation improved,
or last year I started to do after each cold boot another
warm boot and have the feeling that way this issue does
occur a lot less to not at all.

Could you still reproduce this issue - and does it show
after a reboot too?

Kind regards,
Bernhard

[1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/1293



Bug#973552: xserver-xorg-video-amdgpu: GPU crashed while doing screencast using ffmpeg with gsequencer

2020-11-01 Thread Joël Krähemann
Package: xserver-xorg-video-amdgpu
Version: 19.1.0-2
Severity: normal

Dear Maintainer,

While I was running ffmpeg to do a screencast showing the capabilities of
gsequencer. But while doing so the GPU crashed after some time of playback.

The system was not usable, anymore. I wasn't able to switch to TTY. Only
mouse pointer was still responsive.

I configured my display to run at a lower resolution 1920x1080x60 instead of
the available 3840x2160x30.

Here is my ffmpeg command used:

`ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 -c:v libx264rgb 
-crf 0 -preset ultrafast ags-screencast-001.mkv`

Here is my $HOME/.gsequencer/ags.conf:

[generic]
disable-feature=experimental
autosave-thread=false
segmentation=4/4
engine-mode=deterministic
rt-safe=false
gui-scale=1.0

[soundcard-0]
backend=alsa
capability=playback
buffer-size=1024
pcm-channels=2
format=16
samplerate=44100
device=hw:CARD=PCH,DEV=0

[recall]
auto-sense=false

[thread]
model=multi-threaded
lock-global=ags-thread
lock-parent=ags-recycling-thread
thread-pool-max-unused-threads=4
max-precision=125

I have recorded the screen using my phone:

http://xn--krhemann-1za.com/linux-gpu-corruption.mp4

Since, I have got some functional integration tests for `gsequencer`, there
was the idea about to bisect the upgrade that introduced it.

But first, I try to use an ordinary FullHD monitor and check if the problem
happens with it, too.


-- Package-specific info:
/etc/X11/X does not exist.
/etc/X11/X is not a symlink.
/etc/X11/X is not executable.

VGA-compatible devices on PCI bus:
--
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev 
e7)

/etc/X11/xorg.conf does not exist.

Contents of /etc/X11/xorg.conf.d:
-
total 0

/etc/modprobe.d contains no KMS configuration files.

Kernel version (/proc/version):
---
Linux version 5.6.4-rt1 (root@deb-halo) (gcc version 9.3.0 (Debian 9.3.0-10)) 
#1 SMP PREEMPT_RT Mon Apr 13 16:25:43 CEST 2020

Xorg X server log files on system:
--
-rw-r--r-- 1 joelkraehemann joelkraehemann 664012 Jan  7  2019 
/home/joelkraehemann/.local/share/xorg/Xorg.0.log
-rw-r--r-- 1 root   root10095 Jul  4  2019 
/var/log/Xorg.2.log
-rw-r--r-- 1 root   root   105218 Sep  8  2019 
/var/log/Xorg.1.log
-rw-r--r-- 1 root   root 4940 Dec 16  2019 
/var/log/Xorg.0.0.log
-rw-r--r-- 1 root   root   537795 May 21 04:17 
/var/log/Xorg.1.0.log
-rw-r--r-- 1 root   root49191 Nov  1 19:21 
/var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
-
[66.772] 
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[66.772] Build Operating System: Linux 4.19.0-10-amd64 x86_64 Debian
[66.772] Current Operating System: Linux deb-halo 5.6.4-rt1 #1 SMP 
PREEMPT_RT Mon Apr 13 16:25:43 CEST 2020 x86_64
[66.772] Kernel command line: BOOT_IMAGE=/vmlinuz-5.6.4-rt1 
root=/dev/mapper/deb--halo--vg-root ro threadirqs quiet
[66.772] Build Date: 24 September 2020  09:19:06AM
[66.772] xorg-server 2:1.20.9-2 (https://www.debian.org/support) 
[66.772] Current version of pixman: 0.36.0
[66.772]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[66.772] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[66.773] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Nov  1 18:45:24 
2020
[66.906] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[67.003] (==) No Layout section.  Using the first Screen section.
[67.003] (==) No screen section available. Using defaults.
[67.003] (**) |-->Screen "Default Screen Section" (0)
[67.003] (**) |   |-->Monitor ""
[67.021] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[67.021] (==) Automatically adding devices
[67.021] (==) Automatically enabling devices
[67.021] (==) Automatically adding GPU devices
[67.021] (==) Max clients allowed: 256, resource mask: 0x1f
[67.128] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[67.128]Entry deleted from font path.
[67.179] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[67.179] (==) ModulePath set to "/usr/lib/xorg/modules"
[67.179] (II) The server