Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception:GNet error, ENET_EVENT_TYPE_RECEIVE with invalid peer #294

Open
zarosath opened this issue Aug 16, 2023 · 6 comments
Open

Comments

@zarosath
Copy link
Contributor

zarosath commented Aug 16, 2023

~>Unhandled Exception:GNet error, ENET_EVENT_TYPE_RECEIVE with invalid peer
~>
tb
bt
~>
tb
~>StackTrace{
~>@/home/william/Documents/GitHub/MedievalDreams.io/Server.bmx<30,0>
~>Function Server
~>Global Host:TGNetHost=$00007f58e958ffa0
~>Global listen:Int=1
~>Global shutdown:Int=1
~>Local inputthread:TThread=$00007f58e956cd20
~>Local ServerMilliseconds:Int=69843000
~>@/home/william/Documents/GitHub/MedievalDreams.io/Server.bmx<28,0>
~>Local
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<835,0>
~>Function GNetSync
~>Local host:TGNetHost=$00007f58e958ffa0
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<539,0>
~>Function Sync
~>Local Self:TGNetHost=$00007f58e958ffa0
~>Local succ:TLink=Null
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<482,0>
~>Local
~>Local ev:ENetEvent=$00007f58e952cfa0
~>Local peer:TGNetPeer=$00007f58e958edc0
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<485,0>
~>Local
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<497,0>
~>Local
~>@/home/william/Desktop/BlitzMax/mod/brl.mod/gnet.mod/gnet.bmx<498,0>
~>Local
~>Local msg:TGNetMsg=Null
~>}
~>

@GWRon
Copy link
Contributor

GWRon commented Aug 16, 2023 via email

@zarosath
Copy link
Contributor Author

zarosath commented Aug 16, 2023

i thought this happens when a second peer connects but it is not, it is when data is set. it seems to connect but i am not sure when the error occurs let me do some debugging

@GWRon
Copy link
Contributor

GWRon commented Aug 16, 2023 via email

@zarosath
Copy link
Contributor Author

okay i've tested creating host, connecting to gnet and creating an object. no issue there. i shall review next session of code in debug mode.

@zarosath
Copy link
Contributor Author

zarosath commented Aug 17, 2023

when i step into gnetsync stepping every line it has no error but, after gnetsync(host) without stepping into every line, it lands on the throw exception error above, on line scangnet function (custom client function) which receives which objects created, modified and closed and collects floats of those objects to act accordingly. like getgnetfloat, later, before syncing, floats are set.. i was thinking perhaps it is trying to get such information before syncing that its throwing an error. the client does a series of gathering floats and setting them if they're different than the clients.

i do not understand and have the time if you dont either.

@zarosath
Copy link
Contributor Author

zarosath commented Aug 19, 2023

In release mode no gnet error happens. and everything works as intended, including disconnect timeout. debug mode is important and the previous error/enet error has been resolved with the latest gnet brl.mod merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants