Search Issue Tracker

Fixed in 2018.3

Fixed in 2017.4, 2018.4, 2019.1, 2019.2

Votes

1

Found in

2018.3.0a1

2018.3.5f1

2019.1.0a1

Issue ID

1140019

Regression

No

[Mobile] Crash in "resize_initialized() [inlined] Construct at ConstructorUtility.h" using AssetBundle.LoadAssetAsync

Mobile

-

Reproduction steps:
1. Open the attached "CrashTest.zip" project.
2. Change the Platform to iOS or Android.
3. Click "AssetBundle > Builds" in the menu bar.
4. Build and run the project on a device.

Actual behavior:
- The application will crash before reaching 500 "TR=" counter (~ 5 - 120 mins).

Call stacks (may vary on each crash):
...
frame #0: 0x0000000182d39d84 libsystem_platform.dylib`__bzero + 36
* frame #1: 0x000000010109a740 crashtest`::resize_initialized() [inlined] Construct at ConstructorUtility.h:112 [opt]
frame #2: 0x000000010109a73c crashtest`::resize_initialized() [inlined] default_construct_autolabel<unsigned char> at ConstructorUtility.h:173 [opt]
frame #3: 0x000000010109a73c crashtest`::resize_initialized() [inlined] default_construct_n_autolabel<unsigned char> at ConstructorUtility.h:181 [opt]
frame #4: 0x000000010109a73c crashtest`::resize_initialized() at dynamic_array.h:519 [opt]
frame #5: 0x00000001012978e4 crashtest`::TransferSTLStyleArray<dynamic_array<unsigned char, 0> >() [inlined] ResizeSTLStyleArray at SerializeTraits.h:467 [opt]
...
--------------------------------------------------------------------------------------------
...
* frame #0: 0x0000000183ef10b0 libsystem_malloc.dylib`malloc_error_break
frame #1: 0x0000000183eeed3c libsystem_malloc.dylib`szone_error + 240
frame #6: 0x0000000183ee60b0 libsystem_malloc.dylib`malloc + 32
frame #7: 0x0000000103be1a58 stg`::Allocate() at UnityDefaultAllocator.cpp:22 [opt]
frame #8: 0x00000001032e207c stg`::Allocate() at StackAllocator.cpp:84 [opt]
...

Reproduced with:
2018.3.12f1, 2019.1.0b10;
iPad Mini 4 iOS 11.4,
iPad Air 2 iOS 11.0.3,
VLNQA00218, Samsung Galaxy Note9 (SM-N960U), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630,
VLNQA00021, Samsung Galaxy S7 (SM-G930F), Android 7.0, CPU: Exynos 8 Octa 8890, GPU: Mali-T880,
VLNQA00010, Samsung Galaxy S8 (SM-G950U), Android 7.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540

Notes:
- Readme.txt file Overview part in the project folder explains how the application works in details.
- Call stacks may vary.
- Full call stacks attached in the edit below.
- 2017.4 is untestable: crashes with unrelated call stack on application launch.
- The project doesn't work properly with 2019.2.

