Search Issue Tracker

Fixed in 2019.1

Fixed in 2017.4, 2018.2, 2018.3

Votes

0

Found in

2017.3.1f1

Issue ID

1079532

Regression

No

Unity crashes on std::_Tree<std::_Tmap_traits<core::basic_string<char,core::StringStorageDefault when reimporting Assets

Asset Importers

-

How to reproduce:
1. Open user's attached project "Assets.zip"
2. Rightclick on Assets folder and choose "reimport"
-- Unity crashes --

Reproducible with: 2017.4.11f1, 2018.1.9f2, 2018.2.7f1, 2018.3.0b1

Note: with 2018.3.0b1 the project crashes on loading

First three lines of the stack trace:

0x00000001409512DC (Unity) std::_Tree<std::_Tmap_traits<core::basic_string<char,core::StringStorageDefault<char> >,int,std::less<core::basic_string<char,core::StringStorageDefault<char> > >,std::allocator<std::pair<core::basic_string<char,core::StringStorageDefault<char> > const ,int> >,0> >::lower_bound

0x0000000140D9B625 (Unity) std::_Tree<std::_Tmap_traits<core::basic_string<char,core::StringStorageDefault<char> >,int,std::less<core::basic_string<char,core::StringStorageDefault<char> > >,std::allocator<std::pair<core::basic_string<char,core::StringStorageDefault<char> > const ,int> >,0> >::find

0x0000000141368DD2 (Unity) SessionState::GetBool

