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 /
This question was closed Feb 01, 2019 at 10:30 AM by pako for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Zynpo · Sep 30, 2016 at 10:07 PM · androidcrash

Android app crashes on launch

Hello, my app crashes on launch. I tried removing everything from the scene but it still crashes.

This only happens on one of my Android devices. link textRuns fine on the others.

I ran adb logcat and I get the attached log file.

The last thing reported before the crash is:

ANativeWindow: (1440/2560) RequestedResolution: (0/0) EGLSurface: (1440/2560) [EGL] Unable to acquire context: EGL_BAD_MATCH: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a valid surface). (Filename: ./Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 250)

When I search the web it says this should be fixed. My version of Unity is 5.4.0f3

Thanks, --Mike

out.txt (11.6 kB)
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

4 Replies

  • Sort: 
avatar image
5
Best Answer

Answer by Zynpo · Oct 01, 2016 at 03:11 AM

I found the source of the crash.

We checked "Protect Graphics Memory" in Player Settings.

On some Androids this is not supported so the app just crashes.

This was extremely hard to narrow down!!

See: https://docs.unity3d.com/ScriptReference/PlayerSettings-protectGraphicsMemory.html

Comment
Add comment · Show 4 · 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 Relja-Trajkovic · Oct 21, 2016 at 08:00 PM 0
Share

Oh my god, this solved my problem too. As of this morning none of my builds would run on my Nexus 5x. Works on some other phones. I spent most of my day figuring this out and almost gave up. Found this post and tried unchecking "Protect Graphics $$anonymous$$emory". Issue fixed! :)

It was just above version number which is something I changed today. I must have clicked on it accidentally.

avatar image Threnody · Jan 18, 2017 at 04:03 PM 0
Share

Had the same issue with several Android Devices, and this solved our issue. Thank you!

avatar image Brozef · Apr 23, 2017 at 06:29 PM 0
Share

How can I uncheck this? I have searched everywhere but I am running Unity 5.3.5 and I can't find this option anywhere. I am 99% sure this is what is causing my app to crash on startup but I can't find "protect Graphics $$anonymous$$emory" anywhere in player settings and it is not on the Unity documentation page.

Does anyone know how to set this to false?

avatar image andrew_2992 Brozef · Mar 31, 2018 at 09:34 PM 0
Share

Hey Brozef, did you ever figure this out? I'm using 5.3.5f1 trying to support a game that was built with that version and i have the same problem. So far only reported on the Google Pixel XL. I don't have that setting either in 5.3.5 :(.

avatar image
21

Answer by binodlamagr · Jan 31, 2019 at 10:51 AM

This may not be related but here is my experience on same issue and how I SOLVED it.

While working on my game, I deleted Facebook SDK from my game because I couldn't make FB.AppRequest function work on my game. My game was building and working just fine before I deleted FB SDK but soon after that my app crashed on launch even before the splash screen. Using ABD tool, I found that my apk is still looking for some facebook related assets or things.

So I started looking for anything that still looks for facebook sdk assets and found facebook related code on androidManifest.xml at Assets>Plugins>Android. Once I deleted the code, my app ran just fine on my device.

Hope this will be of any help.

Thanks

Comment
Add comment · Show 11 · 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 Jankrut · Feb 01, 2019 at 03:31 AM 0
Share

Thanks so much!!!

avatar image slake_it · Feb 01, 2019 at 07:37 AM 0
Share

You're a life saver, Thank you very much

avatar image Daniel-Streck · Aug 08, 2019 at 11:30 PM 0
Share

thank you!

avatar image briosh · Aug 22, 2019 at 12:13 PM 0
Share

This was the solution for me as well! Thank you

avatar image chrisrolls55 · Oct 07, 2019 at 10:56 PM 0
Share

Perfect - thank you!

Show more comments
avatar image
3

Answer by Keatosis · Mar 27, 2018 at 06:57 PM

It crashes before the splash screen for me

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 Musicapparatus · Oct 01, 2016 at 09:11 AM

Did you upgrade this project from an earlier version by chance? It looks like the upgrade tool sometimes strips out sharers and makes them return null.

Comment
Add comment · Show 2 · 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 zaksek · Jun 23, 2017 at 08:45 AM 0
Share

Hey @$$anonymous$$usicapparatus , can you please explain your answer a bit further? I upgraded from Unity 5.6.0 to Unity 5.6.2 and what happens is when I run the .apk file of my project on Android (Huawei P7 lite), it runs the first scene (intro video of my app) and then the app crashes. $$anonymous$$aybe it's related with Unity version upgrade, so how can I solve the issue of stripped out shaders?

avatar image panendraommina · May 12, 2021 at 04:56 AM 0
Share

Yes I upgraded the game to some version . And the game crashes . So what I did is to downgrade the project to the version which I used originally to build this game . Thanks man

Follow this Question

Answers Answers and Comments

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

Related Questions

Unity Android app crashes on application quit 6 Answers

Android Unity game crashed on some devices after splash screen 0 Answers

Android App crash with UnityPlayer.destroy() 0 Answers

Android app crash at start because of error "Unable to get provider androidx.core.content.FileProvider" 1 Answer

HELP!! My Unity Crashed and scenes and objects are gone 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