- Home /
Unity 5.0.1 ios app crashes on load
So I made an ios app that was running fine until I updated to unity 5.0.1, my other projects on ios do run fine, even after the update. The app run in the unity editor, but when it try to upload it to my iphone it crashes on load (before the splash screen) I have several issues botth in unity editor and the xcode editor.
Here is the output of xcode:
2015-04-05 12:26:07.987 ProductName[790:231479] -> registered mono modules 0x16fa190
-> applicationDidFinishLaunching()
Mono path[0] = '/private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed'
Mono config path = '/private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed'
-> applicationDidBecomeActive()
Requesting Resolution: 1136x640
Init: screen size 1136x640
Initializing Metal device caps
Initialize engine version: 5.0.1f1 (5a2e8fe35a68)
Begin MonoManager ReloadAssembly
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/UnityEngine.dll (this message is harmless)
Loading /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/UnityEngine.dll into Unity Child Domain
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/System.Core.dll (this message is harmless)
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/System.dll (this message is harmless)
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/Mono.Security.dll (this message is harmless)
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/Assembly-UnityScript.dll (this message is harmless)
Loading /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/Assembly-UnityScript.dll into Unity Child Domain
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/Boo.Lang.dll (this message is harmless)
Platform assembly: /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/UnityEngine.UI.dll (this message is harmless)
Loading /private/var/mobile/Containers/Bundle/Application/766A9E69-5AC8-471C-BF2E-6166AED46432/ProductName.app/Data/Managed/UnityEngine.UI.dll into Unity Child Domain
- Completed reload, in 0.043 seconds
Setting up 2 worker threads for Enlighten.
Thread -> id: 9850000 -> priority: 1
Thread -> id: 98d2000 -> priority: 1
/SourceCache/AcceleratorKit/AcceleratorKit-14.10/Framework/MTLVertexDescriptor.mm:633: failed assertion `Vertex attribute at index 0 references a buffer at index 1 that has no stride.'
And here are the issues in unity and xcode:
[2]: /storage/temp/43957-screen-shot-2015-04-05-at-122618.png
I'm getting this same exact error. Have you found a way to fix it?
Well I disabled static and dynamic batching, I changed the Graphics API from automatic to Open GL ES 3, and now it's even weirder, it runs fine the first time (sometimes), and if I try again it crashes with a different error, which is a EXC_BAD_ACCESS in the thread GETBUFFER
So now I've lost all hope and I'm just waiting for a patch.
@meat5000 I tried deviceconsole. It works great, but the debug output from running my app from xcode had more information in this case. Thanks.
I am having the same issue , getting EXC_BAD_Access, with GetBifer(Inline).
Answer by hansadler · Apr 11, 2015 at 06:42 PM
@Sarcotome I started disabling parts of my app to isolate what's causing the problem. I was able to isolate the problem to one of my objects that creates a dynamically generated mesh. With that code out of the picture, my app doesn't crash on android or iOS anymore.
This line in the log should have been my first clue: "Vertex attribute at index 0 references a buffer at index 1 that has no stride". It makes sense that that refers to an incorrectly created mesh, but I didn't catch on at first.
Now I just need to figure out what's wrong with my mesh code. I hope that gives you a clue how to fix your app!
I'm having the same error and crashes. Also on android, but with different error message. Game starts Nicely, and I can play levels. But when I go to main menu it crashes. I use generated meshes, but they are same in the game and in the menu.
Answer by LightYarn · Apr 16, 2015 at 12:42 PM
Hey everyone. I encountered the exact same problem and for me (Android build) it helped to disable multithreaded rendering.
Answer by chiajoe · Apr 17, 2015 at 12:18 PM
Same problem here, my problem comes from TextFx plugin. Already tried to disable Dynamic Batching, but without success. Some people solve this problem by disabling it.
For people has same problem as me, my problem was setting a empty string like to my TextFx object myeffect.SetText(""); Putting some text in string solved my problem.
Answer by mgsteinkamp · Apr 20, 2015 at 08:57 AM
Ran into this issue with a project that has nothing more than a camera and a canvas.
Disabling Audio is what fixed it for me.
XCode error is EXC_BAD_ACCESS, thrown by SoundManager.cpp:21.
Got the audio tip from http://answers.unity3d.com/questions/817963/receiving-unhandled-null-exception-in-mac-build.html?sort=oldest
Your answer
Follow this Question
Related Questions
iOS Build Crash : task_set_exception_ports(B07, 400, D03, 0, 0) Error 0 Answers
Unity iOs project gets crashed when returning from internal method UnityUpdateDisplayList() 2 Answers
Unity 5.6.5p2 Crash when iOS10 using keyboard 2 Answers
IOS Crash during build on Mac for Unity 5.3.4 0 Answers
Our Unity game crash random in iOS with Unity 5.3.5p7 0 Answers