Page 1 of 1

SFX JS 1.7.6 exception

Posted: 27 Oct 2017, 03:34
by aiversonwk
Hi:
I got an exception with Sfx 1.7.6.

Stack:
JS Exception: scope._sfs is null, file: assets/src/assets/plugins/sfs2x-api-1.7.6.js, lineno: 18
Stack: _threadRunner@assets/src/assets/plugins/sfs2x-api-1.7.6.js:18:16919


Reproduction steps:
1. Login game with Sfx
2. Set enableLagMonitor(true) open pingpong package
3. Try make connect lost(turn off wifi or switch it)
4. Recv onConnectionLost, remove eventListener, set enableLagMonitor(false), set sfx instance with null
5. Reconnect game

after steps, then ever pingpong package recv, this exception will happen.

so, is my fault or Sfx ?

Re: SFX JS 1.7.6 exception

Posted: 27 Oct 2017, 09:29
by Bax
When a disconnection occurs, the internal lag monitor is destroyed, so the enableLagMonitor(false) is not needed.
In any case this shouldn't do any harm.
Did you try to reproduce the issue with our simple Connector example (just adding the login and lag monitoring parts)?
This could let us better understand what is going on.