I have been working on porting my app from Android to Windows 8 Phone and ran into a blocking issue:
Usually when I experience a crash I use the WP Power tool to pull the Unity log and look for debug.log lines I add to debug the issue.
I ran into a situation where the game is crashing at random points and can’t pinpoint why. The error I receive in the log is:
Error: Operation has failed with error 0x80070057: The parameter is incorrect.
(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/PlatformDependent/MetroPlayer/HandleSystemError.cpp Line: 19)
I do not get this at the same line every time so its hard for me to tell why. The game will continue for a couple of frames after this then crash.
Could you try going to project properties → debugging and select it to use the native debugger, then enable all exceptions under Debug → Exceptions and try running it again? When exception is thrown, visual studio will stop and let you inspect the stacktrace. It would be helpful if you could paste it here.
I figured it out by breaking one of my functions apart until I couldn’t reproduce the error. The problem was I had a WWW(url) call that I wasn’t even using anymore, I just still had it there from when the game was a web game. At the time the URL was an actual hyperlink and now it is a link to a Resource folder. Android and Iphone didn’t have a problem with it I guess, but it will crash the Windows Phone.