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 /
  • Help Room /
avatar image
2
Question by getwreckedgame · Dec 11, 2016 at 12:32 AM · ios5.3

gfx device intialization failed and crash on iOS since Unity 5.5.0f03

After the applicationDidBecomeActive() method on iOS, I'm experiencing a crash that happens right when the app starts up. The log that is outputted is: "gfx device intialization failed", which I can not find anywhere if I research the issue.

1) App builds fine, all the way to running 2) When it runs, the splash screen shows 3) When the applicationDidBecomeActive() is called, it prints gfx device intialization failed and crashes without a log.

I have made a built on 5.5.0f02 fine, and am unable to downgrade.

Does anyone have suggestions on where this message may come from. Is it a unity message, or not, and how I should go about researching the cause? I do not have any experimental/different options toggled in the player.

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

5 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by GuyTidhar · Dec 11, 2016 at 05:47 PM

Try removing the "Metal" support for the time being, as it seems Unity has a bug regarding it.

You do it in the Player Settings of iOS, by switching off the "Auto Graphics API" and and removing (- sign) the Metal, keeping only the OpenGLES2 which is the older gfx API.

By doing that I avoid getting this until Unity fixes their issue.

alt text


screen-shot-2016-12-11-at-110139.png (15.7 kB)
Comment
Add comment · Show 3 · 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 siddharth3322 · Jul 27, 2017 at 01:05 PM 0
Share

This answer worked for me - because I don't have Firebase plugin exist into my project. To be more clear - here you find this option:

alt text

screen-shot-2017-07-27-at-63533-pm.png (19.3 kB)
avatar image anukrit · Oct 26, 2019 at 09:29 PM 0
Share

Hi, I am using AR$$anonymous$$it too and if I remove metal then the code won't work Any suggestions on this?

avatar image PNUMIA-Rob · Dec 24, 2019 at 06:13 PM 0
Share

Just encountered this issue using Unity 2018.4.14f1, replacing $$anonymous$$etal with OpenGLES2 or OpenGLES3 worked for us.

avatar image
3

Answer by The_Arrival · Nov 05, 2019 at 10:24 AM

Using Unity 2019.3 the issue still remains. The AutoGraphicsAPI flag is checked and i´m building fo simulator, so i´d expect it to resolve the correct API automatically :)

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 bigboer · Apr 02, 2020 at 12:05 PM 0
Share

I am having the same issue Unity 2019.3.7 - The think is i'm using Linear Color space and that requires $$anonymous$$etal graphics api. cannot revert to OpenGLS

avatar image
0

Answer by getwreckedgame · Dec 11, 2016 at 12:46 AM

Found the issue. It is caused by the Firebase 1.1.0 update.

Comment line 51 in MessagingDeps.cs: // Google.VersionHandler.InvokeStaticMethod(iosResolver, "AddPod", new object[] { "Firebase/Messaging" }, new Dictionary () { { "version", "3.10+" }, { "minTargetSdk", "7.0" } });

And delete the "libMessaging.a" file in the iOS directory.

Comment
Add comment · Show 3 · 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 stein84 · Feb 01, 2017 at 02:17 AM 0
Share

This one saved me with crash issue. The engine version was 5.3.6 f1 for my case. Just removing lib$$anonymous$$essaging.a without modifying $$anonymous$$essagingDeps.cs was enough though. I wonder how you found out this workaround. Anyway I asked Google for this issue cause I don't think Firebase $$anonymous$$essaging feature would work without lib$$anonymous$$essaging.a included. Cheers.

avatar image GuyTidhar · Feb 01, 2017 at 09:13 AM 0
Share

No - it has nothing to do with Firebase. We don't even use it (the SD$$anonymous$$ was never integrated in our code).

avatar image stein84 · Feb 02, 2017 at 01:37 AM 0
Share

GuyTidhar - Gfx device init failure should do with the GL settings most of the case. disabling GPU Frame capture from Xcode's Product - Scheme - Edit Scheme or following your answer's step would solve the issue but It was due to Firebase for $$anonymous$$e and getwreckedgame's case obviously :)

avatar image
0

Answer by hernanb · Aug 18, 2017 at 12:49 PM

I have the same problem, I embebed unity inside ios , and on ios i have installed firebase pods. The problem is i cant start my app. When the applicationDidBecomeActive() is called gfx device initialization failed.

then i cant find libmessaging.a or MessagingDeps.cs that i supouse there are files from unity firebase integration.

I try the OpenGles2 solution but this not was the problem. then i disabled from edit scheme de gpu frame capture, but it steel generate the same error.

Unity 2017.1.0p2 and xcode 8.3.3

thanks for your 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 nicloay · Dec 04, 2018 at 08:27 PM 0
Share

so.. did you find solution? In my case I have the same problem - that starting app from xcode stop with this err. But it actually works with starting app from the device.

avatar image
0

Answer by leoapp · Oct 24, 2020 at 04:40 AM

Solved it by unchecking Metal API Validation flag in Edit Scheme -> Run -> Diagnostics in Xcode. Using Unity 2020.1.9f1.


alt text


screen-shot-2020-10-24-at-073737.png (65.6 kB)
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

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

110 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

Related Questions

IL2CPP Build error Unity 5.3.1p4 0 Answers

Connecting Unity 5.3.0 Debugger to iOS device 1 Answer

Share Image Android / iOS 1 Answer

[Not Answered] Fog not working iOS Build 2 Answers

CG shader functions behaving oddly on iPad Pro 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