Network - Android crash
Hi Sometime the app crashs at first network function. I got this behavior when the Android device was for a while in standby mode with disabled WiFi. After wake up and turn on WiFi. I wait until WiFi was connected and lunch my app. Then this crash happens. I started the app more then once and also turn WiFi off / on and could still reproduce this. If I restart the device with activated WiFi then the app runs fine.
Maybe it is a problem in Android but it would be great if the app doesn't crash and I could give a error message to the user.
Test as Server:
02-18 08:43:00.962 Amazon KFONWI Verbose 568 CrashDescriptorUtil backtrace: #00 pc 00d355e4 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (freeifaddrs+16) #01 pc 00d001b0 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (GetMyIP_Linux(SLNet::SystemAddress*, bool)+356) #02 pc 00d05028 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (SLNet::RakPeer::FillIPList()+64) #03 pc 00d047a0 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (SLNet::RakPeer::Startup(unsigned int, SLNet::SocketDescriptor*, unsigned int, int)+152) #04 pc 0085c4a8 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (Urho3D::Network::StartServer(unsigned short, unsigned int)+148) #05 pc 009dbf24 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (CSharp_Urho3DNet_Network_StartServer__SWIG_1+20) #06 pc 0000edee anonymous:caa04000
Test as Client:
02-18 08:38:37.463 Amazon KFONWI Verbose 568 CrashDescriptorUtil backtrace: #00 pc 00d355e4 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (freeifaddrs+16) #01 pc 00d001b0 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (GetMyIP_Linux(SLNet::SystemAddress*, bool)+356) #02 pc 00d05028 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (SLNet::RakPeer::FillIPList()+64) #03 pc 00d047a0 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (SLNet::RakPeer::Startup(unsigned int, SLNet::SocketDescriptor*, unsigned int, int)+152) #04 pc 0085b918 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (Urho3D::Network::Connect(eastl::basic_string<char, eastl::allocator> const&, unsigned short, Urho3D::Scene*, eastl::hash_map<Urho3D::StringHash, Urho3D::Variant, eastl::hash<Urho3D::StringHash, void>, eastl::equal_toUrho3D::StringHash, eastl::allocator, false> const&)+144) #05 pc 009dbbc0 /data/app/com.test.app-gE_w66QXSLIzB7QzVuMuhw==/lib/arm/libUrho3D.so (CSharp_Urho3DNet_Network_Connect__SWIG_0+288) #06 pc 00000b4e anonymous:c41de000
Is it Server or Client crash?
I try it in both direction. In first case I start the server on the Android device and it crashs. In the second try I start the server on Windows (works fine) and try to connect via Android device and it crashs.
After restarting the Android device it works in both directions fine.
We no longer use RakNet/SLikeNet so i am closing this as a likely no longer a problem.