Server Version#: v1.40.5.8921-836b34c27
Player Version#: Various (Not relevant)
I’ve recently added an Nvidia Quadro P2000 to my Linux server. I’m running Ubuntu and have nvidia drivers 550.107.02 installed. I’ve enabled hardware transcoding, and often (not always) when a client tried to play something using transcoding, the server will crash. It writes a minidump and uploads it.
I’ve opened the minidump with windbg, and the best I can figure out is it’s crashing in libnvcuvid.so.1
It does work sometimes, and the times where it does work, the client can stream the whole movie/episode without further issue.
I’ve also compiled ffmpeg with nvenc support, and I can run ffmpeg transcoding as many times as I want with no issues. There’s no clues I can see in the logs. Here’s what the end of a log typically looks like:
Sep 02, 2024 14:36:57.036 [140637676071736] DEBUG - [Req#5464/Transcode] Codecs: hardware transcoding: testing API nvdec for device 'pci:0000:02:00.0' (GP106GL [Quadro P2000])
Sep 02, 2024 14:36:57.099 [140637663415096] DEBUG - [Req#546e/Transcode] Codecs: Testing with profile 'High'
Sep 02, 2024 14:36:57.158 [140637239950136] VERBOSE - [Req#547a/Transcode] [FFMPEG] - Loaded Nvenc version 12.2
Sep 02, 2024 14:36:57.158 [140637239950136] VERBOSE - [Req#547a/Transcode] [FFMPEG] - Nvenc initialized successfully
Sep 02, 2024 14:36:57.200 [140637235555128] VERBOSE - [Req#54a1/Transcode] [FFMPEG] - Nvenc unloaded
Sep 02, 2024 14:36:57.414 [140638037535544] VERBOSE - We didn't receive any data from 192.168.111.149:52352 in time, dropping connection.
Sep 02, 2024 14:36:57.920 [140638035426104] VERBOSE - WebSocket: processed 1 frame(s)
Sep 02, 2024 14:36:58.060 [140637650758456] DEBUG - [Req#5477/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Sep 02, 2024 14:36:58.060 [140637650758456] VERBOSE - [Req#5477/Transcode] [FFMPEG] - Rescanning for external libs: '/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/27d3929-731e70e17b964ba367f4016a-linux-x86_64/'
Sep 02, 2024 14:36:58.061 [140637650758456] DEBUG - [Req#5477/Transcode] Codecs: hardware transcoding: testing API nvdec for device 'pci:0000:02:00.0' (GP106GL [Quadro P2000])
Sep 02, 2024 14:36:58.145 [140637663415096] DEBUG - [Req#546e/Transcode] Codecs: testing h264_nvenc (encoder)
Sep 02, 2024 14:36:58.145 [140637663415096] DEBUG - [Req#546e/Transcode] Codecs: hardware transcoding: testing API nvenc for device 'pci:0000:02:00.0' (GP106GL [Quadro P2000])
Sep 02, 2024 14:36:58.146 [140637676071736] DEBUG - [Req#5464/Transcode] Codecs: Testing with profile 'High'
Sep 02, 2024 14:36:58.179 [140637667633976] VERBOSE - [Req#546b/Transcode] [FFMPEG] - Loaded Nvenc version 12.2
Sep 02, 2024 14:36:58.179 [140637667633976] VERBOSE - [Req#546b/Transcode] [FFMPEG] - Nvenc initialized successfully
Sep 02, 2024 14:36:58.410 [140638037535544] VERBOSE - Didn't receive a request from 192.168.111.149:52352: stream truncated
Sep 02, 2024 14:36:59.570 [140637135919928] VERBOSE - [Req#54bc/Transcode] [FFMPEG] - Nvenc unloaded
Sep 02, 2024 14:36:59.628 [140638035426104] VERBOSE - WebSocket: processed 1 frame(s)
Sep 02, 2024 14:36:59.671 [140637231336248] VERBOSE - [Req#54b9/Transcode] [FFMPEG] - Loaded Nvenc version 12.2
Sep 02, 2024 14:36:59.671 [140637231336248] VERBOSE - [Req#54b9/Transcode] [FFMPEG] - Nvenc initialized successfully
Sep 02, 2024 14:36:59.716 [140637235555128] DEBUG - [Req#54a1/Transcode] Codecs: testing h264 (decoder) with hwdevice nvdec
Sep 02, 2024 14:36:59.716 [140637235555128] VERBOSE - [Req#54a1/Transcode] [FFMPEG] - Rescanning for external libs: '/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/27d3929-731e70e17b964ba367f4016a-linux-x86_64/'
Sep 02, 2024 14:36:59.718 [140637235555128] DEBUG - [Req#54a1/Transcode] Codecs: hardware transcoding: testing API nvdec for device 'pci:0000:02:00.0' (GP106GL [Quadro P2000])