Closed Bug 1770319 Opened 4 years ago Closed 4 years ago

[Flatpak] [vaapi] GL context creation fails with DMABufSurfaceYUV::VerifyTextureCreation() UID 2

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 100
defect

Tracking

()

RESOLVED DUPLICATE of bug 1772086

People

(Reporter: akarshanbiswas, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

  1. Enable vaapi
  2. Disable RDD sandbox by pass MOZ_DISABLE_RDD_SANDBOX=1 and run firefox with MOZ_LOG using this command:

flatpak run --env=MOZ_DISABLE_RDD_SANDBOX=1 --env==MOZ_LOG="PlatformDecoderModule:5 Dmabuf:5" run org.mozilla.firefox

  1. Try to play a video which is supported by GPU and observe the results.

Actual results:

Firefox tries to use vaapi but fails and switches back to software.

On the log, we can observe that it fails around here:

[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule FFMPEG: VA-API Got one frame output with pts=0dts=80000 duration=40000 opaque=-9223372036854775808
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurfaceYUV::CreateYUVSurface() UID 1 from desc
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurfaceYUV::UpdateYUVData() UID 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf     plane 0 size 320 x 176 format 20203852
[RDD 289: MediaPDecoder #3]: D/Dmabuf     plane 1 size 160 x 88 format 38385247
[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule Created new VA-API DMABufSurface UID = 1
[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule VideoFrameSurface: creating surface UID = 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurfaceYUV::VerifyTextureCreation() UID 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf   failed to create GL context!
[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule   failed to create texture over DMABuf memory!
[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule VideoFrameSurface: deleting dmabuf surface UID = 1
[RDD 289: MediaPDecoder #3]: D/PlatformDecoderModule VideoFrameSurface: VAAPI releasing dmabuf surface UID = 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurfaceYUV::ReleaseSurface() UID 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurfaceYUV::ReleaseTextures() UID 1
[RDD 289: MediaPDecoder #3]: D/Dmabuf DMABufSurface::ReleaseDMABuf() UID 1
[Child 112: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
[RDD 289: MediaSupervisor #1]: D/PlatformDecoderModule FFMPEG: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/avc Codec ID 27
[RDD 289: MediaSupervisor #1]: D/PlatformDecoderModule FFMPEG: VAAPI is disabled by parent decoder module.

Expected results:

vaapi should have played normally as it is on distro version of firefox.

More info : Similar type of regression occurred in Firefox 98(both distro package version and the flatpak version) and got fixed in Firefox 100 (only the distro version) and mozregression tool pinpointed to this fix.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)
Priority: -- → P3

This bug should be closed. It has been fixed.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.