Binary API Google Chrome and Edge browser issues (Win 10)

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Binary API Google Chrome and Edge browser issues (Win 10)

Postby meanvel » 12 May 2017, 00:59

Trying to get all browsers working on Windows 10. Run into a few issues. The Chrome error is critical.

1. Firefox - All good

2. Chrome (v51.0.2704.103)
Won't load... Get this error. "Uncaught TypeError: illegal invocation sfsApi.js:16"
(Version of chrome that came packaged with my MSI Motherboard software.)

Error for Buddy Messenger example...
sfs2x-api-1.7.0.js:16
Uncaught TypeError: Illegal invocation

3. Edge (v25.10586.0.0 - EdgeHTML v13.10586)
When I test via http://localhost/mygame, it only loads if I turn on developer tools, then refresh. Any idea whats with that?

Buddy Messenger example just shows up mostly blank. Just the logo showing on top.

4. IE (v11.494.10586.0) (I don't care about internet explorer, but these errors do occur.)
SCRIPT5009: 'Symbol' is undefined
sfsApi.js (8,2088)
SCRIPT5009: 'SFS2X' is undefined

Buddy Messenger error... The same.
SCRIPT5009: 'Symbol' is undefined
sfs2x-api-1.7.0.js (8,2088)

SCRIPT5009: 'SFS2X' is undefined
main.js (19,2)


In Windows 7... The Binary API worked fine in both Chrome and Firefox without any problems. I will update Chrome this weekend and see if that fixes it...
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby Bax » 12 May 2017, 09:23

Well, it seems we are back to the good old days of browser compatibility issues...

2. Chrome
We can't find version 51 to install it under Windows 10 and check.
With version 58.0.3029.110 everything works fine.

3. Edge
We are testing under Windows 10 with this version:
Microsoft Edge 38.14393.1066.0
Microsoft EdgeHTML 14.14393
Not sure if it is recent or not; in any case no issues show up. The Buddy Messenger is loaded and works as expected, whether developer tools are open or not. It also works if you open the index.html file of the example by double-clicking it.

4. Internet Explorer
We are testing under Windows 10 with this version:
11.1066.14393.0
Again not sure if it is recent or not. No issues at all.
Paolo Bax
The SmartFoxServer Team
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby Lapo » 12 May 2017, 09:51

I've tested on Chrome 51.0.2704.103 (macOS) and found no issues with the example in question.
If you still see the error, check the details in the browser's console. If the API version that is shown is < 1.7.2 you've probably an older example package.

In which case I'd recommend to download the latest from here:
http://smartfoxserver.com/download/sfs2x#p=examples

cheers
p.s. = I know you're under Windows, but Javascript runs in a virtual machine and a runtime error is likely to be triggered anywhere, regardless of the OS.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby Bax » 12 May 2017, 09:58

Good point Lapo!
meanvel, in your report I didn't notice that IE's error message shows the API version:

Code: Select all

SCRIPT5009: 'Symbol' is undefined
sfs2x-api-1.7.0.js (8,2088)


Please update to version 1.7.2 available here: http://www.smartfoxserver.com/download/sfs2x#p=client
(or download again the examples package as Lapo mentioned, which was updated with the latest API last week)
Paolo Bax
The SmartFoxServer Team
User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby meanvel » 13 May 2017, 00:44

Bax wrote:Good point Lapo!
meanvel, in your report I didn't notice that IE's error message shows the API version:

Code: Select all

SCRIPT5009: 'Symbol' is undefined
sfs2x-api-1.7.0.js (8,2088)


Please update to version 1.7.2 available here: http://www.smartfoxserver.com/download/sfs2x#p=client
(or download again the examples package as Lapo mentioned, which was updated with the latest API last week)


Updated. No change. I will update my Chrome version this weekend and see if that fixes things for Chrome. These issues will probably fix themselves once each browser is fully updated. At least one browser is working!

Wow, it's so much easier to develop in Flash. Just one single solid environment. This is why I completely ignored HTML5 when it first came out, and until just recently I considered it a Joke. But, it's starting to *slowly* mature into a stable platform.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby Lapo » 13 May 2017, 08:41

It's not a joke but it feels like going back 20 years :(
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
meanvel
Posts: 129
Joined: 19 Jan 2017, 14:06

Re: Binary API Google Chrome and Edge browser issues (Win 10)

Postby meanvel » 18 May 2017, 06:05

Lapo wrote:It's not a joke but it feels like going back 20 years :(


After updating browsers... All good on Chrome, Firefox, and Opera.

Probably should download a copy of Safari too... Oh god, this is giving me bad memories of the early days of CSS.

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 19 guests