• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by VladNeykov · May 12, 2014 at 07:01 AM · crashxcodeexception

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)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image VladNeykov · May 13, 2014 at 11:45 AM 0
Share

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.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS Build Crash : task_set_exception_ports(B07, 400, D03, 0, 0) Error 0 Answers

iOS build crashing after upgrading to Unity 5.3.2f1 0 Answers

Android Build Throwing SecurityException 0 Answers

Xcode crashes on multidimensional bool array (bool[,,]) 1 Answer

Unity Personal 5.2.1f1 splash screen and xcode 7 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges