Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
2
Question by abiramikv · Aug 16, 2017 at 07:45 PM · pause

Issues Pausing My App

When I try to pause my game, either by losing focus on the app or calling Application.Quit(), my app pauses/closes but behaves strangely and logs certain warnings/errors.

This is logged occasionally:

E/Unity: Error trying to call delegated method pause. null

This is logged every time:

W/ActivityManager: Activity pause timeout for ActivityRecord{MY ACTIVITY INFO HERE}

W/PackageManager: Failure retrieving resources for com.example.unitytest: Resource ID #0x0

W/Unity: Timeout while trying to pause the Unity Engine.

In addition, my onApplicationPause()/onApplicationQuit() functions are never called on my GameObjects (which are always active and solely contain Debug.Log statements). Any ideas for why this may be happening?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by dustinkerstein · Aug 22, 2017 at 05:55 PM

I can also replicate these errors, but I don't seem to be having any issues with getting my onApplicationPause() code to run.

These errors only seem to happen if VR Supported == True.

Comment
Add comment · Show 7 · 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 abiramikv · Aug 22, 2017 at 10:58 PM 0
Share

If I have a VR app, wouldn't it be necessary for me to have that boolean set to True? (Sorry, I neglected to mention that aspect of my app).

avatar image dustinkerstein abiramikv · Aug 23, 2017 at 12:02 AM 0
Share

Yes, that bool is required to be set True if you're using VR. I just wanted to clarify that this error only happens when it's set True.

avatar image fariazz · Aug 28, 2017 at 08:08 AM 0
Share

I'm having the exact same problem. After changing phones to an S8 can't build for the Google Cardboard and get those same errors in the log.

Where you able to find a solution?

avatar image dustinkerstein fariazz · Aug 28, 2017 at 12:01 PM 0
Share

I don't believe we're having the same issues as I am able to build my app with no errors. This is a runtime issue for me.

avatar image sosh · Mar 28, 2018 at 09:42 AM 0
Share

@dustinkerstein - did you ever get to the bottom of this? We are having similar runtime issues with daydream.

avatar image dustinkerstein sosh · Mar 28, 2018 at 02:54 PM 0
Share

@sosh - As it didn't seem to cause any direct issues for me, I just ended up ignoring it. I'm actually not sure if it even happens on the latest Unity build on my app. I'll test it when I get a chance this week.

avatar image sosh dustinkerstein · Mar 28, 2018 at 03:12 PM 1
Share

Thanks. It's happening in latest beta Unity for me. I've got associated problems, but I'm not 100% sure they are caused by this.

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

114 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 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 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 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 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

Enable/disable is not working as expected 2 Answers

Pausing Play on Android 0 Answers

Pause menu Change 0 Answers

NPC still moves even when paused. 1 Answer

How to pause my game when using Time.DeltaTime? 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