Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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
2
Question by Wawro01 · Aug 05, 2015 at 01:46 PM · ioscrashassetbundle

Crash when destroying scene object loaded from AssetBundles

Hi,

I implemented asset bundles. I'm loading all levels from them and levels are loaded ok .But now when I try to destroy root object of loaded level, game will crash.

It happens only on iOS. There is NO error or exception in editor. I've noticed that game will not crash when I include desired level in BuildSettings. (but still loading it from asset bundle). I am imagining why ActivateAwakeRecursively is called when destroying the objects ... this is strange for me. We are using unity 5.1.2p2 since there was some fix with crashes and AssetBundles, but unfortunately it didn't help.

Exception Type: EXC_CRASH (SIGSEGV) Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 1

Thread 0: 0 soldiers 0x00edca90 Unity::GameObject::ActivateAwakeRecursivelyInternal(Unity::DeactivateOperation, AwakeFromLoadQueue&) (GameObject.cpp:209)

1 soldiers 0x00edcb3e Unity::GameObject::ActivateAwakeRecursively(Unity::DeactivateOperation) (GameObject.cpp:223)

2 soldiers 0x00fd599e DestroyGameObjectHierarchy(Unity::GameObject&) (GameObjectUtility.cpp:1307)

3 soldiers 0x00fd5c7a DestroyObjectHighLevel(Object*, bool) (GameObjectUtility.cpp:1468)

4 soldiers 0x00f5da44 DelayedCallManager::Update(int) (CallDelayed.cpp:178)

5 soldiers 0x00fdb2a4 PlayerLoop(bool, bool, IHookEvent*) (Player.cpp:1920)

6 soldiers 0x00e49332 UnityPlayerLoopImpl(bool)

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 zach-r-d · Aug 06, 2015 at 12:36 AM 0
Share

That's a segmentation fault caused by a null pointer access and is thus totally Unity's bad. Report it as a bug.

avatar image DziDAI · Mar 07, 2016 at 04:47 PM 0
Share

Hello

Did you find any solution how to fix this bug?

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by ellioman · May 24, 2016 at 09:39 AM

Had a similar issue in a game I was porting to Apple TV, using Unity 5.3.5, where the game would crash in certain places when we tried loading different levels using AssetBundles.

I found this response from Unity in a bug report that says:

Asset bundles and code stripping don't play nicely together in any current versions of Unity. If an engine code type is used only in an asset bundle, and not in any scene that present at build time, then stripping will remove the engine code type, and an error like this will occur. We're working to correct this in a future version of Unity (likely 5.5), but the fix is pretty involved, so it cannot be back ported.

https://issuetracker.unity3d.com/issues/stripping-could-not-produce-class-with-id-111-and-crash-in-activateawakerecursivelyinternal

So the only solution for us was to uncheck the "Strip Engine Code" in the Build Settings.

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 Wawro01 · Aug 07, 2015 at 06:41 AM

Unity crashed when attempting to destroy object with LightProbesGroup. Deleting this object from scene prevents unity from crashing.

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 pgeorges · Oct 30, 2015 at 08:55 PM 0
Share

We're having the same error since 5.2.1f1. We have no light probes in our scene. Any idea?

avatar image
0

Answer by PaulPurcell-Unity · Mar 29, 2016 at 11:57 PM

Try setting Strip Engine Code to Disabled. http://docs.unity3d.com/Manual/class-PlayerSettingsiOS.html

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 DziDAI · Mar 30, 2016 at 08:20 AM 0
Share

That work! Thanks

avatar image
0

Answer by wbahnassi · Dec 07, 2018 at 06:31 AM

It still occurs in 2018.2 :) Asset bundles = death

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

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

Crash on iOS after upgrading to Unity 4 1 Answer

Using AssetBundles as IAP Crashing 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