You are not logged in.

#1 2023-03-03 11:53:53

keks
Member
Registered: 2007-07-11
Posts: 42

[SOLVED] mpv crashes

Hi,

I'm using a thinkpad P1 Gen4 with a discrete nvidia GPU and integrated intel GPU. The Intel one I disabled in Bios because I was too lazy to tinker/set up optimus.
Recently, when trying to play any movie or even an mp3 with attached album art mpv crashes and remains as zombie process. Even after killing the parent shell the process remains.

$ uname --kernel-release
6.2.1-arch1-1
$ lspci -v | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation TU117GLM [T1200 Laptop GPU] (rev a1) (prog-if 00 [VGA controller])

# package versions
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards
local/mpv 1:0.35.1-1
    a free, open source, and cross-platform media player

Direct mpv output:

$ mpv Peek\ 2023-02-08\ 12-48.mp4
 (+) Video --vid=1 (*) (h264 1068x350 10.000fps)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
nvc0_screen_create:1154 - Error allocating PGRAPH context for M2MF: -110

Error in dmesg:

[Mar 3 12:38] nouveau 0000:01:00.0: sec2:cmdq: timeout waiting for queue ready
[  +0.000011] nouveau 0000:01:00.0: gr: init failed, -110
...
[Mar 3 12:50] INFO: task mpv/vo:9197 blocked for more than 737 seconds.
[  +0.000009]       Tainted: G        W          6.2.1-arch1-1 #1
[  +0.000004] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  +0.000002] task:mpv/vo          state:D stack:0     pid:9197  ppid:8740   flags:0x00000002
[  +0.000009] Call Trace:
[  +0.000002]  <TASK>
[  +0.000006]  __schedule+0x3b4/0x12e0
[  +0.000014]  ? nvkm_vmm_ptes_get_map+0x2b/0x90 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000343]  ? __pfx_nvkm_vmm_ref_ptes+0x10/0x10 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000305]  ? __pfx_gp100_vmm_pgt_mem+0x10/0x10 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000307]  schedule+0x5e/0xd0
[  +0.000005]  schedule_preempt_disabled+0x15/0x30
[  +0.000005]  __mutex_lock.constprop.0+0x399/0x700
[  +0.000014]  gf100_gr_chan_new+0x27d/0x490 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000335]  nvkm_cgrp_ectx_get+0x145/0x1d0 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000334]  nvkm_cgrp_vctx_get+0xda/0x240 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000354]  nvkm_chan_cctx_get+0x111/0x210 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000298]  nvkm_uchan_object_new+0xd9/0x1f0 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000299]  ? mas_destroy+0x181/0x360
[  +0.000005]  ? mas_wr_modify+0x85/0x350
[  +0.000004]  ? mas_store_prealloc+0x68/0xe0
[  +0.000005]  nvkm_ioctl_new+0x153/0x220 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000187]  ? __pfx_nvkm_uchan_object_new+0x10/0x10 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000320]  ? __pfx_gf100_gr_object_new+0x10/0x10 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000330]  nvkm_ioctl+0xd9/0x180 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000187]  usif_ioctl+0x26e/0x3f0 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000286]  nouveau_drm_ioctl+0xa5/0xb0 [nouveau 3a096b63da5e9b4c67695f2bac175524b56b84d9]
[  +0.000283]  __x64_sys_ioctl+0x91/0xd0
[  +0.000007]  do_syscall_64+0x5c/0x90
[  +0.000008]  ? ksys_mmap_pgoff+0xec/0x1f0
[  +0.000007]  ? do_syscall_64+0x6b/0x90
[  +0.000008]  ? syscall_exit_to_user_mode+0x1b/0x40
[  +0.000010]  ? do_syscall_64+0x6b/0x90
[  +0.000005]  ? do_syscall_64+0x6b/0x90
[  +0.000006]  ? do_syscall_64+0x6b/0x90
[  +0.000005]  ? do_syscall_64+0x6b/0x90
[  +0.000005]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[  +0.000017] RIP: 0033:0x7f81c339453f
[  +0.000052] RSP: 002b:00007f81acffc430 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  +0.000005] RAX: ffffffffffffffda RBX: 00007f81900e1250 RCX: 00007f81c339453f
[  +0.000003] RDX: 00007f81900d3a80 RSI: 00000000c0386447 RDI: 000000000000000c
[  +0.000003] RBP: 00007f81900d3a80 R08: 00007f81900d3930 R09: 00007f81900e1250
[  +0.000002] R10: 0000000000000011 R11: 0000000000000246 R12: 00000000c0386447
[  +0.000003] R13: 000000000000000c R14: 0000000000000000 R15: 00007f81900d3ab8
[  +0.000004]  </TASK>

Any recommendations? smile

Last edited by keks (2023-03-10 12:24:38)

Offline

#2 2023-03-03 12:30:23

seth
Member
Registered: 2012-09-03
Posts: 51,046

Re: [SOLVED] mpv crashes

That's from the nouveau kernel module - you could try the modesetting driver instead of xf86-video-nouveau or, quite frankly, the nvidia blob, which will likely cause you this kind of trouble.

Online

#3 2023-03-10 12:24:05

keks
Member
Registered: 2007-07-11
Posts: 42

Re: [SOLVED] mpv crashes

Thanks seth,

installed nvidia-dkms & Co following the wiki. mpv works again.

Offline

Board footer

Powered by FluxBB