[PMS Bug] Hardware accelerated HDR tone mapping broken again. OpenCL is broken in Plex but not in system

Thanks for attempting to reproduce! I’ve captured some DEBUG logs from both versions

and notice the following in the plexmediaserver-1.25.0.5220-de6e61df7.x86_64 logs (this is the latest version which doesn’t do hardware accelerated tone mapping on my machine):

Nov 12, 2021 16:37:11.065 [0x7f4bf1392b38] Debug — [Transcode/6scgjkgaazf8tkepou3b61x8] Asked for segment 0 from session.
Nov 12, 2021 16:37:11.103 [0x7f4bf0902b38] Error — [Transcoder] [AVHWDeviceContext @ 0x7f698813eac0] Failed to get number of OpenCL platforms: -1001.
Nov 12, 2021 16:37:11.103 [0x7f4bf0902b38] Error — [Transcoder] [AVHWDeviceContext @ 0x7f698813eac0] Failed to get number of OpenCL platforms: -1001.
Nov 12, 2021 16:37:11.103 [0x7f4bf0902b38] Error — [Transcoder] [Parsed_hwmap_2 @ 0x7f698820b040] Failed to created derived device context: -19.
Nov 12, 2021 16:37:11.103 [0x7f4bf0902b38] Error — [Transcoder] [Parsed_hwmap_2 @ 0x7f698820b040] Failed to configure output pad on Parsed_hwmap_2
Nov 12, 2021 16:37:11.105 [0x7f4bf0902b38] Error — [Transcoder] Error reinitializing filters!
Nov 12, 2021 16:37:11.105 [0x7f4bf0902b38] Error — [Transcoder] Failed to inject frame into filter network: No such device
Nov 12, 2021 16:37:11.105 [0x7f4bf0902b38] Error — [Transcoder] Error while processing the decoded data for stream #0:0
Nov 12, 2021 16:37:11.140 [0x7f4bf2162b38] Debug — Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 1387144 is 1 (failure)
Nov 12, 2021 16:37:11.140 [0x7f4bf0327b38] Debug — Streaming Resource: Changing client to use software decoding

and then

Nov 12, 2021 16:37:12.371 [0x7f4bf0902b38] Debug — [Transcode] Transcoder: session 6scgjkgaazf8tkepou3b61x8 indicated fallback to software decoding

the logs from plexmediaserver-1.22.0.4163-d8c4875dd.x86_64 don’t show this issue and hardware tone mapping works beautifully.

Seems that others have experienced the same with other CPUs: 4K HDR HEVC HW transcoding is broken on i5-11600K (Rocket Lake) - #5 by emb531

I’m happy to provide the full logs but I’m a bit worried that they might contain sensitive info. Is it possible to send those directly to you instead of making them publicly available?