- Home /
Crash in xCode, no errors in editor.
Hi gang,
I am developing an iPad game which started experiencing a crash on one of it's levels. This happens whenever I play it on the iPad, either via a fresh xCode build or starting it manually. The game itself runs (menu, settings, etc.) but crashes whenever the offending level itself is loaded, either via Application.LoadLevelAsync or if I just start with it from the get-go.
I get no errors or warnings whatsoever in the editor, and it plays fine via Unity remote. It used to work a few days back, and I've been unsuccessfully trying to retrace my steps to see what changed.
The error I get in xCode is as follows:
libc++abi.dylib: terminating with uncaught exception of type std::length_error: basic_string::resize
I added a break point and it stops right here:
warsides`std::basic_string, stl_allocator >::resize(unsigned long, char) at basic_string.tcc:629:
I am at a loss as to how to find where exactly the issue is in my code, as the xCode information doesn't correspond to anything I recognise from my C# code.
Thank you in advance for your help!
'Vlad
(Using xCode 5.11 and Unity 4.3.4.f1)
Solved it, here's some more info in case someone comes upon this as well. The crash was caused by two public string variables I declared in a serializable class which was used in a few places as variables exposed to the editor. I felt that the strings will just start at a blank "" and not throw any errors (which was fine with Unity, but Xcode seemed to $$anonymous$$d.) Anywho, it was remedied by filling out the exposed string variables with some text content.
Your answer
Follow this Question
Related Questions
can't run game through xcode; works when launched from iphone 1 Answer
Unity Crash - Access Violation (0xc0000005) error 1 Answer
Not getting crash reports from TestFlight in iOS app 1 Answer
How to debug / idenitify a SIGABRT crash 0 Answers
Strange Xcode Error for iOS? YS Bundle Null Exception 0 Answers