NVidia transcoding stopped working on newest beta build. Worked fine previously. No changes to hardware or drivers. Nvdec / nvenc work fine in other applications (such as handbrake and ffmpeg).
Also seeing hw transcode not working, using a Nvidia GTX 1080. Works when I roll back to 1.32.1.6999.
May 10, 2023 13:55:32.079 [139903478717240] ERROR - [Req#ef/Transcode/fcamd47gscvoe4urpo48o5el/13cd4046-b534-4162-beac-409e9621cb16] [Parsed_tonemap_cuda_2 @ 0x7f14331f9d40] cu->cuLinkAddData(link_state, CU_JIT_INPUT_PTX, (void*)data, length, name, nb_options, options, option_values) failed â CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid
May 10, 2023 13:55:32.080 [139903478717240] ERROR - [Req#fa/Transcode/fcamd47gscvoe4urpo48o5el/13cd4046-b534-4162-beac-409e9621cb16] [Parsed_tonemap_cuda_2 @ 0x7f14331f9d40] CUDA linker output: error : Memory space doesnât match for âdepth_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âfmt_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârange_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb_matrixâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âtrc_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âluma_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb2rgb_passthroughâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb2rgb_matrixâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âtonemap_funcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnâ
May 10, 2023 13:55:32.080 [139903478717240] ERROR - [Req#fb/Transcode/fcamd47gscvoe4urpo48o5el/13cd4046-b534-4162-beac-409e9621cb16] Error while filtering: Generic error in an external library
May 10, 2023 13:55:32.080 [139903478717240] ERROR - [Req#fc/Transcode/fcamd47gscvoe4urpo48o5el/13cd4046-b534-4162-beac-409e9621cb16] Failed to inject frame into filter network: Generic error in an external library
May 10, 2023 13:55:32.080 [139903478717240] ERROR - [Req#fd/Transcode/fcamd47gscvoe4urpo48o5el/13cd4046-b534-4162-beac-409e9621cb16] Error while processing the decoded data for stream #0:0
May 10, 2023 13:55:32.127 [139903534947128] DEBUG - Jobs: â/usr/lib/plexmediaserver/Plex Transcoderâ exit code for process 646 is 1 (failure)
May 10, 2023 13:55:32.128 [139903482936120] DEBUG - Streaming Resource: Changing client to use software decoding
Looks like youâre correct. If I disable tonemapping, hardware transcoding works again on 1.32.2.7002.
So itâs still blocking me from upgrading to the latest version as not all of my devices I watch from support HDR (after testing with disabling tonemapping Iâve once again rolled back to 1.32.1.6999) but good that the issueâs been narrowed down.
Iâll clear the logs and get you a more concise debug. It is using it for anything non-hdr. I should have looked at the logs before I exported this morning, there were two files being played when I saved that one was hardware transcoding like normal and confirmed with nvdia-smi along with showing hw in the dashboard, the other stomped the crud out of the CPU and drove the load up to 6 on the server when it typically rides in the .5 - 2 range
Shutdown plex, cleared the logs, applied the latest beta again. Had three people currently on the system two were getting hardware transcodes at the time. After it came back up both of those got new transcode jobs that showed up in nvidia-smi. I launched one of the files that was showing the hdr issue last night and forcing CPU transcoding instead of hardware assist and the CPU load shot through the roof again. check for bridgerton to hone in on any possible clues.
Sadly still canât hardware transcode an HDR video with tonemapping enabled on a GTX 1080 and 1.32.2.7088-319128df8, same error:
May 17, 2023 17:13:45.694 [140518800628536] ERROR - [Req#111/Transcode/9tuwahfd88i53d8pg901qqjc/b61f7442-fed3-4181-af73-3b8d0b42d385] [Parsed_tonemap_cuda_2 @ 0x7f589257db80] cu->cuLinkAddData(link_state, CU_JIT_INPUT_PTX, (void*)data, length, name, nb_options, options, option_values) failed â CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid
May 17, 2023 17:13:45.695 [140518803262264] ERROR - [Req#117/Transcode/9tuwahfd88i53d8pg901qqjc/b61f7442-fed3-4181-af73-3b8d0b42d385] [Parsed_tonemap_cuda_2 @ 0x7f589257db80] CUDA linker output: error : Memory space doesnât match for âdepth_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âfmt_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârange_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb_matrixâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âtrc_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âluma_srcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb2rgb_passthroughâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for ârgb2rgb_matrixâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnât match for âtonemap_funcâ in âtonemap.ptxâ, first specified in âconstantsâ
error : Memory space doesnâ
May 17, 2023 17:13:45.695 [140518830410552] ERROR - [Req#118/Transcode/9tuwahfd88i53d8pg901qqjc/b61f7442-fed3-4181-af73-3b8d0b42d385] Error while filtering: Generic error in an external library
May 17, 2023 17:13:45.695 [140518795516728] ERROR - [Req#119/Transcode/9tuwahfd88i53d8pg901qqjc/b61f7442-fed3-4181-af73-3b8d0b42d385] Failed to inject frame into filter network: Generic error in an external library
May 17, 2023 17:13:45.695 [140518800628536] ERROR - [Req#11a/Transcode/9tuwahfd88i53d8pg901qqjc/b61f7442-fed3-4181-af73-3b8d0b42d385] Error while processing the decoded data for stream #0:0
May 17, 2023 17:13:45.740 [140518919326520] DEBUG - Jobs: â/usr/lib/plexmediaserver/Plex Transcoderâ exit code for process 480 is 1 (failure)
May 17, 2023 17:13:45.740 [140518864161592] DEBUG - Streaming Resource: Changing client to use software decoding
Let me know if you want me to test anything else, like try a different version or something