Comments (4)

  1. 8ee4724f042000d16ec3696f9f6ee164?d=mm

    youdk

    Jan 15, 2019 03:04

    Hi, Unity
    Sorry for posting 3 duplicated comments, my network sucks.

    Here is the full Android crash log:

    01-14 18:17:02.516 5374-5434/? E/Unity: Could not allocate memory: System out of memory!
    Trying to allocate: 2478375169B with 16 alignment. MemoryLabel: String
    Allocation happened at: Line:303 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 130982337B | peak: 145449553B | reserved: 133294561B
    [ ALLOC_TEMP_JOB ] used: 204917B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GAMEOBJECT ] used: 5569444B | peak: 7496733B | reserved: 5828718B
    [ ALLOC_GFX ] used: 10274685B | peak: 20308373B | reserved: 10292070B
    [ ALLOC_PROFILER ] used: 256B | peak: 256B | reserved: 332B
    [ ALLOC_TEMP_THREAD ] used: 33732B | peak: 0B | reserved: 3375104B
    01-14 18:17:02.614 5374-5434/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 58f0e29c
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: ''
    Revision: '0'
    pid: 5374, tid: 5434, name: UnityMain
    r0 c537e19c r1 00000000 r2 00000001 r3 00000000
    r4 93b90100 r5 c537e198 r6 c537e198 r7 a1113874
    r8 00800101 r9 c537e240 sl 00036858 fp 00000000
    ip 80000000 sp c537e170 lr c56a4b94 pc c56a4a7c cpsr de0c4d10
    backtrace:

    Call stack:

    core::StringStorageDefault<char>::resize(unsigned int, bool)
    void StreamedBinaryRead::TransferSTLStyleArray<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> >&, TransferMetaFlags)
    void NamedObject::Transfer<StreamedBinaryRead>(StreamedBinaryRead&)
    void Material::Transfer<StreamedBinaryRead>(StreamedBinaryRead&)
    SerializedFile::ReadObject(long long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&)
    PersistentManager::ReadAndActivateObjectThreaded(int, SerializedObjectIdentifier const&, SerializedFile*, bool, bool, PersistentManager::LockFlags)
    PersistentManager::ReadObjectThreaded(int, PersistentManager::LockFlags)
    PersistentManager::ReadObject(int, AwakeFromLoadMode)
    ForcePreload(AssetBundle&, dynamic_array<int, 0u>, bool)
    ProcessAssetBundleEntries(AssetBundle&, std::pair<std::_Rb_tree_iterator<std::pair<core::basic_string<char, core::StringStorageDefault<char> > const, AssetBundle::AssetInfo> >, std::_Rb_tree_iterator<std::pair<core::basic_string<char, core::StringStorageDefault<char> > const, AssetBundle::AssetInfo> > > const&, ScriptingSystemTypeObjectPtr, dynamic_array<Object*, 0u>&, bool)
    LoadNamedObjectFromAssetBundle(AssetBundle&, core::basic_string<char, core::StringStorageDefault<char> > const&, ScriptingSystemTypeObjectPtr)
    AssetBundle_CUSTOM_LoadAsset_Internal(Il2CppObject*, Il2CppString*, Il2CppObject*)
    vk::RenderPassSwitcher::~RenderPassSwitcher()

  2. 8ee4724f042000d16ec3696f9f6ee164?d=mm

    youdk

    Jan 14, 2019 13:30

    Hi, Unity

    We got a crash after upgrading Unity version from 2018.1.4 to 2018.2.15 when reimporting asset:

    Crash log on Android(API target version 28):

    01-14 18:17:02.516 5374-5434/? E/Unity: Could not allocate memory: System out of memory!
    Trying to allocate: 2478375169B with 16 alignment. MemoryLabel: String
    Allocation happened at: Line:303 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 130982337B | peak: 145449553B | reserved: 133294561B
    [ ALLOC_TEMP_JOB ] used: 204917B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GAMEOBJECT ] used: 5569444B | peak: 7496733B | reserved: 5828718B
    [ ALLOC_GFX ] used: 10274685B | peak: 20308373B | reserved: 10292070B
    [ ALLOC_PROFILER ] used: 256B | peak: 256B | reserved: 332B
    [ ALLOC_TEMP_THREAD ] used: 33732B | peak: 0B | reserved: 3375104B
    01-14 18:17:02.614 5374-5434/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 58f0e29c
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: ''
    Revision: '0'
    pid: 5374, tid: 5434, name: UnityMain
    r0 c537e19c r1 00000000 r2 00000001 r3 00000000
    r4 93b90100 r5 c537e198 r6 c537e198 r7 a1113874
    r8 00800101 r9 c537e240 sl 00036858 fp 00000000
    ip 80000000 sp c537e170 lr c56a4b94 pc c56a4a7c cpsr de0c4d10
    backtrace:
    01-14 18:17:02.725 5374-5434/? E/CRASH: #00 pc 0021da7c /lib/arm/libunity.so

    Crash log on iOS:
    Crashed: Thread
    0 TestApp 0x100d30f74 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const (hash_set.h:636)
    1 TestApp 0x100d2dcc8 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 TestApp 0x1008aee24 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 TestApp 0x1008aed98 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)
    4 TestApp 0x1008aebdc GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)
    5 TestApp 0x100d2a0b4 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 TestApp 0x100d2e204 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:764)
    7 TestApp 0x10295d000 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955716
    8 TestApp 0x10295cf10 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955476
    9 TestApp 0x102b02648 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 22681740
    10 TestApp 0x10033db18 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:61738)
    11 TestApp 0x1014b3c40 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:521)
    12 TestApp 0x1014b48d8 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:458)
    13 TestApp 0x1014b47f0 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:614)
    14 TestApp 0x101475a24 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:169)
    15 TestApp 0x101481ab0 il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    16 TestApp 0x10148af1c il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    17 libsystem_pthread.dylib 0x1a6d8825c _pthread_body + 128
    18 libsystem_pthread.dylib 0x1a6d881bc _pthread_start + 48
    19 libsystem_pthread.dylib 0x1a6d8bcf4 thread_start + 4

    Can you confirm is this issue being the same issue as reported above? If yes, can you back port the solution to Unity 2018.2.XX?

  3. 8ee4724f042000d16ec3696f9f6ee164?d=mm

    youdk

    Jan 14, 2019 13:30

    Hi, Unity

    We got a crash after upgrading Unity version from 2018.1.4 to 2018.2.15 when reimporting asset:

    Crash log on Android(API target version 28):

    01-14 18:17:02.516 5374-5434/? E/Unity: Could not allocate memory: System out of memory!
    Trying to allocate: 2478375169B with 16 alignment. MemoryLabel: String
    Allocation happened at: Line:303 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 130982337B | peak: 145449553B | reserved: 133294561B
    [ ALLOC_TEMP_JOB ] used: 204917B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GAMEOBJECT ] used: 5569444B | peak: 7496733B | reserved: 5828718B
    [ ALLOC_GFX ] used: 10274685B | peak: 20308373B | reserved: 10292070B
    [ ALLOC_PROFILER ] used: 256B | peak: 256B | reserved: 332B
    [ ALLOC_TEMP_THREAD ] used: 33732B | peak: 0B | reserved: 3375104B
    01-14 18:17:02.614 5374-5434/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 58f0e29c
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: ''
    Revision: '0'
    pid: 5374, tid: 5434, name: UnityMain
    r0 c537e19c r1 00000000 r2 00000001 r3 00000000
    r4 93b90100 r5 c537e198 r6 c537e198 r7 a1113874
    r8 00800101 r9 c537e240 sl 00036858 fp 00000000
    ip 80000000 sp c537e170 lr c56a4b94 pc c56a4a7c cpsr de0c4d10
    backtrace:
    01-14 18:17:02.725 5374-5434/? E/CRASH: #00 pc 0021da7c /lib/arm/libunity.so

    Crash log on iOS:
    Crashed: Thread
    0 TestApp 0x100d30f74 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const (hash_set.h:636)
    1 TestApp 0x100d2dcc8 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 TestApp 0x1008aee24 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 TestApp 0x1008aed98 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)
    4 TestApp 0x1008aebdc GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)
    5 TestApp 0x100d2a0b4 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 TestApp 0x100d2e204 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:764)
    7 TestApp 0x10295d000 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955716
    8 TestApp 0x10295cf10 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955476
    9 TestApp 0x102b02648 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 22681740
    10 TestApp 0x10033db18 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:61738)
    11 TestApp 0x1014b3c40 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:521)
    12 TestApp 0x1014b48d8 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:458)
    13 TestApp 0x1014b47f0 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:614)
    14 TestApp 0x101475a24 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:169)
    15 TestApp 0x101481ab0 il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    16 TestApp 0x10148af1c il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    17 libsystem_pthread.dylib 0x1a6d8825c _pthread_body + 128
    18 libsystem_pthread.dylib 0x1a6d881bc _pthread_start + 48
    19 libsystem_pthread.dylib 0x1a6d8bcf4 thread_start + 4

    Can you confirm is this issue being the same issue as reported above? If yes, can you back port the solution to Unity 2018.2.XX?

  4. 8ee4724f042000d16ec3696f9f6ee164?d=mm

    youdk

    Jan 14, 2019 13:29

    Hi, Unity

    We got a crash after upgrading Unity version from 2018.1.4 to 2018.2.15 when reimporting asset:

    Crash log on Android(API target version 28):

    01-14 18:17:02.516 5374-5434/? E/Unity: Could not allocate memory: System out of memory!
    Trying to allocate: 2478375169B with 16 alignment. MemoryLabel: String
    Allocation happened at: Line:303 in
    Memory overview

    [ ALLOC_DEFAULT ] used: 130982337B | peak: 145449553B | reserved: 133294561B
    [ ALLOC_TEMP_JOB ] used: 204917B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GAMEOBJECT ] used: 5569444B | peak: 7496733B | reserved: 5828718B
    [ ALLOC_GFX ] used: 10274685B | peak: 20308373B | reserved: 10292070B
    [ ALLOC_PROFILER ] used: 256B | peak: 256B | reserved: 332B
    [ ALLOC_TEMP_THREAD ] used: 33732B | peak: 0B | reserved: 3375104B
    01-14 18:17:02.614 5374-5434/? E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 58f0e29c
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: ''
    Revision: '0'
    pid: 5374, tid: 5434, name: UnityMain
    r0 c537e19c r1 00000000 r2 00000001 r3 00000000
    r4 93b90100 r5 c537e198 r6 c537e198 r7 a1113874
    r8 00800101 r9 c537e240 sl 00036858 fp 00000000
    ip 80000000 sp c537e170 lr c56a4b94 pc c56a4a7c cpsr de0c4d10
    backtrace:
    01-14 18:17:02.725 5374-5434/? E/CRASH: #00 pc 0021da7c /lib/arm/libunity.so

    Crash log on iOS:
    Crashed: Thread
    0 TestApp 0x100d30f74 core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::node* core::hash_set<core::pair<core::basic_string<char, core::StringStorageDefault<char> > const, int, true>, core::hash_pair<core::hash<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int>, core::equal_pair<std::__1::equal_to<core::basic_string<char, core::StringStorageDefault<char> > >, core::basic_string<char, core::StringStorageDefault<char> > const, int> >::lookup<core::basic_string<char, core::StringStorageDefault<char> > >(core::basic_string<char, core::StringStorageDefault<char> > const&) const (hash_set.h:636)
    1 TestApp 0x100d2dcc8 MonoManager::GetScriptingClass(char const*, char const*, char const*) (hash_set.h:308)
    2 TestApp 0x1008aee24 InitializeCoreScriptingClasses() (CoreScriptingClasses.cpp:25)
    3 TestApp 0x1008aed98 GetCoreScriptingClassesPtr() (CoreScriptingClasses.cpp:1686)
    4 TestApp 0x1008aebdc GetCoreScriptingClasses() (CoreScriptingClasses.cpp:1695)
    5 TestApp 0x100d2a0b4 scripting_stack_trace_info_for(ScriptingExceptionPtr, StackTraceInfo&) (ScriptingTypes.h:69)
    6 TestApp 0x100d2e204 Scripting::LogException(ScriptingExceptionPtr, int, char const*, bool) (Scripting.cpp:764)
    7 TestApp 0x10295d000 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955716
    8 TestApp 0x10295cf10 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 20955476
    9 TestApp 0x102b02648 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 22681740
    10 TestApp 0x10033db18 RuntimeInvoker_Void_t1185182177_RuntimeObject_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:61738)
    11 TestApp 0x1014b3c40 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (Runtime.cpp:521)
    12 TestApp 0x1014b48d8 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppException*) (Runtime.cpp:458)
    13 TestApp 0x1014b47f0 il2cpp::vm::Runtime::UnhandledException(Il2CppException*) (Runtime.cpp:614)
    14 TestApp 0x101475a24 il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) (Thread.cpp:169)
    15 TestApp 0x101481ab0 il2cpp::os::Thread::RunWrapper(void*) (Thread.cpp:169)
    16 TestApp 0x10148af1c il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (ThreadImpl.cpp:106)
    17 libsystem_pthread.dylib 0x1a6d8825c _pthread_body + 128
    18 libsystem_pthread.dylib 0x1a6d881bc _pthread_start + 48
    19 libsystem_pthread.dylib 0x1a6d8bcf4 thread_start + 4

    Can you confirm is this issue being the same issue as reported above? If yes, can you back port the solution to Unity 2018.2.XX?

All about bugs

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