Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 jmcguirk · Sep 13, 2013 at 05:09 PM · ioscrashexceptionunity 4.2

Unity 4.2 IOS Exception Handling

Hey Folks,

I'm having trouble getting Unity to catch null pointer exceptions on IOS - even with explicit try/catch exceptions. Here's a rough sketch of my code

https://gist.github.com/jmcguirk/6553120

Each of these functions are called as a callback handler from a simple TK2dButton (Which is just a coroutine looking for input up).

In the editor, the errors are either uncaught (and logged to the console) or caught (and logged by my code).

Running this on device (IOS 6 on iphone, IOS 7 on ipad mini) produces the following hard crash

 #    Binary Image Name    Address    Symbol
 0    honorbound    0x00eced06    testflight_backtrace
 1    honorbound    0x00ecf954    TFSignalHandler
 2    libsystem_platform.dylib    0x3914d062    _sigtramp
 3    honorbound    0x00173d5f    m_11ba
 4    honorbound    0x00173d5f    m_11ba
 5    honorbound    0x00d6756b    m_4513
 6    honorbound    0x0142518f    mono_jit_runtime_invoke
 7    honorbound    0x014c71c7    mono_runtime_invoke
 8    honorbound    0x011819f3    scripting_method_invoke in ScriptingBackendApi_Mono.cpp on Line 176
 9    honorbound    0x011815e7    in ScriptingInvocationNoArgs.cpp on Line 94
 10    honorbound    0x011815a3    in ScriptingInvocationNoArgs.cpp on Line 78
 11    honorbound    0x011770c3    in MonoBehaviour.cpp on Line 533
 12    honorbound    0x011770db    in MonoBehaviour.cpp on Line 620
 13    honorbound    0x010b7973    in Behaviour.cpp on Line 178
 14    honorbound    0x010b7ccb    in Behaviour.cpp on Line 173
 15    honorbound    0x01154297    PlayerLoop in Player.cpp on Line 1853
 16    honorbound    0x00efb3c7    UnityPlayerLoop in LibEntryPoint.mm on Line 377
 17    honorbound    0x00ea9467    -[UnityAppController repaintDisplayLink] in UnityAppController.m


This is with Stripping Level "strip byte code" and Call Optimization set to "Slow and Safe"

Comment
Add comment
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

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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

4.2 iOS Exceptions Not Printed 2 Answers

iOS crash - how to locate exception 0 Answers

How do you make IOS storyboard launch screens work? 0 Answers

iOS: anti-aliasing causes exc_bad_access exception. 1 Answer

Unity 2018.1.9f1 crash when open Photo Album on iOS 10.x 0 Answers


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