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 /
avatar image
2
Question by DavidMershon_BMGC · Sep 20, 2015 at 07:50 AM · crashwindowsloadingloadleveladditiveloadleveladditiveasync

Intermittent crash on LoadLevelAdditive, and LoadLevelAdditiveAsync

I am experiencing an intermittent crash when loading certain levels in my project. It happens during an additive load, and I have reproduced it using both LoadLevelAdditive, and LoadLevelAdditiveAsync.

My logs indicate that during at least one of the asynchronous loads, it happened at about 27% of the way through the loading process.

In one case, the game crashed during a load where I assigned the LoadLevelAdditiveAsync method call to an AsyncOperation, and set that AsyncOperation's allowSceneActivation variable to false.

Because of this, and because of the fact that the crash also happens when using LoadLevelAdditive, I am fairly certain that none of the code in any of the scripts in the scene that I am loading can be causing the crash, since in theory none of it should have been able to execute at the time when the crash happened. Also, I placed debug statements in the Awake() methods of every script that I had written for that scene, and none of them fired before the crash happened.

Sometimes the game crashes on the first load of one of these scenes, but sometimes it takes more than 15 attempts to reproduce. Only scenes associated with one particular minigame within a much larger project cause the crash. The game never crashes or even throws an error in editor, only when built to a windows desktop app.

This is the output log from the most recent crash

Thanks in advance for any help.

output-log.txt (50.3 kB)
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Oxygame · Jul 19, 2016 at 08:03 PM

Hi @DavidMershon_BMGC. I have the same problem. Absolutely same case and the same behavoiur. Did you fixed this? What the solution. I began an open beta test of my game- and this happen on almost all hardware

I'm working on Unity 5.3.1

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 DavidMershon_BMGC · Jul 19, 2016 at 09:01 PM

Hi @Oxygame, I'm sorry to hear that you're having this problem. The good news is I was able to solve it.

After an extensive debugging investigation, I determined that the crash was being caused by a bug in unity's scene loading routine. Sometimes when the game tried to load a certain 3d mesh additively, the game would crash.

I was able to solve the problem by making the objects that I wanted to load into prefabs, and then loading those prefabs with Resources.Load(), instead of loading the scene they were in with an Application.LoadLevelAdditive().

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

MonoDevelop crashes when opening it 2 Answers

How to use Occlusion Culling with LoadLevelAdditive 1 Answer

build crashes 1 Answer

Why won't Unity Editor open? 8 Answers

How to force my *.exe to crash 1 Answer


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