Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 dj10hudson · Aug 08, 2016 at 07:13 PM · ioscrashbackgroundcrash logexit

Application Crashes On Launch - How To Fix?

Hey guys,

I've been encountering a really nasty bug for the past couple of weeks that I can't seem to get rid of. I'm building an iOS game using the unity engine and the issue only arises on a mobile device. Basically what happens is when the application enters the background for a lengthy period of time (usually 2-3 days) and the user tries to play it again, it will instantly crash on launch and will continue to do this every time the user tries to launch the game. The game will not load properly again until the user re-installs the game.

As it stands now, I have the "Behavior in Background" setting under project settings set to "suspend" and I have custom code written in my project under the OnApplicationPause() function that changes the timeScale to 0 whenever the game enters the background and back to 1 again when it re-enters the foreground.

I believe the error lies when the application fails to exit properly. In my experience, I've never encountered the bug on my personal device because I am adamant about manually closing my apps on my iPhone (ie, double tapping the home button and swiping up), however, the majority of my friends who do not manually close their applications seem to frequently encounter the issue. Furthermore, the crash log that is generated produces a "failed to exit" bug. At the moment, I do not have any custom code written that handles the exiting sequence when the application is not manually closed.

I've tested this theory out on some other unity tutorials on the iPhone, and they all seem to encounter this same issue. For example, the space shooter iPhone tutorial on Unity's website (https://unity3d.com/learn/tutorials/projects/space-shooter-tutorial) produces the same error after the application is left in the background for a prolonged period of time and will instantly crash on launch until the application is reinstalled.

I'm not 100% sure that the exiting sequence is causing the issue, however. I'm relatively new to gamedev so I could be missing something obvious due to inexperience.

Has anyone else encountered this issue before? If so how did you fix it? Any help is greatly appreciated :)

crash log and OnApplicationPause: http://imgur.com/a/nAhNU

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How does unity manages exceptions in iOs 0 Answers

Can you help me understand this iOS Crash Log? 0 Answers

Crashing on iOS il2cpp RaiseOutofMemoryException 0 Answers

Call a Function When App Exits 4 Answers

Unity IOS(IPad2) auto exit app after loaded too many images 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