-
Notifications
You must be signed in to change notification settings - Fork 284
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
WebSocket segfaults if connection to server drops out #2706
Comments
It looks like this is using the overload of For the crash itself, it looks like might be an order-of-destruction issue, where the GC destroys the referenced In the latter case, it would be necessary to catch the exception, either directly, or indirectly using a |
Sadly no, I do not directly make the requestHTTP call, that is being done by |
Okay, then there is also an overload of |
From what I can tell, I can't use the scope callback as the socket has to be a long lived object that is queried in a loop in things like games. |
Having it long lived shouldn't be an issue, the task is light-weight and as long as it doesn't perform heavy computations, it shouldn't interfere with anything else in the main thread. The task could then be connected to other tasks/threads by establishing a two-way communication channel, which, in contrast to |
I would need to figure out how to start/stop it on command, seems difficult considering how scope will destroy the object after it exits the scope |
|
Currently working on https://github.com/Inochi2D/vts-d
The example program segfaults if VTube Studio is closed and the WebSocket Server as a result stops sending data or if for some other reason data doesn't arrive properly.
In the log there's a
WARNING: HTTPClientResponse not fully processed before being finalized
warning before the crashExample Program
LLDB Backtrace
The text was updated successfully, but these errors were encountered: