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 Kiloblargh · May 24, 2012 at 03:10 PM · errorioscrashxcode

What might make an iOS game crash out without any Xcode error messages?

Normally if I run my game from XCode and it runs into an error and quits, it shows a bunch of assembly code and flags something, usually an EXC-BAD-ACCESS (ie NullReferenceException).

But now I'm having a problem where after a couple of minutes it just quits, after nothing obvious happened- and there is no debug error message showing up. What could be the reason for that?

Comment
Add comment · Show 4
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 whydoidoit · May 24, 2012 at 03:30 PM 0
Share

Running out of memory maybe? Any sign of a application did receive memory warning?

avatar image Kiloblargh · May 24, 2012 at 04:28 PM 0
Share

Nope; I mean there is literally absolutely nothing in the XCode window. The game just closes and Xcode acts like nothing happened. (Says 'Finished running..." Is there a setting to give more error messages?

avatar image whydoidoit · May 24, 2012 at 04:30 PM 1
Share

XCode is a right pain - have you tried switching debuggers between lldb and gdb in case you get any extra stuff? You can turn on some extra logging but a lot of it only works on the simulator - that's all memory related stuff.

avatar image dannyskim · May 24, 2012 at 05:23 PM 0
Share

I would recommend doing what @whydoidoit suggested, there may be something in the new debugger that gdb is missing if that's what you're defaulting to...

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by tomka · May 25, 2012 at 07:23 AM

I had this issue in Unity 3.4.x. The solution was make sure XCode was using the LLVM compiler (or was it the GCC compiler?... there's only two, try both).

Also worth double checking:

  • it's building for iOS and not iOS Simulator. Make sure this is set properly both in the Unity Player settings and in your XCode project

  • Architectures are armv6 and armv7

Comment
Add comment · 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 Kiloblargh · Jun 08, 2012 at 03:33 PM 0
Share

LLV$$anonymous$$ is the new one, GCC is the old one. It defaults to LLV$$anonymous$$. If using LLV$$anonymous$$ can cause crashes, that's a big bug both Apple and Unity need to know about...

I don't actually want to support armv6; isn't that just for very old iPhones that would get poor framerate and can't run iOS5 or display any of my shaders correctly?

avatar image
0

Answer by shrishaster · May 08, 2014 at 12:43 PM

Have you tried reading the registers?

First go to Exceptions tab and 'Add Exception Breakpoint' using the + at the bottom left corner. enter image description here

Then when the app crashes click on "0 objc_exception_throw" under Thread 1

enter image description here

Finally in the console enter:

  • register read (you should get a list of registers)

  • po $rax (normally the exception is in 'rax')

(you should see the exception output on the console)

Hope this helps.

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

Answer by Jespertheend2 · Apr 26, 2015 at 08:32 PM

I have been trying to fix this issue for the last 2 hours or so and I turned out I simply had a break point in Xcode. This might not be the case for you but if anyone stumbles upon this thread, check your breakpoints.

In Xcode click this arrow

breakpoint arrow

then right click your breakpoint and delete it

delete breakpoint

Not sure if this will be helpful to anyone or if I was just being stupid, but save yourself 2 hours and check your breakpoints :)

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

Follow this Question

Answers Answers and Comments

9 People are following this question.

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

Related Questions

iOS Xcode Error: Thread 1: EXC_BREAKPOINT 0 Answers

Xcode Error when uploading unity game "Shell Script Invocation Error" 0 Answers

Unity 2018 is not adding bundle identifier in Xcode Build Settings 1 Answer

iOS game freezes on startup 0 Answers

SIGABRT error when trying to run on device 2 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