howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

InvalidStateError - Internet Explorer

Open DFortun81 opened this issue 9 years ago • 1 comments

Hello! Firstly I'd like to say thanks for making and maintaining this library.

Our game has an error log that keeps track of every exception that gets thrown on the JavaScript layer and it has come to our attention that there are a couple of issues involving "InvalidStateError" with certain users that are using Internet Explorer. As our target audience are old players, this hits us a bit harder than it does everyone else. (some 60% of the user base, unfortunately, chooses to use the abomination known as IE.)

Using the unminified version of Howler, we were able to isolate the lines of code responsible for these exceptions: Lines 759 and 921. As you can see, the user agents experiencing this issue are all Internet Explorer users. The list is much longer, but I figured seeing 50 or so entries of the same terrible web browser wouldn't actually help solve the issue.

howler.js @ 759 InvalidStateError mozilla/5.0 (windows nt 6.3; win64; x64; trident/7.0; touch; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; tablet pc 2.0; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; mcafee; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; hpntdfjs; h9p; mcafee; rv:11.0) like gecko mozilla/5.0 (windows nt 10.0; wow64; trident/7.0; .net4.0c; .net4.0e; .net clr 2.0.50727; .net clr 3.0.30729; .net clr 3.5.30729; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; win64; x64; trident/7.0; touch; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; tablet pc 2.0; mcafee; rv:11.0) mozilla/5.0 (windows nt 6.3; win64; x64; trident/7.0; touch; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; tablet pc 2.0; hpdtdfjs; rv:11.0)

howler.js @ 921 InvalidStateError mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; mcafee; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; hpntdfjs; h9p; mcafee; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; mcafee; tajb; rv:11.0) like gecko mozilla/5.0 (windows nt 10.0; wow64; trident/7.0; .net4.0c; .net4.0e; .net clr 2.0.50727; .net clr 3.0.30729; .net clr 3.5.30729; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; win64; x64; trident/7.0; touch; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; tablet pc 2.0; mcafee; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; hpdtdfjs; bri/2; gwx:downloaded; gwx:reserved; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; win64; x64; trident/7.0; touch; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; tablet pc 2.0; hpdtdfjs; rv:11.0) like gecko mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; .net4.0e; .net4.0c; .net clr 3.5.30729; .net clr 2.0.50727; .net clr 3.0.30729; mcafee; rv:11.0) like gecko

And then sometimes there are gems like this one:

howler.js @ 1953 The Media Foundation platform is disabled when the system is running in Safe Mode. mozilla/5.0 (windows nt 10.0; wow64; trident/7.0; .net4.0c; .net4.0e; .net clr 2.0.50727; .net clr 3.0.30729; .net clr 3.5.30729; mcafee; rv:11.0) like gecko

If you could get HowlerJS to be compatible with Safe Mode, that would be great. [/epicgrin]

DFortun81 avatar Jun 16 '17 17:06 DFortun81

Closing due to inactivity. If this is still an issue, reply with more info and I'll reopen.

goldfire avatar Jun 21 '20 16:06 goldfire