• 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
Question by nyonge · May 10, 2015 at 10:06 AM · ioscrashiphonexcodethread

iOS Xcode Error: Thread 1: EXC_BAD_ACCESS

I'm getting a crash error whenever I run my iOS app with Xcode debugging on? When I run it without Xcode it runs okay at this point, but usually crashes shortly thereafter (or at least some of the buttons stop working).

The line that's being highlighted is line 59814 (!) of Assembly-CSharp.dll.s in the Libraries folder of my app:

 bl p_113

The highlight itself says Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

Anybody know what this means? It occurs when I open up a UI menu in my app (not the first UI menu, it honestly seems pretty arbitrary). Latest Xcode, Unity 5.0.1f1, latest iOS version on an iPhone 5S, if it helps.

Here's a screenshot of the issue: alt text

alt text

Thanks!

errorscreen1.png (286.5 kB)
screen-shot-2015-05-10-at-60524-am.png (95.0 kB)
Comment
jpthek9

People who like this

1 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 Louis-N-D · Apr 18, 2017 at 08:42 PM 0
Share

Darn. I'm getting a very similar error since moving to 5.6 except mine says "0 WriteVBOData..." and not the name of a script or function of mine.

The crash happens 100% of the time at the exact same spot only in iOS release builds. Does not happen in editor (no coinciding errors either) and doesn't happen in dev builds on iOS. It's so little info to go on, I've had a heck of a time trying to even think of how to debug this issue.

4 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by nyonge · May 10, 2015 at 09:14 PM

Solved! For anyone wondering, it was a null reference error that the editor didn't catch - it ran only in code available on the iPhone.

Null reference errors: because you always have the capacity to be an idiot.

(Also note that I was able to find it by the list on the far left, Thread 1, at the top it had the problem function highlighted which I didn't notice before - in this case, UIManager > UpdateIAPCurrency)

Comment
jpthek9
guywald
ChinaZXR
gabearts

People who like this

4 Show 0 · Share
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

Answer by vicwlau · Jun 24, 2016 at 05:02 AM

Hey thanks for sharing the solution. Any tips on how to efficiently debug this? I have a similar error and it is coming from NodeCanvas plugin. Is there a way to see the name of the game object that is causing the error?

Comment
Yakus-Actual
daviddickball

People who like this

2 Show 0 · Share
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

Answer by Aerhart941 · Jan 06, 2020 at 07:32 AM

@nyonge @vicwlau Thanks for the guidance but can you explain if you were able to identify which gameobject was causing the problem? I am currently getting this error as well.

Comment

People who like this

0 Show 1 · Share
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 nyonge · Jan 06, 2020 at 07:57 AM 0
Share

It’s different for every codebase. Look at all gameobjects you think may be the culprit, something may stand out. For debugging, there’s always

if (myGameObject == null) { Debug.LogWarning(“It was this one!”); }

Hope that helps!

avatar image

Answer by gabearts · Dec 25, 2020 at 06:09 AM

Great insight! I had the same error with a MacOS build, Xcode, and Unity version 2020.2.0f1. Turns out I had a null exception error with the first level I was loading.

Because of a foo = GameObject.Find("MyTransformName").GetComponent() null error without some kind of if(foo != null) check, the exception error threw off Xcode but worked fine in Unity. Goes to show, make sure you fix all your errors before upload. Thanks for the heads up.

It's possible also to get "silent errors", things that Unity won't catch but do fail in the final build whether it's HTML5 or iOs or whatever. It's rare once you know in your code where it can happen; takes a little guess work. Lesson learned: keep your code clean!

Comment

People who like this

0 Show 0 · Share
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

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

24 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 avatar image avatar image avatar image avatar image

Related Questions

Cannot start game on IPAD - EXC_BAD_ACCESS 2 Answers

iOS Xcode Error: Thread 1: EXC_BREAKPOINT 0 Answers

Apple Mach-O Linker Error with UnityAds in 5.5.0f3 0 Answers

Unity iPhone Bundle Identifier has not been set up correctly 0 Answers

Not getting crash reports from TestFlight in iOS app 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