• 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
0
Question by robin994 · Aug 11, 2016 at 10:16 AM · androidstartupdevicecrashesissues

Android game works in Unity SDK but doesn't work on device

After unity's update (5.4+) i can't make my game work in my smartphone... the game works into the SDK but when i build it and push it into the phone the game crashes on the startup (after loading screen). So I used logcat (logcat downside) to see what the problem was. Now i'm not using heavy teaxures (i just use 3 small textures xD) or other heavy stuff .... How can i fix this problem?

PS i noticed i have this problem in scenes where i use Canvas, maybe it is related but it's weird because i hadn't this problem before i updated unity :/

logcat :

 08-11 12:12:16.217  1962  1976 I Unity   : (Filename: C Line: 0)
 08-11 12:12:16.217  1962  1976 I Unity   :
 08-11 12:12:27.384  1962  1976 D Unity   : [EGL] SwapBuffers: Surface invalid
 08-11 12:12:27.391  1962  1976 E Unity   : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
 08-11 12:12:27.391  1962  1976 E Unity   :
 08-11 12:12:27.391  1962  1976 E Unity   : (Filename: ./Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 136)
 08-11 12:12:27.391  1962  1976 E Unity   :
 08-11 12:12:27.391  1962  1976 I Unity   : Skipped rendering frame because GfxDevice is in invalid state (device lost)
 08-11 12:12:27.391  1962  1976 I Unity   :
 08-11 12:12:27.391  1962  1976 I Unity   : (Filename: ./Runtime/Misc/Player.cpp Line: 951)
 08-11 12:12:27.391  1962  1976 I Unity   :
 08-11 12:12:27.393  1962  1976 E Unity   : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
 08-11 12:12:27.393  1962  1976 E Unity   :
 08-11 12:12:27.393  1962  1976 E Unity   : (Filename: ./Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 136)
 08-11 12:12:27.393  1962  1976 E Unity   :
 08-11 12:12:27.393  1962  1976 I Unity   : Skipped rendering frame because GfxDevice is in invalid state (device lost)
 08-11 12:12:27.393  1962  1976 I Unity   :
 08-11 12:12:27.393  1962  1976 I Unity   : (Filename: ./Runtime/Misc/Player.cpp Line: 951)


Comment
Add comment · Show 2
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 liortal · Sep 14, 2016 at 06:50 PM 0
Share

what rendering settings are you using ? also are you using multithreaded rendering? You can view all settings under Player Settings -> Other Settings

avatar image xenophy liortal · Sep 14, 2016 at 09:24 PM 0
Share

$$anonymous$$y Setting is following image and I'm using 5.4.1f1.

Screenshot

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by xenophy · Sep 14, 2016 at 02:07 PM

Hi @robin994.

Do you had with the Android Plugin? I also the same problem has occurred.

When your native code generate IntentReceiver(ComponentName) you should add the "receiver" settings to AndroidManifest.xml in Plugins dir.

 <receiver android:name="YOUR_BUILD_IDENTIFER.MyReceiver">
     <intent-filter>
         your actions here.
     </intent-filter>
 </receiver>

I hope this will help.

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 subhan1 · Jun 26, 2018 at 12:58 PM 0
Share

Volla ... It Worked for me . Thanks @xenophy

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

101 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

Related Questions

Getting crashes related to android view layout 0 Answers

Android or iPhone - Unique identification of device? 6 Answers

[HELP] Unity 5.5 Android build crashes at startup 1 Answer

“activityStartTrigger: not whiteListed” on android builds 1 Answer

Multiplayer On One Device 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