Search Issue Tracker

Fixed in Unity 2018.1

Votes

54

Found in

2017.3.1p2

Issue ID

1010317

Regression

Yes

[Regression] AssetBundleManager crashes editor in GetAllScenePathsFromAssetBundle

Asset Bundles

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash, freeze, data loss, work stops

How to reproduce:
1. Download attached project
2. In Unity, under Tools/Configuration..., click on Generate with the default settings.
3. Open the scene named GameLoading.unity
4. Under Ludia/AssetBundles/Choose Source, select 'Luna Server'
5. Launch a standalone build to initialize/create a bunch of things: Under Ludia/Build Game, select Debug-Dev-Remote and let the others box unchecked. Press Build.
6. Next time you press Play in the Editor, it should get into the bootstrap scene, try to download assets and crash.

Actual result: Editor crash while loading

0x00000001403AD44A (Unity) GetAllScenePathsFromAssetBundle
0x00000001403ADE13 (Unity) AssetBundleManager::UnloadAssetBundle
0x0000000141B252C6 (Unity) DownloadHandlerAssetBundle::PerformAbort
0x00000001406D38DA (Unity) BackgroundJobQueue::ExecuteMainThreadJobs
0x000000014071E892 (Unity) `InitPlayerLoopCallbacks'::`5'::EarlyUpdateExecuteMainThreadJobsRegistrator::Forward
0x000000014071CA60 (Unity) PlayerLoop
0x00000001411DE245 (Unity) PlayerLoopController::UpdateScene
0x00000001411DF7C8 (Unity) PlayerLoopController::UpdateSceneIfNeeded
0x00000001411E9BDD (Unity) Application::TickTimer
0x000000014140EB0F (Unity) MainMessageLoop
0x00000001414103B5 (Unity) WinMain
0x0000000141E643A8 (Unity) __tmainCRTStartup
0x00007FFB40081FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFB40BDEFB1 (ntdll) RtlUserThreadStart

Reproduced with: 2017.3.1p1, 2017.3.1p2
Not reproduced with: 2017.3.1f1
Regression since: 2017.3.1p1 (0c5e59582224)

Comments (8)

  1. 6b7b0073e5098df76fb5a29b41f9c69b?d=mm

    jisomark

    May 07, 2018 09:37

    In our case whn crashing on iOS we were pre-downloading asset bundles with the DownloadHandlerAssetBundle without accessing the asset bundle after the download was finished. After we changed the code to access the asset bundle and immediately unload it, the crashes seem to be gone now, but hard to be completely sure.

  2. 8de74d5d2f6f84c4e86c44d1ab101382?d=mm

    tomerpeledNG

    May 03, 2018 06:21

    Any workarounds?

  3. F4879764b380355e718e8f3813d3a66c?d=mm

    keni4

    Apr 24, 2018 13:33

    I've got crashes on Windows editor and iOS device.

  4. Af23522c191d088793f1e602f6932273?d=mm

    andriworld

    Apr 12, 2018 20:43

    Is this being worked on? We have not been able to upgrade since 2017.2.2f1 due to frequent editor crashes while loading bundles in later versions. Thanks

  5. Bdd97db1e7fed19b4a9641bd617115ed?d=mm

    korober

    Apr 07, 2018 10:15

    Have same issue on Windows in editor

  6. 2c2fd6b3a21f0c4eec04c14e3b0a2c02?d=mm

    CapyvaraTFG

    Apr 06, 2018 14:39

    We noticed that this bug was related to using WebRequest to cache bundles in background and not accessing the DownloadHandler.assetBundle property before the UnityWebRequest dispose.

  7. 2c2fd6b3a21f0c4eec04c14e3b0a2c02?d=mm

    CapyvaraTFG

    Apr 05, 2018 13:35

    Note this issue is not only Editor related, we're also having this crash on iOS.

    Reproduced in LTS Release 2017.4.0f1

  8. 6b7b0073e5098df76fb5a29b41f9c69b?d=mm

    jisomark

    Mar 23, 2018 11:20

    Also crashing with the same stacktrace on iOS devices when downloading multiple asset bundles.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.