Closed
Bug 1299609
Opened 8 years ago
Closed 8 years ago
Network stalls on media asset request, channel canceled with NS_ERROR_PARSED_DATA_CACHED
Categories
(Core :: Audio/Video: Playback, defect, P1)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
INVALID
People
(Reporter: mbest, Unassigned)
Details
Attachments
(1 file)
1.78 KB,
application/x-zip-compressed
|
Details |
From: Jeff Gilbert
Debugging showed this is a problem with loading music.mp3, perhaps due to a difference in the default for <audio>'s preload attribute. (Specifically, this is not a WebGL issue, though WebGL changes may have altered timing?)
While debugging it, I reloaded the mp3 request, and now it's working even when shift-reloading the page. I suspect this bug may be interplay between our defaults and our resource cache.
Load up the following demo: http://leon196.github.io/NaturallyUndead/
It's very reproducible on nightly on windows.
Comment 1•8 years ago
|
||
I cannot reproduce it on Linux. Honza, could you give it a try on Windows?
Assignee: nobody → honzab.moz
Whiteboard: [necko-active]
Comment 2•8 years ago
|
||
Martin, I'm sorry, but the description of the problem is a bit vague.
I'm checking with an m-c debug build on Win10. First visit to the page worked well. Reload (F5) during the same session worked well. Load in a new session worked well.
Can you please provide more detailed STR?
Flags: needinfo?(mbest)
Comment 3•8 years ago
|
||
OK, an optimized build is stuck on "assets loading..." with a fresh profile. Going to study the log.
Flags: needinfo?(mbest)
Comment 4•8 years ago
|
||
I can see load for http://leon196.github.io/NaturallyUndead/assets/music.mp3 being done twice, shortly in a row. Both channels are canceled after receiving some 5k of data with NS_ERROR_PARSED_DATA_CACHED. This is definitely something in the DOM media loading code. Network parts behave as expected/instructed. Also, this isn't an HTTP cache bug.
STR in detail:
- Win (I have tested on 10), faster machine
- optimized build or a nightly official installation
- fresh profile
- go to http://leon196.github.io/NaturallyUndead/
Reproduced: stuck on "assets loading..." forever.
Expected: the page shows an animation, music plays.
Component: Networking → DOM
Updated•8 years ago
|
Summary: Network stalls on media asset request → Network stalls on media asset request, channel canceled with NS_ERROR_PARSED_DATA_CACHED
Updated•8 years ago
|
Assignee: honzab.moz → nobody
Updated•8 years ago
|
Whiteboard: [necko-active]
Comment 6•8 years ago
|
||
It seems a MediaResource bug.
Flags: needinfo?(amarchesini) → needinfo?(padenot)
Comment 7•8 years ago
|
||
This is HTMLMediaElement, not Web Audio.
Flags: needinfo?(padenot) → needinfo?(ajones)
Comment 8•8 years ago
|
||
Note that I was not able to reproduce in a debug build. Maybe hunt for a code inside MOZ_ASSERT or #if DEBUG?
JW - can you take a look at this one?
Component: DOM → Audio/Video: Playback
Flags: needinfo?(ajones) → needinfo?(jwwang)
Updated•8 years ago
|
Priority: -- → P1
Comment 10•8 years ago
|
||
Can't repro it on my Windows VM.
Can you run with `MOZ_LOG=MediaDecoder:4,nsMediaElement:4` and upload the logs? Thanks!
Flags: needinfo?(jwwang) → needinfo?(honzab.moz)
Comment 11•8 years ago
|
||
(both child and parent for completeness, but I assume you are only interested in the child log)
Flags: needinfo?(honzab.moz)
Comment 12•8 years ago
|
||
This is a bug of the site script which waits for the 'canplay' event to finish loading assets. It should set preload=auto to ensure 'canplay' will be fired. Otherwise, the default value for preload is 'metadata' on firefox (note the default value could be different on different user agents) which will just load enough data to decode metadata and doesn't guarantee 'canplay' will be fired.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Comment 13•8 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #11)
> Created attachment 8796606 [details]
> MediaDecoder:4,nsMediaElement:4,sync logs #1
>
> (both child and parent for completeness, but I assume you are only
> interested in the child log)
Thanks for the logs. Per comment 12, this is a bug of the site script.
Resolution: INVALID → FIXED
Comment 14•8 years ago
|
||
Then why FIXED and not INVALID?
Comment 15•8 years ago
|
||
I don't know why comment 13 changed INVALID to FIXED. might be an accident...
Resolution: FIXED → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•