Search Issue Tracker

Fixed in 2018.1.X

Fixed in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X

Votes

41

Found in

2017.2.0b7

Issue ID

943438

Regression

Yes

Loading an asset that has an Animator component from an Asset Bundle with LoadAsync throws "Assertion failed" error

Asset Bundles

-

The project provided uses "Asset Bundle Browser" tool but it has anything to do with the bug

To reproduce:
1) Open the attached project "943438repro"
2) From the menu open Windows -> Asset Bundle Browser
3) Press "Build" to build the Asset Bundle
4) Open "AssetBundleTest.unity" scene
5) Enter play mode
6) On the GUI in the top right corner press "Load Bundle (Async)"
Result: "Assertion failed: Assertion failed on expression: 'Thread::CurrentThreadIsMainThread()" Error is thrown

Note: this can be reproduced without the "Asset Bundle Browser" tool
When using the "Asset Bundle Browser" tool and the script for loading the asset in the project some minor tweaking might be required depending on the platform it is being tested on

Reproducible on both Mac and Windows

Reproduced on: 2017.3.0a5, 2017.2.0b8
Regression introduced with: 2017.2.0b6
Not reproducible on: 2017.2.0b5 and earlier

5.6.3p2

Comments (23)

  1. Cfbe34c57475c74177cb04975e950ccf?d=mm

    bluescrn

    Oct 31, 2017 10:42

    Seeing a lot of this error when using bundles in the editor with 2017.0.1p4 or 2017.1.1.f1 (haven't tried anything newer yet)

  2. 0ae7031ed9df59637ccefdaabc4f1ab0?d=mm

    Luwenzheng

    Oct 30, 2017 07:48

    Has this issue in 5.6.4p1

    Assertion failed on expression: 'Thread::CurrentThreadIsMainThread()'
    0x00000001417C3E1B (Unity) StackWalker::GetCurrentCallstack
    0x00000001417C5AFF (Unity) StackWalker::ShowCallstack
    0x000000014179FDC0 (Unity) GetStacktrace
    0x0000000140D4B13B (Unity) DebugStringToFile
    0x0000000140D4B91C (Unity) DebugStringToFile
    0x000000014083A80F (Unity) AnimationClip::BuildMecanimDataMainThread
    0x000000014083C3C3 (Unity) AnimationClip::Transfer<StreamedBinaryRead<0> >
    0x000000014084801B (Unity) AnimationClip::VirtualRedirectTransfer
    0x00000001414CF29E (Unity) SerializedFile::ReadObject
    0x000000014108EF7F (Unity) PersistentManager::ReadAndActivateObjectThreaded
    0x00000001410914E4 (Unity) PersistentManager::LoadFileCompletelyThreaded
    0x000000014102AB75 (Unity) LoadSceneOperation::Perform
    0x000000014102A290 (Unity) PreloadManager::ProcessSingleOperation
    0x000000014102A3FD (Unity) PreloadManager::Run
    0x000000014102AF47 (Unity) PreloadManager::Run
    0x00000001411D685C (Unity) Thread::RunThreadWrapper
    0x00007FF8BE3F2774 (KERNEL32) BaseThreadInitThunk
    0x00007FF8C00E0D51 (ntdll) RtlUserThreadStart

  3. C1727db7d98b960ede5c3e38e4f3bb8a?d=mm

    GaiaDreamCreation

    Oct 25, 2017 18:21

    I had this error "Assertion failed: Assertion failed on expression: 'Thread::CurrentThreadIsMainThread()'
    " when loading a prefab from an asset bundle in version 2017.1.1f1.

  4. 51a4ea5ae43053d00dd7c5416c6b2ce7?d=mm

    captain_zero

    Oct 24, 2017 07:57

    asserted 2017.2f3

  5. 29242e3df014554acd69ed6158f73037?d=mm

    zisaboy

    Oct 20, 2017 08:42

    Having the same on 5.6.3p4

  6. 6e9f961aa85ab0237a78df633f549358?d=mm

    drHogan

    Oct 20, 2017 08:12

    Having the same on 2017.2.0f3 64bits

  7. 0003948d26e1c9702737e1d8afcced09?d=mm

    mahdi_jeddi

    Oct 19, 2017 11:23

    I'm having this error on 5.6.3p4. Very annoying!

  8. 79393c2a8082cb2ea4df45050cb8775e?d=mm

    Jeong_Suhong

    Oct 17, 2017 07:58

    Noticed : 2017.2.0f3

  9. 083d9b81644907fc07953e699cb77036?d=mm

    Tassim

    Oct 13, 2017 10:47

    Same here on 2017.2.0f3 64bits. The issue drove me nuts until I found this report.

  10. 9c5e2c5ea480b256ffa813b2874f82d7?d=mm

    jasonnk

    Oct 13, 2017 07:55

    I've also been encountering this assert message from 2017.1.0p3

Add comment

Log in to post comment

All about bugs

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