New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 675614 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Error loadind audio in new Chrome version - HeadersProvisional headers are shown

Reported by vesant...@gmail.com, Dec 19 2016

Issue description

Chrome Version       : 55.0.2883.87 m (64-bit)
URLs (if applicable) : localhost:9000
OS version               : Windows 10
Network (such as Cable/DSL/Dial up etc): Cable 100 Mbit/sec
Audio/Video format (if applicable): wav
Special chrome flags (if applicable): no

Behavior in Safari (if known): it work's
Behavior in Firefox (if known): it work's

Video issue, Audio issue, both, neither?

Flash or HTML5? : HTML5

What steps will reproduce the problem?
(1) I'm Load my HTML5  code, it start loading 10 wav files
(2) I see error at Network Console " Request HeadersProvisional headers are shown". But the same time i see well loaded file in console.
(3) All other files loded  well.

What is the expected result? Load the file properly

What is the actual result? Error of loading file

Any additional information: only last version make this bug

Please attach the HTML5/JavaScript code or audio/video :

  // loading WAV sound files

                if (messageKey == 'sound' || messageKey == 'machineSound') {
                    var obj = new Audio();
                    obj.addEventListener("canplaythrough", function () {
                        console.log('canplay through ' + key);
                        appSettings.imageLoaded++;
                        deferred.resolve({key: messageKey + '.' + key, el: obj});
                        this.removeEventListener("canplaythrough", arguments.callee);
                    }, false);

                    obj.addEventListener('error', function () {
                        console.log('error ' + key);
                        deferred.reject(src);
                       this.removeEventListener("error", arguments.callee);
                    }, false);

                    setTimeout(_.bind(function () {
                        obj.src = appSettings.assetsUrl + src;
                    }, this), 25);
                    console.log('ask ' + src);
                }

// resolve loading

 $.when.apply(this, resources).then(

            _.bind(function (values) {
                //JL().debug('Resources loaded successfully');
                _(arguments).reduce(function (memo, pair) {
                    memo[pair.key] = pair.el;
                    return memo;
                }, this._resources);
                this.initialize();
            }, this),
            _.bind(function (src) {
                JL().fatal({
                    "msg": "Failed to load resource",
                    "url": src
                });
            }, this)
        );


 
bug2.png
171 KB View Download
bug1.png
220 KB View Download
bug3.png
209 KB View Download

Comment 1 by vesant...@gmail.com, Dec 19 2016

Need your assistance to resolve this problem in new version.

Comment 2 by vesant...@gmail.com, Dec 19 2016

    sory forgot to add variable    var deferred = jQuery.Deferred();

Comment 3 by ajha@chromium.org, Dec 20 2016

Labels: M-55 prestable-55.0.2883.87

Comment 4 by vesant...@gmail.com, Dec 20 2016

 So it means this bug will be fixed in new version ? 
How much time does it takes you ?
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
vesantpro@ in order to triage this issue, could you please help us with sample html page, so that we can test this scenario on our end.

Thank You...

Comment 6 by vesant...@gmail.com, Dec 30 2016

Hello, add small page to show this situation. http://1c.sadok.net.ua/test.html

Cc: hubbe@chromium.org
+hubbe, sounds like you're hitting connection limits which I thought the new cache architecture helped with.

Comment 8 by hubbe@chromium.org, Jan 7 2017

How long are these wav files? If the wav files are short, they should load, close the connection and then continue loading the next file. However, you might need "preload = auto" for that. If the files are longer, the connections will stay open and only 6 files can load.

I'll take a look on Monday to see if I can figure out what is going on.


Two files for about 1 MB long, other can be different from 100 to 500 Kbyte. In the same time there can be more than 5 connections in order to load wav file.
my chrome version to be clear
chrome version.png
118 KB View Download

Comment 11 by hubbe@chromium.org, Jan 13 2017

Tried loading this page on windows ToT, windows stable and linux stable, and was not able to reproduce the bug. Loading all the WAV files takes a little time though, it's possible that there is some timeout issue somewhere that comes into play if loading took even longer.


In this case i just loading HTML5 audio objects (wav files), 
without any additional action (stop/play/etc.)

It was started immidiatly after new Chrome realese loaded.

Now it works fine on my laptop with previous Chome release.

It isn't my code bug, timeout or something else. 

Old vesion works fine, the new one not.
Project Member

Comment 13 by sheriffbot@chromium.org, Jan 23 2017

Labels: -Needs-Feedback Needs-Review
Owner: kkaluri@chromium.org
Thank you for providing more feedback. Adding requester "kkaluri@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Assigned (was: Unconfirmed)
Labels: -Needs-Review
Cleaning up sheriffbot label "Needs-Review" label as a part of modified "Needs-Feedback" sheriffbot rule. [ref bug for cleanup 684919]

Sign in to add a comment