Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by Sarcotome · Apr 07, 2015 at 12:39 AM · unity 5ioscrash

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:

alt text

alt text

[2]: /storage/temp/43957-screen-shot-2015-04-05-at-122618.png

screen-shot-2015-04-05-at-122618.png (460.2 kB)
screen-shot-2015-04-05-at-122629.png (44.2 kB)
Comment
Add comment · Show 5
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 hansadler · Apr 11, 2015 at 05:07 PM 0
Share

I'm getting this same exact error. Have you found a way to fix it?

avatar image Sarcotome · Apr 11, 2015 at 05:37 PM 0
Share

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.

avatar image meat5000 ♦ · Apr 11, 2015 at 05:39 PM 0
Share

http://stackoverflow.com/questions/7277804/ios-iphone-ipad-ipodtouch-view-real-time-console-log-ter$$anonymous$$al

Trace the error perhaps?

avatar image hansadler · Apr 11, 2015 at 06:01 PM 0
Share

@meat5000 I tried deviceconsole. It works great, but the debug output from running my app from xcode had more information in this case. Thanks.

avatar image Prabhakaran · Jun 16, 2015 at 10:52 AM 0
Share

I am having the same issue , getting EXC_BAD_Access, with GetBifer(Inline).

4 Replies

· Add your reply
  • Sort: 
avatar image
0

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!

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 tkoknordic · Apr 15, 2015 at 02:29 PM 0
Share

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.

avatar image
0

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.

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 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.

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 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

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


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