editor2-issues icon indicating copy to clipboard operation
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

Open subsoap opened this issue 5 years ago • 7 comments

Can probably be simulated with a slow connection / large document

subsoap avatar Sep 22 '19 07:09 subsoap

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.

subsoap avatar Sep 22 '19 14:09 subsoap

On what version of Defold did you get it?

AGulev avatar Sep 22 '19 14:09 AGulev

1.2.162

subsoap avatar Sep 22 '19 15:09 subsoap

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.

subsoap avatar Sep 22 '19 15:09 subsoap

Might be related to not setting a timeout? Is there a default timeout?

subsoap avatar Sep 22 '19 17:09 subsoap

HTTPExitHang.zip

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.

subsoap avatar Sep 22 '19 18:09 subsoap

yes, I can reproduce it on Windows 10

AGulev avatar Jun 24 '20 20:06 AGulev