You are not logged in.

#1 2019-02-24 23:12:40

Bluemango
Member
Registered: 2019-02-24
Posts: 5

Latest nvidia driver - cuda error (mpv)

Today after installing the nvidia driver (version 418.43) I get no hardware decoding and this error using mpv:

[vo/gpu/cuda-nvdec] cu->cuGLGetDevices(&device_count, &display_dev, 1, CU_GL_DEVICE_LIST_ALL) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vo/gpu/cuda-nvdec] cu->cuCtxPopCurrent(&dummy) failed -> CUDA_ERROR_INVALID_CONTEXT: invalid device context

All output:

Playing: Videos/Star Wars - The Last Jedi - Teaser.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
 (+) Video --vid=1 (*) (h264 1920x816 23.961fps)
     Video --vid=2 [P] (mjpeg)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
File tags:
 Artist: Lucasfilm
 Date: 2017
 Genre: Trailer
 Title: Star Wars: The Last Jedi
[vo/gpu/cuda-nvdec] cu->cuGLGetDevices(&device_count, &display_dev, 1, CU_GL_DEVICE_LIST_ALL) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vo/gpu/cuda-nvdec] cu->cuCtxPopCurrent(&dummy) failed -> CUDA_ERROR_INVALID_CONTEXT: invalid device context
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x816 yuv420p
/etc/mpv/mpv.conf
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
vo=gpu
hwdec=cuda
#hwdec-codecs=all

I didn't think it would be any problem updating the nvidia driver. I was hoping for some improvement to be honest. Am I forgetting something? Am I doing something wrong?

The update information said something about this and that one should run the nvidia-modprobe command, but nvidia-modprobe don't seam to do anything on my system.

Last edited by Bluemango (2019-02-25 02:40:10)

Offline

#2 2019-02-24 23:18:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Latest nvidia driver - cuda error (mpv)

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-02-24 23:30:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Latest nvidia driver - cuda error (mpv)

Welcome to the Arch Linux forums.  Could you possibly try this with another video and see if you still have problems?  I don't expect it to be any different, but ....

I am a bit uncomfortable with the video title and that is is an mp4, presumably lacking DRM.  We do not support efforts to circumvent copyright, nor do we want to provide any indication that we do.  When you have a different file, we will be glad to try to help.  Thanks for your understanding.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2019-02-24 23:39:27

Bluemango
Member
Registered: 2019-02-24
Posts: 5

Re: Latest nvidia driver - cuda error (mpv)

?

Last edited by Bluemango (2019-02-24 23:49:58)

Offline

#5 2019-02-24 23:48:48

Bluemango
Member
Registered: 2019-02-24
Posts: 5

Re: Latest nvidia driver - cuda error (mpv)

ewaller wrote:

Welcome to the Arch Linux forums.  Could you possibly try this with another video and see if you still have problems?  I don't expect it to be any different, but ....

I am a bit uncomfortable with the video title and that is is an mp4, presumably lacking DRM.  We do not support efforts to circumvent copyright, nor do we want to provide any indication that we do.  When you have a different file, we will be glad to try to help.  Thanks for your understanding.

Thank you for the warm welcoming. It's a movie trailer video, no DRM.

Last edited by Bluemango (2019-02-24 23:51:29)

Offline

#6 2019-02-25 00:14:46

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Latest nvidia driver - cuda error (mpv)

Great!  Carry on smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2019-02-25 02:18:30

Bluemango
Member
Registered: 2019-02-24
Posts: 5

Re: Latest nvidia driver - cuda error (mpv)

UPDATE

I now have hardware decoding working (did two changes in mpv.conf); it will use nvdec-copy, but the cuda error message is still there.

/etc/mpv/mpv.conf
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
gpu-api=auto
vo=gpu
hwdec=auto
hwdec-codecs=all

mpv output:

laying: Videos/Star Wars - The Last Jedi - Teaser.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set
 (+) Video --vid=1 (*) (h264 1920x816 23.961fps)
     Video --vid=2 [P] (mjpeg)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
File tags:
 Artist: Lucasfilm
 Date: 2017
 Genre: Trailer
 Title: Star Wars: The Last Jedi
[vo/gpu/cuda-nvdec] cu->cuGLGetDevices(&device_count, &display_dev, 1, CU_GL_DEVICE_LIST_ALL) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vo/gpu/cuda-nvdec] cu->cuCtxPopCurrent(&dummy) failed -> CUDA_ERROR_INVALID_CONTEXT: invalid device context
Using hardware decoding (nvdec-copy).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x816 nv12 

nvdec-copy is not the same as the cuda (nvdec-copy don't seam to decode vp9), but will the cuda error cause some other problem that I don't know about? Or can one let it be?

Last edited by Bluemango (2019-02-25 02:44:10)

Offline

#8 2019-02-28 08:36:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: Latest nvidia driver - cuda error (mpv)

If https://bbs.archlinux.org/viewtopic.php … 2#p1833612 is anything to go by, your are currently simply not actually running on your nvidia card, make sure you monitor is plugged in the proper output and intel disabled.

Offline

Board footer

Powered by FluxBB