X freezes after seeking x264 file in VLC on Linux v4.14.8 with NVIDIA v387.34-14 with GeForce GTX 960

Hi!

I’ll follow up with the full NVIDIA debug log once I’ve gone through its contents, but looking to see if anyone else has experienced this issue. Have had the card for a year and its been working fine under Windows 7. On Linux, however, seeking in VLC seems to freeze X (assumed because windows aren’t responsive and keyboard events get queued). SSHing in and kill -9’ing VLC clears it right up. This on Arch Linux with everything up to date and has been the case for 2 months now.

Kernel logs only a single error 31 when it happens:

[Tue Jan  2 20:52:24 2018] NVRM: Xid (PCI:0000:0e:00): 31, Ch 00000039, engmask 00008100, intr 10000000

VLC, however, is slightly more verbose:

VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  387.34  Tue Nov 21 02:08:49 PST 2017
VDPAU nvidia: Error detected 0 8273
VDPAU nvidia: Backtrace:
--: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f823d9c2000] DSO load base
00: /usr/lib/vdpau/libvdpau_nvidia.so.1 [0x7f823d9cdd23]
VDPAU nvidia: Version: NVIDIA VDPAU Driver Shared Library  387.34  Tue Nov 21 02:08:49 PST 2017
[...]
[00007f8248c4b6f8] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  387.34  Tue Nov 21 02:08:49 PST 2017 for hardware decoding.
Failed to idle DMA.
Failed to idle DMA.

It’s fairly consistent, even though sometimes takes a minute of aggressive seeking in VLC to freeze it up.

Thanks in advance!

Seen also with MythTV’s mythfrontend when exiting video playback, same freeze behavior as OP.

nvidia driver is 384.111
Linux dad 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

DMESG

[ 5905.145941] NVRM: GPU at PCI:0000:03:00: GPU-2eexyz46-12de-xyz6-xyz0-xzy86a572zxy
[ 5905.145950] NVRM: GPU Board Serial Number: 0424273848392
[ 5905.145953] NVRM: Xid (PCI:0000:03:00): 31, Ch 0000001a, engmask 00008100, intr 10000000
[ 6228.021835] NVRM: Xid (PCI:0000:03:00): 31, Ch 0000002a, engmask 00008100, intr 10000000

Mythfrontend

2018-01-30 00:24:24.770549 I  TV::HandleStateChange(): Changing from None to WatchingVideo
2018-01-30 00:24:24.773573 I  TV::HandleStateChange(): Main UI disabled.
2018-01-30 00:24:24.773608 I  TV::StartTV(): Entering main playback loop.
2018-01-30 00:24:24.774386 W  ScreenSaverDBus: Failed to disable screensaver: Method "Inhibit" with signature "ss" on interface org.gnome.SessionManager" doesn't exist
2018-01-30 00:24:24.774765 I  ScreenSaverX11Private: DPMS Deactivated 1
2018-01-30 00:24:24.777320 I  VidOutVDPAU: Added 2 new buffers. New buffer size 16 (4 decode and 12 process)
2018-01-30 00:24:24.795812 I  VDPAU: Added 2 output surfaces (total 4, max 4)
2018-01-30 00:24:27.803937 I  TV::HandleStateChange(): Attempting to change from WatchingVideo to None
[b]Failed to idle DMA.
Failed to idle DMA.
Failed to idle DMA.
Failed to idle DMA.
Failed to idle DMA.
Failed to idle DMA.[/b]
2018-01-30 00:25:01.834730 I  VDPAU Painter: Clearing VDPAU painter cache.
<b>Failed to idle DMA.</b>
Killed

https://forum.mythtv.org/viewtopic.php?f=36&t=2486