Search Issue Tracker

Fixed in Unity 5.2.4

Votes

6

Found in

5.0.2p2

Issue ID

698667

Regression

Yes

[AssetBundles] Loading an uncompressed AssetBundle with CreateFromMemory causes a crash

Asset Loading

-

-

Priority: 2Necessary for shipping a final release

-

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

Unity crashes when loading an uncompressed AssetBundle repeatedly with AssetBundle.CreateFromMemory/CreateFromMemoryImmediate. How many times it loads before crashing varies and depends on each case.

To reproduce:
- Open the Test scene in the attached project.
- Play it on the Editor.
- It loads and unloads an uncompressed AssetBundle repeatedly.
- It will crash after a while.

If editor doesn't crash, close editor and repeat repro steps.

Comments (8)

  1. C0710a1570f4e8ed6991f57ab02becb6?d=mm

    shibasaki

    Dec 08, 2015 06:53

    According to patch release notes, this bug is fixed in 5.2.3p1. However we are seeing occasional crashes similar to this issue in 5.2.3p2. Is this issue really fixed in 5.2.3p1 or release note is just wrong?

  2. 4acf040ab69dcc4c8f791e31e2aec753?d=mm

    myplanet

    Dec 01, 2015 20:01

    Same here, 5.2.1f1

  3. 7600d61eee8167dcca92aed628f17665?d=mm

    frank28

    Nov 05, 2015 17:57

    I'd like to know is there any update about this bug?

  4. F4c7f9a34a077067790f22b18a6a4996?d=mm

    abgamers

    Oct 15, 2015 10:35

    Im still getting this problem in unity v5.2
    but it work fine on 5.0.1

  5. 71cb5bdc73bba20d73fc4c24f0fdbdfe?d=mm

    PNordlund

    Sep 08, 2015 11:35

    It still happens in 5.1.3f1. The asset bundle is uncompressed by looking at the crash log, Unity seems to be waiting for the bundle to be uncompressed:

    11 start + 52 (Unity + 8772) [0x100002244]
    11 main + 9 (Unity + 29987449) [0x101c99279]
    11 EditorMain(int, char const**) + 1494 (Unity + 29985318) [0x101c98a26]
    11 NSApplicationMain + 1832 (AppKit + 12868) [0x7fff8234a244]
    11 -[NSApplication run] + 594 (AppKit + 551667) [0x7fff823cdaf3]
    11 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346 (AppKit + 593496) [0x7fff823d7e58]
    11 _DPSNextEvent + 1828 (AppKit + 596989) [0x7fff823d8bfd]
    11 _NSHandleCarbonMenuEvent + 277 (AppKit + 1420512) [0x7fff824a1ce0]
    11 _HandleMenuSelection2 + 446 (HIToolbox + 614654) [0x7fff89d4b0fe]
    11 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 702 (HIToolbox + 615553) [0x7fff89d4b481]
    11 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96 (HIToolbox + 612873) [0x7fff89d4aa09]
    11 SendMenuItemSelectedEvent + 188 (HIToolbox + 613168) [0x7fff89d4ab30]
    11 SendMenuCommandWithContextAndModifiers + 59 (HIToolbox + 613261) [0x7fff89d4ab8d]
    11 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 428 (HIToolbox + 360261) [0x7fff89d0cf45]
    11 SendEventToEventTarget + 40 (HIToolbox + 122038) [0x7fff89cd2cb6]
    11 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386 (HIToolbox + 32686) [0x7fff89cbcfae]
    11 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1260 (HIToolbox + 35692) [0x7fff89cbdb6c]
    11 NSSLMMenuEventHandler + 724 (AppKit + 2346347) [0x7fff82583d6b]
    11 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107 (AppKit + 3258546) [0x7fff826628b2]
    11 -[NSMenu _internalPerformActionForItemAtIndex:] + 35 (AppKit + 3258982) [0x7fff82662a66]
    11 -[NSMenu performActionForItemAtIndex:] + 131 (AppKit + 3259136) [0x7fff82662b00]
    11 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff86547cd7]
    11 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 (AppKit + 2443644) [0x7fff8259b97c]
    11 -[NSMenuItem _corePerformAction] + 382 (AppKit + 2444366) [0x7fff8259bc4e]
    11 -[NSApplication sendAction:to:from:] + 452 (AppKit + 2444977) [0x7fff8259beb1]
    11 _os_activity_initiate + 75 (libsystem_trace.dylib + 3287) [0x7fff86547cd7]
    11 -[CocoaMainMenu executeStandard:] + 51 (Unity + 29867491) [0x101c7bde3]
    11 MenuController::ExecuteMenuItem(MenuItem&) + 68 (Unity + 29188180) [0x101bd6054]
    11 ScriptCommands::Execute(MenuItem const&) + 449 (Unity + 26908177) [0x1019a9611]
    11 ScriptingInvocationNoArgs::InvokeChecked() + 39 (Unity + 17709287) [0x1010e38e7]
    11 ScriptingInvocation::Invoke(MonoException**, bool) + 74 (Unity + 17706154) [0x1010e2caa]
    11 ??? (<AB3FA142-FB6C-35CB-978D-838C5A25084B> + 1235559) [0x109da2a67]
    11 ??? (<AB3FA142-FB6C-35CB-978D-838C5A25084B> + 39232) [0x109c7e940]
    11 ??? [0x12f15a906]
    11 ??? [0x12390dcfa]
    11 ??? [0x1239112ee]
    11 ??? (<59197289-2E7C-33F2-A4D6-7E9DB5A9AF5D> + 5768242) [0x10ae83432]
    11 AssetBundle_CUSTOM_CreateFromMemoryImmediate(MonoArray*) + 86 (Unity + 30104262) [0x101cb5ac6]
    11 ExtractAssetBundle(unsigned char const*, int, bool) + 316 (Unity + 16128508) [0x100f619fc]
    11 UnityWebStream::WaitForThreadDecompression() + 26 (Unity + 30071450) [0x101cada9a]
    11 Thread::WaitForExit(bool) + 45 (Unity + 19398381) [0x10127feed]
    11 PlatformThread::Join(Thread const*) + 141 (Unity + 19419645) [0x1012851fd]
    11 __semwait_signal + 10 (libsystem_kernel.dylib + 91274) [0x7fff8da7148a]
    *11 semaphore_wait_continue + 0 (kernel + 1353536) [0xffffff800034a740]

  6. 6af603d0299407a9d88cc114c66f6165?d=mm

    dred236

    Jul 28, 2015 02:41

    I have the same problem

  7. 8977fad2caf831babce04ba577109b61?d=mm

    niubaisui

    Jul 23, 2015 09:02

    yes

  8. 55254a0ab2e9adde30f7b30badddad62?d=mm

    LiZHAO

    Jun 18, 2015 16:51

    I meet this problem too

All about bugs

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