editor2-issues
editor2-issues copied to clipboard
If a http.request() is active while doing msg.post("@system:", "exit", {code = 0}) the engine crashes to the point of not responding
Can probably be simulated with a slow connection / large document
Specific OS where this happened is Windows 10. It happens with small http.requests too which just are slow for whatever reason when trying to exit.
On what version of Defold did you get it?
1.2.162
There are no script errors / crash files produced either seemingly. It just hangs in some situations involving http.request not finalizing properly when app requests to exit.
Might be related to not setting a timeout? Is there a default timeout?
Here is a sample which hangs every time.
If a short timeout is included it does not hang for that long - it seems to hang as long as the timeout is set to so the default timeout must be long enough to make the app hang. So this needs to respect app exit and immediately fail active http requests.
yes, I can reproduce it on Windows 10