My hardware transcoding stopped working too, I only just got around to troubleshooting this issue. It was working just fine before I updated.
Jun 09, 2021 11:08:41.053 [0x7f47d71a1b38] DEBUG - BPQ: [Starting] -> [Processing]
Jun 09, 2021 11:08:41.057 [0x7f47d71a1b38] DEBUG - BPQ: generating queue items from 3 generator(s)
Jun 09, 2021 11:08:41.061 [0x7f47d71a1b38] DEBUG - Sync: updating status for sync list 45849353, sync item 44667786, generator 606
Jun 09, 2021 11:08:41.068 [0x7f47d71a1b38] DEBUG - Versions: updating status for generator 65
Jun 09, 2021 11:08:41.085 [0x7f47d71a1b38] DEBUG - Versions: updating status for generator 370
Jun 09, 2021 11:08:41.095 [0x7f47d71a1b38] DEBUG - BPQ: generated 1 item(s) for queue
Jun 09, 2021 11:08:41.095 [0x7f47d71a1b38] DEBUG - PlayQueue: 0 generated IDs compressed down to a 20 byte blob.
Jun 09, 2021 11:08:41.096 [0x7f47d71a1b38] DEBUG - PlayQueue: 0 generated IDs compressed down to a 20 byte blob.
Jun 09, 2021 11:08:41.097 [0x7f47d71a1b38] DEBUG - PlayQueue: Added 1 items in 0.0 sec.
Jun 09, 2021 11:08:41.098 [0x7f47d71a1b38] DEBUG - PlayQueue: total generated: -1, before cursor: 0, after cursor: 0
Jun 09, 2021 11:08:41.099 [0x7f47d71a1b38] DEBUG - PlayQueue: decompressed 0 IDs from blob.
Jun 09, 2021 11:08:41.099 [0x7f47d71a1b38] DEBUG - PlayQueue: decompressed 0 IDs from blob.
Jun 09, 2021 11:08:41.099 [0x7f47d71a1b38] DEBUG - PlayQueue: Inserting 0 new items, starting at 0.000000.
Jun 09, 2021 11:08:41.099 [0x7f47d71a1b38] DEBUG - BPQ: processing 1 item(s) in queue
Jun 09, 2021 11:08:41.118 [0x7f47d71a1b38] DEBUG - We're going to try to auto-select an audio stream for account 1.
Jun 09, 2021 11:08:41.120 [0x7f47d71a1b38] DEBUG - Selecting best audio stream for part ID 8243 (autoselect: 1 language: en)
Jun 09, 2021 11:08:41.120 [0x7f47d71a1b38] DEBUG - Audio Stream: 22018, Subtitle Stream: -1
Jun 09, 2021 11:08:41.126 [0x7f47d71a1b38] DEBUG - Codecs: testing h264_vaapi (encoder)
Jun 09, 2021 11:08:41.126 [0x7f47d71a1b38] DEBUG - Codecs: hardware transcoding: testing API vaapi
Jun 09, 2021 11:08:41.126 [0x7f47d71a1b38] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Generic error in an external library
Jun 09, 2021 11:08:41.127 [0x7f47d71a1b38] DEBUG - Codecs: testing h264_nvenc (encoder)
Jun 09, 2021 11:08:41.127 [0x7f47d71a1b38] DEBUG - Codecs: hardware transcoding: testing API nvenc
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded lib: libcuda.so.1
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuInit
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuDeviceGetCount
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuDeviceGet
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuDeviceGetAttribute
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuDeviceGetName
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuDeviceComputeCapability
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxCreate_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxSetLimit
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxPushCurrent_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxPopCurrent_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxDestroy_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemAlloc_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemAllocPitch_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemsetD8Async
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemFree_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemcpy2D_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMemcpy2DAsync_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGetErrorName
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGetErrorString
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuCtxGetDevice
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuStreamCreate
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuStreamQuery
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuStreamSynchronize
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuStreamDestroy_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuStreamAddCallback
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuEventCreate
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuEventDestroy_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuEventSynchronize
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuEventQuery
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuEventRecord
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuLaunchKernel
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuLinkCreate
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuLinkAddData
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuLinkComplete
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuLinkDestroy
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuModuleLoadData
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuModuleUnload
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuModuleGetFunction
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuTexObjectCreate
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuTexObjectDestroy
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGLGetDevices_v2
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGraphicsGLRegisterImage
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGraphicsUnregisterResource
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGraphicsMapResources
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGraphicsUnmapResources
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuGraphicsSubResourceGetMappedArray
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuDeviceGetUuid
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuImportExternalMemory
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuDestroyExternalMemory
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuExternalMemoryGetMappedBuffer
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuExternalMemoryGetMappedMipmappedArray
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMipmappedArrayGetLevel
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Loaded sym: cuMipmappedArrayDestroy
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuImportExternalSemaphore
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuDestroyExternalSemaphore
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuSignalExternalSemaphoresAsync
Jun 09, 2021 11:08:41.131 [0x7f47d71a1b38] DEBUG - [FFMPEG] - Cannot load optional cuWaitExternalSemaphoresAsync
Jun 09, 2021 11:08:41.429 [0x7f47d71a1b38] DEBUG - [JobRunner] Job running: '/usr/lib/plexmediaserver/CrashUploader' '--directory=/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.23.2.4656-85f0adf5b' '--version=1.23.2.4656-85f0adf5b' '--platform=Linux' '--platformVersion=20.04.2 LTS (Focal Fossa)' '--serverUuid=40d1edd8c8694f4b9e5bc2c2aa054f44ccc608f3' '--userId=xenophod@XXXXXXX' '--sentryUrl=https://sentry.io/api/1233455/minidump' '--sentryKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' '--vendor=Ubuntu' '--model=x86_64' '--device=PC' '--allowRetries=0'
PMS would crash every 4 minutes until I turned hardware encoding off.
Jun 9 11:08:41 media Plex Media Server[369523]: ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.23.2.4656-85f0adf5b/PLEX MEDIA SERVER/4a9a3e9a-d94e-4ca6-db5ae3b3-b6c0e826.dmp
Jun 9 11:08:41 media kernel: [233973.645451] Plex Media Serv[369742]: segfault at 6b ip 00007f47d4d43cbb sp 00007f47d719f5b0 error 4 in libcuda.so.340.108[7f47d4b0c000+d9c000]
Jun 9 11:08:41 media kernel: [233973.645469] Code: e8 9a ca ed ff 85 c0 89 c3 75 4d 48 8b 3c 24 45 31 f6 48 0f be 0f 84 c9 74 27 41 83 fe 02 7f 21 48 8b 05 50 fb c8 00 48 8b 00 <f6> 44 48 01 08 75 3e 48 83 c7 01 48 89 3c 24 48 0f be 0f 84 c9 75
The graphics card is:
*-display
description: VGA compatible controller
product: G84 [GeForce 8600 GTS]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
Jun 08, 2021 12:35:19.514 [0x7f14a520db38] INFO - Plex Media Server v1.23.2.4656-85f0adf5b - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT -04:00
Jun 08, 2021 12:35:19.515 [0x7f14a520db38] INFO - Linux version: 20.04.2 LTS (Focal Fossa), language: en-US
Jun 08, 2021 12:35:19.515 [0x7f14a520db38] INFO - Processor Intel(R) Pentium(R) D CPU 2.80GHz
Jun 08, 2021 12:35:19.515 [0x7f14a520db38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv e0c29d5827bc4eaaa2ceb882cbeed224b0960173)
Jun 08, 2021 12:35:19.515 [0x7f14a520db38] INFO - /usr/lib/plexmediaserver/Plex Media Server
Is this related to a bug in FFMPEG? It seems to be similar to this bug from 3 years ago:
https://trac.ffmpeg.org/ticket/7530