Closed Bug 1340963 Opened 8 years ago Closed 8 years ago

Unable to play m.youtube.com video. Endless loading icon

Categories

(Firefox for Android Graveyard :: Audio/Video, defect, P1)

52 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1350279

People

(Reporter: etsai, Assigned: jhlin)

References

Details

From https://webcompat.com/issues/4763 Steps to reproduce: 1. Open https://m.youtube.com/watch?v=ru0K8uYEZWw using Firefox for android 52.0b6, 53.0a2, 54.0a1 on Sony Z3C, android 5.1.1 2. Click play button on video Expected result: play video Actual result: endless loading icon In web console, I see "unable to decode media resource blob:https://m.youtube.com/75a5f2a9-c255-41e2-b2a9-a6e77ae3482c" Firefox for android 54.0a1 crash report: href="https://crash-stats.mozilla.com/report/index/bp-513dfb1d-8d7b-40b8-b9bb-d562c2170220
Flags: needinfo?(jolin)
Tried 52.0b5 and my local Fennec builds on my Z3C/Android 5.1.1 but had no luck reproducing it. The video played fine without error. BTW, the crash report https://crash-stats.mozilla.com/report/index/bp-513dfb1d-8d7b-40b8-b9bb-d562c2170220 shows assertion in MozPromise.
Flags: needinfo?(jolin)
Logcat: 02-20 14:12:00.391 11938 12560 W ACodec : Allocating component 'OMX.qcom.video.decoder.avc' failed, try next one. 02-20 14:12:00.391 11938 12560 E ACodec : Unable to instantiate codec 'OMX.qcom.video.decoder.avc'. 02-20 14:12:00.391 11938 12560 E ACodec : signalError(omxError 0x80001003, internalError -2147483648) 02-20 14:12:00.391 11938 12559 E MediaCodec: Codec reported err 0xfffffffe, actionCode 0, while in state 1 02-20 14:12:00.391 11938 11959 W MediaCodec-JNI: try to release MediaCodec from JMediaCodec::~JMediaCodec()... 02-20 14:12:00.392 11938 11959 W MediaCodec-JNI: done releasing MediaCodec from JMediaCodec::~JMediaCodec(). 02-20 14:12:00.392 11938 11959 E GeckoRemoteCodec: FAIL: cannot create codec -- OMX.qcom.video.decoder.avc 02-20 14:12:00.392 11938 11959 W System.err: java.lang.IllegalArgumentException: Failed to initialize OMX.qcom.video.decoder.avc, error 0xfffffffe 02-20 14:12:00.392 11938 11959 W System.err: at android.media.MediaCodec.native_setup(Native Method) 02-20 14:12:00.392 11938 11959 W System.err: at android.media.MediaCodec.<init>(MediaCodec.java:497) 02-20 14:12:00.392 11938 11959 W System.err: at android.media.MediaCodec.createByCodecName(MediaCodec.java:481) 02-20 14:12:00.392 11938 11959 W System.err: at org.mozilla.gecko.media.JellyBeanAsyncCodec.<init>(JellyBeanAsyncCodec.java:264) 02-20 14:12:00.392 11938 11959 W System.err: at org.mozilla.gecko.media.AsyncCodecFactory.create(AsyncCodecFactory.java:12) 02-20 14:12:00.392 11938 11959 W System.err: at org.mozilla.gecko.media.Codec.configure(Codec.java:334) 02-20 14:12:00.392 11938 11959 W System.err: at org.mozilla.gecko.media.ICodec$Stub.onTransact(ICodec.java:75) 02-20 14:12:00.392 11938 11959 W System.err: at android.os.Binder.execTransact(Binder.java:446)
Hi John, if you want to get my device to reproduce this issue, it's welcome to grab me.
Flags: needinfo?(jolin)
Priority: -- → P1
Got the device from Eric and will investigate the problem.
Flags: needinfo?(jolin)
Assignee: nobody → jolin
The device failed to create codec 'OMX.qcom.video.decoder.avc'. Log shows 'OMX-VDEC-1080P: Omx_vdec::Comp Init Returning failure, errno 12' and that's ENOMEM. It seems the video decoder driver is in unusable state so I tried rebooting and video now plays fine.
Probably, there is no more instances of video decoder available. If it is that case, usually video decoder is fully occupied by other APPs or tabs and it should be easily reproduced by creating two tabs which both play videos.
Tried launched 3 instances of Fennec and play the video simultaneously, then launch Youtube app and play the video at the same time. All play fine. :(
Fixed in bug 1350279 by falling back to SW decoder when HW fails to init.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.