maintainer-feedback requested: [Bug 281908] www/firefox: VP9/H264 hardware acceleration stopped working "WARNING: pipe error: Operation not supported"

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Oct 2024 00:00:53 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko (Nobody)
<gecko@FreeBSD.org> for maintainer-feedback:
Bug 281908: www/firefox: VP9/H264 hardware acceleration stopped working
"WARNING: pipe error: Operation not supported"
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281908



--- Description ---
Hi,

Hardware acceleration on my Intel CPU was working well in Firefox for awhile,
and as of a few weeks ago stopped working. In about:support, they are listed as
green and supported with HW supported. When I load
https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_1
0s_2MB.mp4
however, it says  "Video can't be played because the file is corrupt."


The log reveals some interesting information:

[RDD 53438: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in
RDD process
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFMPEG: version: 0x80, macro:
60, micro: 102, isFFMpeg: yes
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFMPEG: version: 0x80, macro:
61, micro: 101, isFFMpeg: yes
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFVPX: Link result: Success
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects
requested type 'video/avc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/avc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/avc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/vp9'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/vp9'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/vp8'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/vp8'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/av1'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'video/av1'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects
requested type 'video/hevc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects
requested type 'video/hevc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule Agnostic decoder rejects
requested type 'video/hevc'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects
requested type 'audio/mp4a-latm'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/mp4a-latm'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/mp4a-latm'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/mpeg'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/mpeg'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/opus'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/opus'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/vorbis'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/vorbis'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/flac'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/flac'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/x-wav'
[RDD 53438: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports
requested type 'audio/x-wav'
[Parent 99449: Main Thread]: D/PlatformDecoderModule Broadcast support from
'RDD', support=H264 SW
VP9 SW
VP8 SW
AV1 SW
HEVC NONE
AAC SW
MP3 SW
Opus SW
Vorbis SW
FLAC SW
Wave SW
[RDD 53438: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder rejects
requested type 'video/avc'
[RDD 53438: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder
supports requested type 'video/avc'
[RDD 53438: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder
supports requested type 'video/avc'
[Child 37834: RemVidChild]: D/PlatformDecoderModule
RemoteMediaDataDecoder[2ed69e08f260] ::RemoteMediaDataDecoder: 2ed69e08f260 is
created
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[Child 37834: RemVidChild]: D/PlatformDecoderModule
RemoteMediaDataDecoder[2ed69e08f260] ::operator(): 2ed69e08f260
RemoteDecoderChild has been initialized - description: ffmpeg video decoder
(RDD remote), process: rdd, codec: h264
[RDD 53438: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode:
mDuration=16666µs ; mTime=0µs ; mTimecode=0µs
[RDD 53438: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode:
mDuration=16666µs ; mTime=116666µs ; mTimecode=16666µs
[RDD 53438: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode:
mDuration=16666µs ; mTime=50000µs ; mTimecode=33333µs
[RDD 53438, MediaSupervisor #1] WARNING: pipe error: Operation not supported:
file
/wrkdirs/usr/ports/www/firefox/work/firefox-130.0.1/ipc/chromium/src/chrome/com
mon/ipc_channel_posix.cc:702
[RDD 53438, MediaSupervisor #1] WARNING: pipe error: Operation not supported:
file
/wrkdirs/usr/ports/www/firefox/work/firefox-130.0.1/ipc/chromium/src/chrome/com
mon/ipc_channel_posix.cc:702
[Child 37834, MediaDecoderStateMachine #1] WARNING: Decoder=2ed6befcad00 Decode
error: NS_ERROR_DOM_MEDIA_REMOTE_DECODER_CRASHED_RDD_OR_GPU_ERR (0x806e0010) -
HandleRejectionError: file
/wrkdirs/usr/ports/www/firefox/work/firefox-130.0.1/dom/media/MediaDecoderState
MachineBase.cpp:167
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: VideoBridgeParent receives
IPC close with reason=AbnormalShutdown (t=6.6972) |[1][GFX1-]:
VideoBridgeParent receives IPC close with reason=AbnormalShutdown (t=6.9072)
|[2][GFX1-]: VideoBridgeParent receives IPC close with reason=AbnormalShutdown
(t=7.1272) |[3][GFX1-]: VideoBridgeParent receives IPC close with
reason=AbnormalShutdown (t=407.187) |[4][GFX1-]: VideoBridgeParent receives IPC
close with reason=AbnormalShutdown (t=407.417) |[5][GFX1-]: VideoBridgeParent
receives IPC close with reason=AbnormalShutdown (t=407.657) |[6][GFX1-]:
VideoBridgeParent receives IPC close with reason=AbnormalShutdown (t=413.777)
|[7][GFX1-]: VideoBridgeParent receives IPC close with reason=AbnormalShutdown
(t=413.997) |[8][GFX1-]: VideoBridgeParent receives IPC close with
reason=AbnormalShutdown (t=414.227) |[9][GFX1-]: VideoBridgeParent receives IPC
close with reason=AbnormalShutdown (t=436.917) |[10][GFX1-]: VideoBridgeParent
receives IPC close with reason=AbnormalShutdown (t=437.147) |[11][GFX1-]:
VideoBridgeParent receives IPC close with reason=AbnormalShutdown (t=437.387)
[GFX1-]: VideoBridgeParent receives IPC close with reason=AbnormalShutdown



I was about to find https://github.com/jiixyj/epoll-shim/issues/23 from a few
years ago, but it doesn't seem to be valid anymore.

I am running releng/13.4. firefox-130.0.1,2.