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
0
Question by SolidSnake · Apr 26, 2013 at 09:52 AM · ioscrashassetbundleunity4

Crash on iOS after upgrading to Unity 4

Hi All,

I upgraded my project to Unity 4 recently.

with Unity 3.5 the application itself was running fine on both Android & iOS.

However, after upgrading I discovered a crash (iOS only on Android everything still in order) related to the way I am loading Assets from the Assetbundle (it didnt happen with the old build)

if I use LoadAsync to load an asset from assetbundle I get the EXC_BAD_ACCESS in a thread with stack calls ending with:

SubstanceSystem::WaitFinished(LoadProgress*)

PreloadLevelOperation::Perform()

if I use Load I dont get the issue

code:

 //crashes
 AssetBundleRequest assetBR = WWW.assetBundle.LoadAsync("avatarskeleton", typeof(GameObject));
 if (!assetBR.isDone) return false;
 
 //works
 GameObject avatarSkeleton = WWW.assetBundle.Load("avatarskeleton", typeof(GameObject));


I am wondering if anyone else has noticed similar issues after upgrading to Unity 4

Thanks

==EDIT==

Thanks to nomago for pointing out the stripping level. I reported a bug to Unity hope it will be fixed

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 nomago · Apr 26, 2013 at 04:47 PM 1
Share

I have the same problem trying to upgrade our project to Unity 4. The only fix for this that I've found has been to disable Code Stripping. Are you using code stripping in your project as well?

Would love to find a fix for this issue as I can find no reason for this. I've even tried adding System.Runtime.CompilerServices (something included by Unity in the LoadASync) in my link.xml as a namespace that is preserved. But that doesn't fix it either.

avatar image SolidSnake · Apr 26, 2013 at 04:55 PM 0
Share

actually I am using code stripping... I will disable it and see if that will stop the crash as well

avatar image SolidSnake · Apr 26, 2013 at 05:07 PM 0
Share

Disabling stripping level stopped the crash, Thanks for sharing. I guess its a new/regression bug on Unity's side.

avatar image ZenithCode · Apr 28, 2013 at 04:01 PM 0
Share

Write it down as an answer please.

avatar image SolidSnake · Apr 28, 2013 at 08:03 PM 0
Share

@ZenithCode done

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by SolidSnake · Apr 28, 2013 at 08:03 PM

Thanks to nomago for pointing out the stripping level. I reported a bug to Unity hope it will be fixed

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

14 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

Related Questions

WWW Crashing on IOS 4.3.3 for unity4 4 Answers

Load Asset from cache clash at ios device ( 5.6.2p1 ) 0 Answers

IL2CPP Crash on Instantiate(gameObject) 2 Answers

Is there a way to downgrade a project to 3.5? 2 Answers

Crash when destroying scene object loaded from AssetBundles 5 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