• 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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

Android or iPhone - Unique identification of device? 6 Answers

Unity Editor 2018.4.20f1 LTS Crashes on Startup 0 Answers

Getting crashes related to android view layout 0 Answers

Multiplayer On One Device 1 Answer

Unity 3d Fatal error some device 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges