-
Notifications
You must be signed in to change notification settings - Fork 19
Crash on Android when async is false and no internet connection #30
Comments
I'll test it as soon as possible today. Thank you for the feedback |
I cannot reproduce the bug.
Can you give me more details? |
Ok I just tried your Openfl sample, and with wifi and mobile data off, and async set to false... i get the same crash as before. When it crashes i get 12-07 21:52:37.706 10026 10057 I trace : Lib.hx:360: Invalid socket handle I'm using Haxe 3.3.0 / OpenFL 3.6.1 (Legacy mode) / Lime 2.9.1 / Android SDK = 22 Running on Android 6 |
I set up my environment to the exact stuff you are using (haxe3.3.0, openfl 3.6.1 (legacy mode), lime 2.9.1, android-sdk=22) My phone is already running Android 6. It does still work perfectly, giving ERROR: 0 (http status 0) when wifi and mobile data off. |
It looks like this might be a nightmare to track down as I've just tested on a different device and it works fine. Acer Liquid E380 + Android 4.4.2 = Never crashes. It might be some weird threading issue, the Redmi Pro has a Helio 10-core processor. Here are my installed libs: http://pastebin.com/wmMwrevE |
Ok, help me to find out where the error is thrown. Can you tell me the context. Be sure to enable the log with |
Ok I did some digging and its crashing with invalid socket handle here https://github.com/yupswing/akifox-asynchttp/blob/master/com/akifox/asynchttp/AsyncHttp.hx#L298 Moving that line into the try block before connect seems to fix it. |
brilliant mate, thanks! |
Tested with the "Basic example"
It doesn't crash on Windows.
The text was updated successfully, but these errors were encountered: