colyseus-haxe icon indicating copy to clipboard operation
colyseus-haxe copied to clipboard

Maximum call stack size exceeded when create client

Open NocoleNe opened this issue 2 years ago • 1 comments

Haxe Compiler 4.2.5, Windows 11, colyseus 0.14.9 for haxe

test code var client = new io.colyseus.Client("ws://localhost:3000"); client.joinOrCreate("roomeName", [], State, registRoomEvent);

function registRoomEvent(err:MatchMakeError, room:Room<State>) { trace("registRoomEvent"); }

Some error message from browser console, src/netTest/NetScene.hx:146: registRoomEvent Log.hx:66 io/colyseus/serializer/schema/Schema.hx:514: WARNING: @colyseus/schema definition mismatch?

Boot.hx:82 Uncaught RangeError: Maximum call stack size exceeded at [Symbol.hasInstance] () at js_Boot.__string_rec (Boot.hx:82:31) at Std.string (Std.hx:48:26) at netTest_State.toString (Schema.hx:764:34) at js_Boot.__string_rec (Boot.hx:113:16) at Std.string (Std.hx:48:26) at netTest_State.toString (Schema.hx:764:34) at js_Boot.__string_rec (Boot.hx:113:16) at Std.string (Std.hx:48:26) at netTest_State.toString (Schema.hx:764:34)

NocoleNe avatar Aug 14 '22 14:08 NocoleNe

Hi @NocoleNe, can you provide a repository with build instructions so we can reproduce this?

endel avatar Aug 15 '22 14:08 endel

Closing old issues, feel free to reopen if still facing it

endel avatar May 05 '23 21:05 endel