Search Unity

Fatal Exception: std::length_error

Discussion in 'iOS and tvOS' started by SimteractiveDev, Jun 9, 2017.

  1. SimteractiveDev

    SimteractiveDev

    Joined:
    Jul 9, 2014
    Posts:
    97
    Hey,

    I'm posting this is on the off-chance that somebody else has experience or knowledge to a crash log we have received from Crashlytics. It has only happened about 3 times, so it's frequency is not high but I'd still like to understand it better.This is the full crash log, with the main snippet below detailing the crash.

    The crash seems to indicate that the size of a string was too large, which seems unlikely (we don't deal with any large strings that would be reaching the limit). However according to Crashlytics, only 1.8% of the Ram was free, so it does make sense. However it seems this crash happens during loading, specifically loading a scene (LoadSceneOperation::perform()). I'd like to know more, such as what PreloadManager does (I think it's related to AssetBundles). If anybody can shed any light into some of these Unity calls, that would be great. Thanks.

    Code (CSharp):
    1. #32. Crashed: UnityPreload
    2. 0  DreamResort                    0x101acbee0 CLSProcessRecordAllThreads (CLSProcess.c:376)
    3. 1  DreamResort                    0x101acbee0 CLSProcessRecordAllThreads (CLSProcess.c:376)
    4. 2  DreamResort                    0x101acbd90 CLSProcessRecordAllThreads (CLSProcess.c:407)
    5. 3  DreamResort                    0x101abc684 CLSHandler (CLSHandler.m:26)
    6. 4  DreamResort                    0x101ac9f90 __CLSExceptionRecord_block_invoke (CLSException.mm:199)
    7. 5  libdispatch.dylib              0x18e4869a0 _dispatch_client_callout + 16
    8. 6  libdispatch.dylib              0x18e493ee0 _dispatch_barrier_sync_f_invoke + 84
    9. 7  DreamResort                    0x101ac9a3c CLSExceptionRecord (CLSException.mm:206)
    10. 8  DreamResort                    0x101ac9550 CLSTerminateHandler() (CLSException.mm:265)
    11. 9  libc++abi.dylib                0x18e01f5d4 std::__terminate(void (*)()) + 16
    12. 10 libc++abi.dylib                0x18e01eef8 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
    13. 11 libc++.1.dylib                 0x18dfedd90 std::__1::__basic_string_common<true>::__throw_length_error() const + 76
    14. 12 DreamResort                    0x101133644 std::__1::basic_string<char, std::__1::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> >::__grow_by(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) (string:1681)
    15. 13 DreamResort                    0x101133594 std::__1::basic_string<char, std::__1::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> >::append(unsigned long, char) (string:1681)
    16. 14 DreamResort                    0x10113435c void StreamedBinaryRead<false>::TransferSTLStyleArray<std::__1::basic_string<char, std::__1::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> > >(std::__1::basic_string<char, std::__1::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> >&, TransferMetaFlags) (StreamedBinaryRead.h:79)
    17. 15 DreamResort                    0x1011681b0 void NamedObject::Transfer<StreamedBinaryRead<false> >(StreamedBinaryRead<false>&) (SerializeTraits.h:251)
    18. 16 DreamResort                    0x101148544 void AudioClip::Transfer<StreamedBinaryRead<false> >(StreamedBinaryRead<false>&) (SerializeUtility.h:55)
    19. 17 DreamResort                    0x1015123bc SerializedFile::ReadObject(long long, ObjectCreationMode, bool, TypeTree const**, bool*, Object&) (SerializedFile.cpp:1998)
    20. 18 DreamResort                    0x1014186bc PersistentManager::LoadObjectsThreaded(int*, int, LoadProgress&) (PersistentManager.cpp:1515)
    21. 19 DreamResort                    0x101406c80 LoadSceneOperation::Perform() (dynamic_array.h:382)
    22. 20 DreamResort                    0x1014085a4 PreloadManager::ProcessSingleOperation() (PreloadManager.cpp:297)
    23. 21 DreamResort                    0x1014083ac PreloadManager::Run() (PreloadManager.cpp:373)
    24. 22 DreamResort                    0x101408350 PreloadManager::Run(void*) (PreloadManager.cpp:204)
    25. 23 DreamResort                    0x10148c110 Thread::RunThreadWrapper(void*) (Thread.cpp:35)
    26. 24 libsystem_pthread.dylib        0x18e69168c _pthread_body + 240
    27. 25 libsystem_pthread.dylib        0x18e69159c _pthread_body + 282
    28. 26 libsystem_pthread.dylib        0x18e68ecb4 thread_start + 4