Closed Bug 1350649 Opened 8 years ago Closed 8 years ago

Misleading error "Video can't be played because the file is corrupt." due to Z3C OS bug

Categories

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

53 Branch
Unspecified
Android
defect

Tracking

(firefox52 wontfix, firefox-esr52- unaffected, firefox53 wontfix, firefox54+ wontfix, firefox55+ fixed)

RESOLVED FIXED
Tracking Status
firefox52 --- wontfix
firefox-esr52 - unaffected
firefox53 --- wontfix
firefox54 + wontfix
firefox55 + fixed

People

(Reporter: marco, Unassigned)

References

Details

(Keywords: regression, site-compat)

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #1350279 +++ Videos in web pages (from YouTube and other websites) are broken. The video element is replaced with an error message saying "Video can't be played because the file is corrupt.". I'm pretty sure this used to work in the past, but I can't recall when. I can reproduce on a Sony Xperia Z3 Compact, but not on a Nexus 5. Setting "media.android-remote-codec.enabled" to false doesn't solve the problem.
I cannot reproduce the issue on my Nexus 5X phone nor Nexus 9 tablet, but let's track... [Tracking Requested - why for this release]: Videos on YouTube and other sites are broken on certain Android devices.
(Oops, I guess 52 is not affected.)
Depends on: 1350209
Hmm, sorry, I should have read the comment carefully :/ Macro says "Setting "media.android-remote-codec.enabled" to false *doesn't* solve the problem."
No longer depends on: 1350209
who should be working on this? (and bug 1350279 for 54) This is a 53 regression, and we're very close to final betas.
Flags: needinfo?(kohei.yoshino)
Flags: needinfo?(ajones)
This issue happens frequently on the Z3C when the video decoder can't be recreated. Chrome is broken as well at the same time. Restarting the phone fixes the issue. I think we should get a front-end fix that gives a better error message.
Flags: needinfo?(ajones)
(In reply to Anthony Jones (:kentuckyfriedtakahe, :k17e) from comment #5) > This issue happens frequently on the Z3C when the video decoder can't be > recreated. Chrome is broken as well at the same time. Restarting the phone > fixes the issue. I think we should get a front-end fix that gives a better > error message. ok, can you file a bug on the frontend for a better error? And rename this one, perhaps repurpose it to provide the front end with the info to give the better error? Thanks!
Flags: needinfo?(ajones)
Summary: Videos broken on several top websites → Videos broken on several top websites when using Z3C due to OS bug
Blake - can I pass this onto you?
Flags: needinfo?(ajones) → needinfo?(bwu)
[Tracking Requested - why for this release]: We can still take a patch for 53 and may want to fix this in esr52 as well.
(In reply to Anthony Jones (:kentuckyfriedtakahe, :k17e) from comment #7) > Blake - can I pass this onto you? Of course! :-)
Flags: needinfo?(bwu)
Sadly, I cannot repro this bug with my Z3C. Sorina, Can you help repro this bug with the devices you have?
Flags: needinfo?(kohei.yoshino) → needinfo?(sorina.florean)
Anthony, Which Android version on you Z3C?
Flags: needinfo?(ajones)
Hello, tested with different versions of Android and here are the results: - Huawei Honor (Android 5.1.1) on fandom.wikia.com the following message is displayed: log1. + https://i.imgur.com/gpFLNxi.png and on foxnews: https://i.imgur.com/1eJkaYM.png. On twitch.tv the video started to play but then the image freezes and sound don't, will be log2. Same results for Huawei MediaPad M2 (Android 5.1.1) and HTC Desire 820 (Android 6.0.1). - Motorola Nexus 6 (Android 7.0): the video from fandom.wikia.com has the same behavior like twitch.tv, both are start playing then freeze, but the sound keeps playing. I didn't manage to reproduce on youtube videos, cnn.com videos, imdb, nbcnews.com, reddit, techcrunch. If I can test some particular sites, please let me know.
Flags: needinfo?(sorina.florean)
Thanks for your prompt reply. Which version of Firefox you are using for testing? Can you help find which version of Firefox has this problem?
Flags: needinfo?(sorina.florean)
Sorry for not write that down. I've tested on all latest versions that are affected at bug flags: 53, 54, 55 except version 52, witch I did't.But, I can test that too if is needed. I saw now that I've got also the message: Error while decoding media resource, on twitch.tv, on Nightly.
Flags: needinfo?(sorina.florean)
(In reply to Sorina Florean [:sorina] from comment #12) > Created attachment 8853380 [details] > log1.Video can't be played.txt > > Hello, tested with different versions of Android and here are the results: > > - Huawei Honor (Android 5.1.1) on fandom.wikia.com the following message is > displayed: log1. + https://i.imgur.com/gpFLNxi.png and on foxnews: > https://i.imgur.com/1eJkaYM.png. On twitch.tv the video started to play but > then the image freezes and sound don't, will be log2. > Same results for Huawei MediaPad M2 (Android 5.1.1) and HTC Desire 820 > (Android 6.0.1). > > - Motorola Nexus 6 (Android 7.0): the video from fandom.wikia.com has the > same behavior like twitch.tv, both are start playing then freeze, but the > sound keeps playing. > > I didn't manage to reproduce on youtube videos, cnn.com videos, imdb, > nbcnews.com, reddit, techcrunch. > If I can test some particular sites, please let me know. I can see two kinds of problems in your testing result. One is an error message would appear and the other is playback freeze but sound keeps playing without error message. This bug focus on the first one. The second one should be a known issue on 54 and 55 (should not happen on 53). Can you help me figure out how these two problems happen in different Firefox versions? In other words, does the first problem happen on all 53/54/55? How about the second problem? Thank you.
Flags: needinfo?(ajones) → needinfo?(sorina.florean)
With Huawei Honor (Android 5.1.1) on fandom.vikia.com and the same video: - Nightly - playback freeze but sound is on - Aurora - message is displayed "Playback error..." - Beta 7 - message is displayed "Playback error..." Asus ZenPad 8 (Android 6.0.1) on fandom.vikia.com and the same video: - Nightly - video is played with no issues, I played 3 videos - Aurora - message is displayed "Playback error..." - Beta 7 - message is displayed "Playback error..." Motorola Nexus 6 (Android 7.0) on fandom.vikia.com and the same video: - Nightly - playback freeze but sound is on - Aurora - playback freeze but sound is on - Beta 7 - video is played with no issues So I see that what issue is displayed depends on Android versions. On 53 I only saw the message error. Hope this helps.
Flags: needinfo?(sorina.florean)
(In reply to Sorina Florean [:sorina] from comment #12) > Created attachment 8853380 [details] > log1.Video can't be played.txt > > Hello, tested with different versions of Android and here are the results: > > - Huawei Honor (Android 5.1.1) on fandom.wikia.com the following message is > displayed: log1. + https://i.imgur.com/gpFLNxi.png and on foxnews: > https://i.imgur.com/1eJkaYM.png. On twitch.tv the video started to play but > then the image freezes and sound don't, will be log2. > Same results for Huawei MediaPad M2 (Android 5.1.1) and HTC Desire 820 > (Android 6.0.1). > > - Motorola Nexus 6 (Android 7.0): the video from fandom.wikia.com has the > same behavior like twitch.tv, both are start playing then freeze, but the > sound keeps playing. > > I didn't manage to reproduce on youtube videos, cnn.com videos, imdb, > nbcnews.com, reddit, techcrunch. > If I can test some particular sites, please let me know. Do you have a Sony Xperia Z3 Compact? This bug should only be reproducible on these devices, according to Anthony. The issues with wikia.com and twitch.tv should probably be filed as separate bugs, since they affect different Android versions and different devices.
(In reply to Marco Castelluccio [:marco] (PTO until April 3) from comment #18) > (In reply to Sorina Florean [:sorina] from comment #12) > > Created attachment 8853380 [details] > > log1.Video can't be played.txt > > > > Hello, tested with different versions of Android and here are the results: > > > > - Huawei Honor (Android 5.1.1) on fandom.wikia.com the following message is > > displayed: log1. + https://i.imgur.com/gpFLNxi.png and on foxnews: > > https://i.imgur.com/1eJkaYM.png. On twitch.tv the video started to play but > > then the image freezes and sound don't, will be log2. > > Same results for Huawei MediaPad M2 (Android 5.1.1) and HTC Desire 820 > > (Android 6.0.1). > > > > - Motorola Nexus 6 (Android 7.0): the video from fandom.wikia.com has the > > same behavior like twitch.tv, both are start playing then freeze, but the > > sound keeps playing. > > > > I didn't manage to reproduce on youtube videos, cnn.com videos, imdb, > > nbcnews.com, reddit, techcrunch. > > If I can test some particular sites, please let me know. > > Do you have a Sony Xperia Z3 Compact? This bug should only be reproducible > on these devices, according to Anthony. > > The issues with wikia.com and twitch.tv should probably be filed as separate > bugs, since they affect different Android versions and different devices. No, I don't have a Sony Xperia device. Should I file another bugs?
Hi Blake, Dolske, Jesup suggested a better front end error message in comment 6. Thoughts? I believe it is too late to take this in 53. I'd like to wontfix for 53 and hoping you guys will have something ready to uplift to Aurora54/Beta54 soon. Thanks!
Flags: needinfo?(dolske)
Flags: needinfo?(bwu)
(In reply to Sorina Florean [:sorina] from comment #19) > (In reply to Marco Castelluccio [:marco] (PTO until April 3) from comment > #18) > > (In reply to Sorina Florean [:sorina] from comment #12) > > > Created attachment 8853380 [details] > > > log1.Video can't be played.txt > > > > > > Hello, tested with different versions of Android and here are the results: > > > > > > - Huawei Honor (Android 5.1.1) on fandom.wikia.com the following message is > > > displayed: log1. + https://i.imgur.com/gpFLNxi.png and on foxnews: > > > https://i.imgur.com/1eJkaYM.png. On twitch.tv the video started to play but > > > then the image freezes and sound don't, will be log2. > > > Same results for Huawei MediaPad M2 (Android 5.1.1) and HTC Desire 820 > > > (Android 6.0.1). > > > > > > - Motorola Nexus 6 (Android 7.0): the video from fandom.wikia.com has the > > > same behavior like twitch.tv, both are start playing then freeze, but the > > > sound keeps playing. > > > > > > I didn't manage to reproduce on youtube videos, cnn.com videos, imdb, > > > nbcnews.com, reddit, techcrunch. > > > If I can test some particular sites, please let me know. > > > > Do you have a Sony Xperia Z3 Compact? This bug should only be reproducible > > on these devices, according to Anthony. > > > > The issues with wikia.com and twitch.tv should probably be filed as separate > > bugs, since they affect different Android versions and different devices. > > No, I don't have a Sony Xperia device. Should I file another bugs? Yes, I think so. Probably one bug per website, since they look like different problems (and if they end up being the same problem, they can be resolved as duplicates).
Kaku, Can you help on this bug? Thanks.
Flags: needinfo?(bwu) → needinfo?(kaku)
If the error: "Video can't be played because the file is corrupt." or "Playback error" is due to insufficient decoder resource, maybe decoder-shutdown can benefit this bug.
Priority: -- → P1
Summary: Videos broken on several top websites when using Z3C due to OS bug → Error: "Video can't be played because the file is corrupt."
Quick update here: 1. I can reproduce the case of "playback freeze but sound is on" at twitch.tv on almost devices and I think the root cause is a regression of OOP-decoding in fennec. The regression should already be resolved via bug 1349883, which is landed into m-c 10 hours ago. 2. I can reproduce the case shown in this screen shot, https://i.imgur.com/1eJkaYM.png, provided by :sorina. Looking into debug logs, I think this is something about supporting HLS in fennec. We're now working on supporting HLS natively and we should have already a work-around for play HLS with external APPs but somehow the work-around doesn't work at foxnews.com at the moment. 3. I cannot reproduce the case shown in this screen shot, https://i.imgur.com/gpFLNxi.png, or any situation in the following list: > With Huawei Honor (Android 5.1.1) on fandom.vikia.com and the same video: > - Nightly - playback freeze but sound is on > - Aurora - message is displayed "Playback error..." > - Beta 7 - message is displayed "Playback error..." > > Asus ZenPad 8 (Android 6.0.1) on fandom.vikia.com and the same video: > - Nightly - video is played with no issues, I played 3 videos > - Aurora - message is displayed "Playback error..." > - Beta 7 - message is displayed "Playback error..." May I have the exact link to the video which encounters this issue? Keep myself in-ed.
Depends on: 1356539
Depends on: 1356942
(In reply to Tzuhao Kuo [:kaku] from comment #24) > Quick update here: > > 1. I can reproduce the case of "playback freeze but sound is on" at > twitch.tv on almost devices and I think the root cause is a regression of > OOP-decoding in fennec. The regression should already be resolved via bug > 1349883, which is landed into m-c 10 hours ago. -> bug 1356539. > 2. I can reproduce the case shown in this screen shot, > https://i.imgur.com/1eJkaYM.png, provided by :sorina. Looking into debug > logs, I think this is something about supporting HLS in fennec. We're now > working on supporting HLS natively and we should have already a work-around > for play HLS with external APPs but somehow the work-around doesn't work at > foxnews.com at the moment. -> bug 1356942.
(In reply to Tzuhao Kuo [:kaku] from comment #24) > > 3. I cannot reproduce the case shown in this screen shot, > https://i.imgur.com/gpFLNxi.png, or any situation in the following list: > > With Huawei Honor (Android 5.1.1) on fandom.vikia.com and the same video: > > - Nightly - playback freeze but sound is on > > - Aurora - message is displayed "Playback error..." > > - Beta 7 - message is displayed "Playback error..." > > > > Asus ZenPad 8 (Android 6.0.1) on fandom.vikia.com and the same video: > > - Nightly - video is played with no issues, I played 3 videos > > - Aurora - message is displayed "Playback error..." > > - Beta 7 - message is displayed "Playback error..." > May I have the exact link to the video which encounters this issue? > Tested again with Asus ZenPad 8 (Android 6.0.1) and Huawei Honor (Android 5.1.1): - On Nightly 55.0a1, on both devices, the video was played with no issues. - On Aurora 54.0a2 with both devices - go to http://fandom.wikia.com/articles/orphan-black-trailer-will-die-season-5 and play the video; - scroll down to reach the "latest videos" section; - tap on first video (http://fandom.wikia.com/videos/7-upcoming-comic-book-movies-cant-miss) and I get the message "Playback error..." - On Aurora 54.0a2 with Asus ZenPad 8 (Android 6.0.1) the both videos was played with no issues - On 53 Beta 11 same behavior as 54.0a2 with both devices and following the same steps.
fennec issue, clearing flags for esr52.
(In reply to Sorina Florean [:sorina] from comment #26) > (In reply to Tzuhao Kuo [:kaku] from comment #24) > > > > 3. I cannot reproduce the case shown in this screen shot, > > https://i.imgur.com/gpFLNxi.png, or any situation in the following list: > > > With Huawei Honor (Android 5.1.1) on fandom.vikia.com and the same video: > > > - Nightly - playback freeze but sound is on > > > - Aurora - message is displayed "Playback error..." > > > - Beta 7 - message is displayed "Playback error..." > > > > > > Asus ZenPad 8 (Android 6.0.1) on fandom.vikia.com and the same video: > > > - Nightly - video is played with no issues, I played 3 videos > > > - Aurora - message is displayed "Playback error..." > > > - Beta 7 - message is displayed "Playback error..." > > May I have the exact link to the video which encounters this issue? > > > Tested again with Asus ZenPad 8 (Android 6.0.1) and Huawei Honor (Android > 5.1.1): > - On Nightly 55.0a1, on both devices, the video was played with no issues. > - On Aurora 54.0a2 with both devices > - go to > http://fandom.wikia.com/articles/orphan-black-trailer-will-die-season-5 and > play the video; > - scroll down to reach the "latest videos" section; > - tap on first video > (http://fandom.wikia.com/videos/7-upcoming-comic-book-movies-cant-miss) and > I get the message "Playback error..." > - On Aurora 54.0a2 with Asus ZenPad 8 (Android 6.0.1) the both videos > was played with no issues I don't get the idea here, so the "Playback error..." can only be reproduced on Huawei Honor (Android 5.1.1)? > - On 53 Beta 11 same behavior as 54.0a2 with both devices and following the > same steps. Same here. Does this means that Asus ZenPad 8 (Android 6.0.1) is okay, but Huawei Honor (Android 5.1.1) cannot play the video?
Flags: needinfo?(kaku) → needinfo?(sorina.florean)
Here is the testing report more clearer. Sorry for any inconvenience. Tested again with Asus ZenPad 8 (Android 6.0.1) and Huawei Honor (Android 5.1.1): - On Nightly 55.0a1, on both devices, the video was played with no issues. - On Aurora 54.0a2 with Asus ZenPad 8 (Android 6.0.1) and Huawei Honor (Android 5.1.1) - go to http://fandom.wikia.com/articles/orphan-black-trailer-will-die-season-5 and play the video; - scroll down to reach the "latest videos" section; - tap on first video (http://fandom.wikia.com/videos/7-upcoming-comic-book-movies-cant-miss) and I get the message "Playback error..." - On 53 Beta 11 with Asus ZenPad 8 (Android 6.0.1) and Huawei Honor (Android 5.1.1) - go to http://fandom.wikia.com/articles/orphan-black-trailer-will-die-season-5 and play the video; - scroll down to reach the "latest videos" section; - tap on first video (http://fandom.wikia.com/videos/7-upcoming-comic-book-movies-cant-miss) and I get the message "Playback error..."
Flags: needinfo?(sorina.florean)
Based on comment 29, marking this as fixed in nightly 55. Do we know what fixed this issue? If we can figure that out we could still take a patch for 54.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(kaku)
Resolution: --- → FIXED
This bug is actually due to a OS bug with the Z3C (see comment 5 and 6). When this OS bug occurs, Firefox prints a misleading error message saying "Video can't be played because the file is corrupt". The problems Sorina were seeing are different and should be filed as separate bugs.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Error: "Video can't be played because the file is corrupt." → Misleading error "Video can't be played because the file is corrupt." due to Z3C OS bug
Is there anything Firefox can do about the actual error? If so we should probably have one bug for adding a better error message, and a separate bug about avoiding the error in the first place. Also, ultimately the front-end can't display a better error unless the media back end gives us a specific error code. So that would need to happen first anyway.
Flags: needinfo?(dolske)
Hi Blake, Can you help shed some light here according to comment #31 & #32?
Flags: needinfo?(bwu)
John, Can you help check it?
Flags: needinfo?(kaku)
Flags: needinfo?(jolin)
Flags: needinfo?(bwu)
(In reply to Justin Dolske [:Dolske] from comment #32) > Is there anything Firefox can do about the actual error? If so we should > probably have one bug for adding a better error message, and a separate bug > about avoiding the error in the first place. > > Also, ultimately the front-end can't display a better error unless the media > back end gives us a specific error code. So that would need to happen first > anyway. I guess we could encode error condition in MediaError.message reported by media element for front-end to examine. Filed bug 1364343 for this. As for avoiding the error, bug 1350279 already has a fix for 55 (and 54 if uplifted). And as Blake said in comment 16, 53 shouldn't be affected by the Z3C bug (it falls back to SW decoder when HW fails to create).
Flags: needinfo?(jolin)
as it's wontfix for 53
54 RC build is released. Mark 54 won't fix.
I think we can just close this bug since bug 1350279 (the actual error) is fixed, and we have bug 1364343 for what's left (changing the error message).
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Flags: needinfo?(dolske)
Resolution: --- → FIXED
Flags: needinfo?(dolske)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: