- Home /
Windows Phone 8 - WiFi Network Lost - Crash
My app on Windows Phone 8 is crashing if the WiFI network is lost. I created a clean Unity project and reproduced the problem. It appears to be a Unity problem. Has anyone else hit this or know how to fix it?
Repro:
Made a Unity project, enabled networking (you do that for the Windows Store build or in the Exported Visual Studio project).
Export Windows Phone 8 build.
In Visual Studio, set the debug mode to Native Only (project properties->Debug).
Connect the phone to a WiFi network you can kill and delete all the other networks (so there is no failover).
Make sure the phone is connected to your WiFi. Debug/Start app.
Once up, kill the network.
Wait a few seconds for the phone to detect the WiFi network loss.
Notice the crash (if you enable all the exceptions in Vis Studio you can catch the crash).
System Info
Unity version 4.3.2f1.
Built on Windows 8 with Visual Studio 11.0.60610.01 Update 3
HTC Windows Phone 8
Windows Phone 8.0.103247.77
Callstack on the crash looks like this:
UnityPlayer.dll UnityPlayer.dll UnityPlayer.dll UnityPlayer.dll UnityPlayer.dll UnityPlayer.dll WINDOWS.NETWORKING.DLL WINDOWS.NETWORKING.DLL WINDOWS.NETWORKING.DLL WINDOWS.NETWORKING.DLL WINDOWS.NETWORKING.DLL NTDLL.DLL NTDLL.DLL NTDLL.DLL NTDLL.DLL