Comments (3)

  1. 02a094e7cf9ec30036edb17c40a639d2?d=mm

    deviljz47

    May 14, 2019 06:27

    not repaired
    look at this
    https://zhuanlan.zhihu.com/p/59394832

  2. C2c2d88da24026ee4238f3ef98221442?d=mm

    dong-yeon

    Apr 12, 2019 08:01

    simaller issue iOS
    unity 2018.3.11

    Thread 0 name:
    Thread 0 Crashed:
    0 libsystem_platform.dylib 0x000000018255e51c 0x182556000 + 34076
    1 mummy 0x00000001006419d4 OffsetPtrArrayTransfer<float>::resize(int) + 6183380 (offsetptr.h:248)
    2 mummy 0x0000000100642488 void StreamedBinaryRead::TransferSTLStyleArray<OffsetPtrArrayTransfer<float> >(OffsetPtrArrayTransfer<float>&, TransferMetaFlags) + 6186120 (StreamedBinaryRead.h:77)
    3 mummy 0x0000000100a0be2c void mecanim::animation::ClipMuscleConstant::Transfer<StreamedBinaryRead>(StreamedBinaryRead&) + 10157612 (clipmuscle.h:194)
    4 mummy 0x0000000100a0b2e8 void AnimationClip::Transfer<StreamedBinaryRead>(StreamedBinaryRead&) + 10154728 (AnimationClip.cpp:2389)
    5 mummy 0x000000010090a51c SerializedFile::ReadObject(long long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&) + 9102620 (SerializedFile.cpp:2199)
    6 mummy 0x000000010090b67c PersistentManager::ReadAndActivateObjectThreaded(int, SerializedObjectIdentifier const&, SerializedFile*, bool, bool, PersistentManager::LockFlags) + 9107068 (PersistentManager.cpp:1689)
    7 mummy 0x000000010090b898 PersistentManager::LoadObjectsThreaded(int const*, int, LoadProgress&, bool, PersistentManager::LockFlags) + 9107608 (PersistentManager.cpp:1759)
    8 mummy 0x000000010090baa8 PersistentManager::LoadObjects(int const*, int) + 9108136 (PersistentManager.cpp:1779)
    9 mummy 0x000000010057fd80 ProcessAssetBundleEntries(AssetBundle&, std::__1::pair<std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, std::__1::__tree_node<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, void*>*, long> >, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, std::__1::__tree_node<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, void*>*, long> > > const&, ScriptingSystemTypeObjectPtr, dynamic_array<Object*, 0ul>&, bool) + 5389696 (AssetBundleLoadAssetUtility.cpp:63)
    10 mummy 0x000000010057fb54 LoadNamedObjectFromAssetBundle(AssetBundle&, core::basic_string<char, core::StringStorageDefault<char> > const&, ScriptingSystemTypeObjectPtr const&) + 5389140 (AssetBundleLoadAssetUtility.cpp:84)
    11 mummy 0x000000010057711c AssetBundle::LoadAsset_Internal(core::basic_string<char, core::StringStorageDefault<char> >, ScriptingSystemTypeObjectPtr, ScriptingExceptionPtr*) + 5353756 (AssetBundle.cpp:278)
    12 mummy 0x00000001005be840 AssetBundle_CUSTOM_LoadAsset_Internal(Il2CppObject*, Il2CppString*, Il2CppObject*) + 5646400 (AssetBundle.bindings.gen.cpp:352)
    13 mummy 0x0000000101571db8 U5DU5BU5DU5DU5DU5BU5BU5DU5DU5BU5DU5DU5BU5DU5DU5BU5BU5BU5BU5DU5DU5DU5BU5BU5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5BU5DU5BU5BU5BU5D_U5DU5BU5DU5BU5BU5DU5DU5DU5BU5DU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5BU5DU5BU5BU5DU5DU5DU5BU5BU5DU5BU5DU5BU5DU5DU5BU5DU5BU5DU5BU5DU5DU5DU5DU5DU5D_m31C8456B372EF517B038593D085645CC3E007ED2 + 22109624 (Bulk_Assembly-CSharp_139.cpp:10246)
    14 mummy 0x0000000101941f98 U5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5DU5DU5BU5BU5BU5BU5BU5BU5DU5DU5DU5DU5BU5BU5DU5DU5BU5BU5BU5BU5BU5DU5DU5BU5DU5BU5DU5DU5DU5DU5BU5DU5BU5DU5BU5D_MoveNext_m06D07F9A31AE447D8CF7AEA3588933D2B90BBF10 + 26107800 (Bulk_Assembly-CSharp_44.cpp:31186)
    15 mummy 0x0000000103874898 SetupCoroutine_InvokeMoveNext_m9106BA4E8AE0E794B17F184F1021A53F1D071F31 + 58820760 (Bulk_UnityEngine.CoreModule_2.cpp:19352)
    16 mummy 0x00000001002e37e8 RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_IntPtr_t(void (*)(), MethodInfo const*, void*, void**) + 2652136 (Il2CppInvokerTable.cpp:103949)
    17 mummy 0x0000000100ec4598 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 15107480 (Runtime.cpp:539)
    18 mummy 0x00000001008d22f4 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 8872692 (ScriptingApi_Il2Cpp.cpp:246)
    19 mummy 0x00000001008da740 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 8906560 (ScriptingInvocation.cpp:347)
    20 mummy 0x00000001008e3a54 Coroutine::InvokeMoveNext(ScriptingExceptionPtr*) + 8944212 (Coroutine.cpp:232)
    21 mummy 0x00000001008e362c Coroutine::Run(bool*) + 8943148 (Coroutine.cpp:257)
    22 mummy 0x000000010075bedc DelayedCallManager::Update(int) + 7339740 (CallDelayed.cpp:179)
    23 mummy 0x0000000100838fd4 ExecutePlayerLoop(NativePlayerLoopSystem*) + 8245204 (PlayerLoop.cpp:347)
    24 mummy 0x0000000100839008 ExecutePlayerLoop(NativePlayerLoopSystem*) + 8245256 (PlayerLoop.cpp:365)
    25 mummy 0x00000001008391e8 PlayerLoop() + 8245736 (PlayerLoop.cpp:419)
    26 mummy 0x0000000100ac7000 UnityPlayerLoopImpl(bool) + 10924032 (LibEntryPoint.mm:269)
    27 mummy 0x000000010006a548 UnityRepaint + 58696 (UnityAppController+Rendering.mm:279)
    28 mummy 0x000000010006a434 -[UnityAppController(Rendering) repaintDisplayLink] + 58420 (UnityAppController+Rendering.mm:72)
    29 QuartzCore 0x0000000186cae194 0x186c9d000 + 70036
    30 IOKit 0x0000000182ba8718 0x182ba3000 + 22296
    31 CoreFoundation 0x00000001828b7d30 0x182834000 + 539952
    32 CoreFoundation 0x00000001828de934 0x182834000 + 698676
    33 CoreFoundation 0x00000001828de080 0x182834000 + 696448
    34 CoreFoundation 0x00000001828d8ea4 0x182834000 + 675492
    35 CoreFoundation 0x00000001828d8354 0x182834000 + 672596
    36 GraphicsServices 0x0000000184ad879c 0x184ace000 + 42908
    37 UIKitCore 0x00000001aee8fb68 0x1ae5d5000 + 9153384
    38 mummy 0x00000001000627a0 main + 26528 (main.mm:41)
    39 libdyld.dylib 0x000000018239e8e0 0x18239d000 + 6368

    Thread 0 name:
    Thread 0 Crashed:
    0 libsystem_platform.dylib 0x00000001d93f1ec8 _platform_memmove + 408
    1 mummy 0x0000000100e394f0 CachedReader::Read(void*, unsigned long) + 8328432 (CachedReader.cpp:97)
    2 mummy 0x0000000100afea70 void StreamedBinaryRead::TransferSTLStyleArray<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> >&, TransferMetaFlags) + 4942448 (StreamedBinaryRead.h:88)
    3 mummy 0x0000000100e50b08 void SerializeTraits<ShaderLab::FastPropertyName>::Transfer<StreamedBinaryRead>(ShaderLab::FastPropertyName&, StreamedBinaryRead&) + 8424200 (FastPropertyNameSerialization.h:28)
    4 mummy 0x0000000100e5d8a0 void StreamedBinaryRead::TransferSTLStyleMap<std::__1::map<ShaderLab::FastPropertyName, ColorRGBAf, std::__1::less<ShaderLab::FastPropertyName>, std::__1::allocator<std::__1::pair<ShaderLab::FastPropertyName const, ColorRGBAf> > > >(std::__1::map<ShaderLab::FastPropertyName, ColorRGBAf, std::__1::less<ShaderLab::FastPropertyName>, std::__1::allocator<std::__1::pair<ShaderLab::FastPropertyName const, ColorRGBAf> > >&, TransferMetaFlags) + 8476832 (StreamedBinaryRead.h:103)
    5 mummy 0x0000000100e58dec void Material::Transfer<StreamedBinaryRead>(StreamedBinaryRead&) + 8457708 (Material.cpp:253)
    6 mummy 0x0000000100ef651c SerializedFile::ReadObject(long long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&) + 9102620 (SerializedFile.cpp:2199)
    7 mummy 0x0000000100ef767c PersistentManager::ReadAndActivateObjectThreaded(int, SerializedObjectIdentifier const&, SerializedFile*, bool, bool, PersistentManager::LockFlags) + 9107068 (PersistentManager.cpp:1689)
    8 mummy 0x0000000100ef7898 PersistentManager::LoadObjectsThreaded(int const*, int, LoadProgress&, bool, PersistentManager::LockFlags) + 9107608 (PersistentManager.cpp:1759)
    9 mummy 0x0000000100ef7aa8 PersistentManager::LoadObjects(int const*, int) + 9108136 (PersistentManager.cpp:1779)
    10 mummy 0x0000000100b6bd80 ProcessAssetBundleEntries(AssetBundle&, std::__1::pair<std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, std::__1::__tree_node<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, void*>*, long> >, std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, std::__1::__tree_node<std::__1::__value_type<core::basic_string<char, core::StringStorageDefault<char> >, AssetBundle::AssetInfo>, void*>*, long> > > const&, ScriptingSystemTypeObjectPtr, dynamic_array<Object*, 0ul>&, bool) + 5389696 (AssetBundleLoadAssetUtility.cpp:63)
    11 mummy 0x0000000100b6bb54 LoadNamedObjectFromAssetBundle(AssetBundle&, core::basic_string<char, core::StringStorageDefault<char> > const&, ScriptingSystemTypeObjectPtr const&) + 5389140 (AssetBundleLoadAssetUtility.cpp:84)
    12 mummy 0x0000000100b6311c AssetBundle::LoadAsset_Internal(core::basic_string<char, core::StringStorageDefault<char> >, ScriptingSystemTypeObjectPtr, ScriptingExceptionPtr*) + 5353756 (AssetBundle.cpp:278)
    13 mummy 0x0000000100baa840 AssetBundle_CUSTOM_LoadAsset_Internal(Il2CppObject*, Il2CppString*, Il2CppObject*) + 5646400 (AssetBundle.bindings.gen.cpp:352)
    14 mummy 0x0000000101b5ddb8 U5DU5BU5DU5DU5DU5BU5BU5DU5DU5BU5DU5DU5BU5DU5DU5BU5BU5BU5BU5DU5DU5DU5BU5BU5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5BU5DU5BU5BU5BU5D_U5DU5BU5DU5BU5BU5DU5DU5DU5BU5DU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5BU5BU5DU5BU5BU5DU5DU5DU5BU5BU5DU5BU5DU5BU5DU5DU5BU5DU5BU5DU5BU5DU5DU5DU5DU5DU5D_m31C8456B372EF517B038593D085645CC3E007ED2 + 22109624 (Bulk_Assembly-CSharp_139.cpp:10246)
    15 mummy 0x0000000101f2df98 U5BU5BU5DU5BU5DU5BU5BU5DU5BU5DU5BU5DU5DU5BU5BU5BU5BU5BU5BU5DU5DU5DU5DU5BU5BU5DU5DU5BU5BU5BU5BU5BU5DU5DU5BU5DU5BU5DU5DU5DU5DU5BU5DU5BU5DU5BU5D_MoveNext_m06D07F9A31AE447D8CF7AEA3588933D2B90BBF10 + 26107800 (Bulk_Assembly-CSharp_44.cpp:31186)
    16 mummy 0x0000000103e60898 SetupCoroutine_InvokeMoveNext_m9106BA4E8AE0E794B17F184F1021A53F1D071F31 + 58820760 (Bulk_UnityEngine.CoreModule_2.cpp:19352)
    17 mummy 0x00000001008cf7e8 RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_IntPtr_t(void (*)(), MethodInfo const*, void*, void**) + 2652136 (Il2CppInvokerTable.cpp:103949)
    18 mummy 0x00000001014b0598 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 15107480 (Runtime.cpp:539)
    19 mummy 0x0000000100ebe2f4 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 8872692 (ScriptingApi_Il2Cpp.cpp:246)
    20 mummy 0x0000000100ec6740 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 8906560 (ScriptingInvocation.cpp:347)
    21 mummy 0x0000000100ecfa54 Coroutine::InvokeMoveNext(ScriptingExceptionPtr*) + 8944212 (Coroutine.cpp:232)
    22 mummy 0x0000000100ecf62c Coroutine::Run(bool*) + 8943148 (Coroutine.cpp:257)
    23 mummy 0x0000000100d47edc DelayedCallManager::Update(int) + 7339740 (CallDelayed.cpp:179)
    24 mummy 0x0000000100e24fd4 ExecutePlayerLoop(NativePlayerLoopSystem*) + 8245204 (PlayerLoop.cpp:347)
    25 mummy 0x0000000100e25008 ExecutePlayerLoop(NativePlayerLoopSystem*) + 8245256 (PlayerLoop.cpp:365)
    26 mummy 0x0000000100e251e8 PlayerLoop() + 8245736 (PlayerLoop.cpp:419)
    27 mummy 0x00000001010b3000 UnityPlayerLoopImpl(bool) + 10924032 (LibEntryPoint.mm:269)
    28 mummy 0x0000000100656548 UnityRepaint + 58696 (UnityAppController+Rendering.mm:279)
    29 mummy 0x0000000100656434 -[UnityAppController(Rendering) repaintDisplayLink] + 58420 (UnityAppController+Rendering.mm:72)
    30 QuartzCore 0x00000001ddcb249c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 828 (CADisplay.mm:2302)
    31 QuartzCore 0x00000001ddd7b3e8 display_timer_callback(__CFMachPort*, void*, long, void*) + 272 (CADisplayTimer.cpp:163)
    32 CoreFoundation 0x00000001d974ef0c __CFMachPortPerform + 188 (CFMachPort.c:522)
    33 CoreFoundation 0x00000001d9776758 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 (CFRunLoop.c:1996)
    34 CoreFoundation 0x00000001d9775ea4 __CFRunLoopDoSource1 + 440 (CFRunLoop.c:2133)
    35 CoreFoundation 0x00000001d9770c5c __CFRunLoopRun + 2140 (CFRunLoop.c:3152)
    36 CoreFoundation 0x00000001d97700e0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
    37 GraphicsServices 0x00000001db9e9584 GSEventRunModal + 100 (GSEvent.c:2245)
    38 UIKitCore 0x0000000206ad0c00 UIApplicationMain + 212 (UIApplication.m:4347)
    39 mummy 0x000000010064e7a0 main + 26528 (main.mm:41)
    40 libdyld.dylib 0x00000001d922ebb4 start + 4

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.