heroiclabs / nakama-godot

Godot client for Nakama server written in GDScript.
Apache License 2.0
607 stars 72 forks source link

Game crashes on HTTP request #185

Open luiscesjr opened 1 year ago

luiscesjr commented 1 year ago

I'm experiencing a strange crash, which actually does not leave an error behind on the console, it simply crashes my game. Upon using breakpoints, I found out that on NakamaHTTPAdapter.gd, on func make_request(), upon getting at the end of the function the game simply crashes. No warnings, nothing.

This happens when I try to authenticate either by using an email and logging in normally, or by using a restore of a last session in my game.

How could I debug this, or has anyone had anything similar to this?

On Godot 4.2, dev 2, this PR was merged, could this have anything to do with this?

To further confirm this suspicion, Nakama Login works for me in 4.2 dev1, but on dev2, dev3 (Which also has an autoload bug) and dev4 this issue is present.

Edit: Latest Godot 4.2 dev5 still has this issue.

luiscesjr commented 1 year ago

As from the latest PR 186 , I tested the changes on Godot 4.2 dev 5 and the issue is still present, the game still crashes when trying to do any http request.

luiscesjr commented 1 year ago

Still the same problem on Beta 2, whatever I try to do that involves HTTP requests the game crashes.

And this is hard because I can't really play test my changes in multiplayer, I can't really test on my devices, etc.

What would be a way to debug this and help find the problem if there is no output to the editor nor to the cmd window?

novabyte commented 1 year ago

@dsnopek do you have any ideas what could cause this issue in Godot Engine?