Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Crash when calling AssetBundle.LoadAssetAsync on iOS

$
0
0
unity version :Unity 2018.3.5f1 When calling AssetBundle.LoadAssetAsync The app has crashed. The following logs are output simultaneously. stg(11589,0x16e3f7000) malloc: *** mach_vm_map(size=18446744067197026304) failed (error code=3) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug * thread #35, name = 'UnityPreload', stop reason = breakpoint 1.1 * frame #0: 0x0000000183ef10b0 libsystem_malloc.dylib`malloc_error_break frame #1: 0x0000000183eeed3c libsystem_malloc.dylib`szone_error + 240 frame #2: 0x0000000183ef0210 libsystem_malloc.dylib`mvm_allocate_pages + 264 frame #3: 0x0000000183ee7d98 libsystem_malloc.dylib`large_malloc + 136 frame #4: 0x0000000183ee374c libsystem_malloc.dylib`szone_malloc_should_clear + 252 frame #5: 0x0000000183ee35dc libsystem_malloc.dylib`malloc_zone_malloc + 160 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] frame #9: 0x00000001032d24c0 stg`::Allocate() at MemoryManager.cpp:1295 [opt] frame #10: 0x00000001037f625c stg`::resize_buffer() [inlined] reallocate at dynamic_array.h:75 [opt] frame #11: 0x00000001037f623c stg`::resize_buffer() [inlined] reserve_impl at dynamic_array.cpp:28 [opt] frame #12: 0x00000001037f622c stg`::resize_buffer() at dynamic_array.cpp:12 [opt] frame #13: 0x0000000102fdd50c stg`::resize_initialized() [inlined] resize_buffer at dynamic_array.h:613 [opt] frame #14: 0x0000000102fdd4f4 stg`::resize_initialized() at dynamic_array.h:514 [opt] frame #15: 0x00000001031c2dd4 stg`::TransferSTLStyleArray, 0>>() [inlined] ResizeSTLStyleArray at SerializeTraits.h:467 [opt] frame #16: 0x00000001031c2dc4 stg`::TransferSTLStyleArray, 0>>() at StreamedBinaryRead.h:72 [opt] frame #17: 0x00000001031c2d28 stg`::Transfer() [inlined] Transfer at SerializeTraits.h:460 [opt] frame #18: 0x00000001031c2d1c stg`::Transfer() [inlined] Transfer, 0>> at StreamedBinaryRead.h:122 [opt] frame #19: 0x00000001031c2d1c stg`::Transfer() at AnimationCurve.h:320 [opt] frame #20: 0x0000000102e89fdc stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #21: 0x0000000102e89fcc stg`::Transfer() [inlined] Transfer> at StreamedBinaryRead.h:122 [opt] frame #22: 0x0000000102e89fcc stg`::Transfer() at ParticleSystemCurves.cpp:336 [opt] frame #23: 0x0000000102ee86b8 stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #24: 0x0000000102ee86ac stg`::Transfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #25: 0x0000000102ee86ac stg`::Transfer() [inlined] Transfer at ParticleSystemModule.h:190 [opt] frame #26: 0x0000000102ee86ac stg`::Transfer() at InitialModule.cpp:565 [opt] frame #27: 0x0000000102e9d7f4 stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #28: 0x0000000102e9d7ec stg`::Transfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #29: 0x0000000102e9d7ec stg`::Transfer() at ParticleSystem.cpp:1259 [opt] frame #30: 0x0000000102e81114 stg`::VirtualRedirectTransfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #31: 0x0000000102e81108 stg`::VirtualRedirectTransfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #32: 0x0000000102e81108 stg`::VirtualRedirectTransfer() [inlined] TransferBase at StreamedBinaryRead.h:111 [opt] frame #33: 0x0000000102e81108 stg`::VirtualRedirectTransfer() at ParticleSystem.cpp:1233 [opt] frame #34: 0x00000001038e9208 stg`::ReadObject() at SerializedFile.cpp:2196 [opt] frame #35: 0x00000001038ea488 stg`::ReadAndActivateObjectThreaded() at PersistentManager.cpp:1679 [opt] frame #36: 0x00000001038ea710 stg`::LoadObjectsThreaded() at PersistentManager.cpp:1751 [opt] frame #37: 0x00000001036a552c stg`::Perform() at LoadOperation.cpp:76 [opt] frame #38: 0x00000001036a7ac0 stg`::ProcessSingleOperation() at PreloadManager.cpp:277 [opt] frame #39: 0x00000001036a78a8 stg`::Run() at PreloadManager.cpp:335 [opt] frame #40: 0x00000001036a77f0 stg`::Run() at PreloadManager.cpp:181 [opt] frame #41: 0x0000000103747c9c stg`::RunThreadWrapper() at Thread.cpp:76 [opt] frame #42: 0x000000018404d220 libsystem_pthread.dylib`_pthread_body + 272 frame #43: 0x000000018404d110 libsystem_pthread.dylib`_pthread_start + 292 frame #44: 0x000000018404bb10 libsystem_pthread.dylib`thread_start + 4 * thread #35, name = 'UnityPreload', stop reason = breakpoint 1.1 * frame #0: 0x0000000183ef10b0 libsystem_malloc.dylib`malloc_error_break frame #1: 0x0000000183eeed3c libsystem_malloc.dylib`szone_error + 240 frame #2: 0x0000000183ef0210 libsystem_malloc.dylib`mvm_allocate_pages + 264 frame #3: 0x0000000183ee7d98 libsystem_malloc.dylib`large_malloc + 136 frame #4: 0x0000000183ee374c libsystem_malloc.dylib`szone_malloc_should_clear + 252 frame #5: 0x0000000183ee35dc libsystem_malloc.dylib`malloc_zone_malloc + 160 frame #6: 0x0000000183ee60b0 libsystem_malloc.dylib`malloc + 32 frame #7: 0x0000000103be1a58 stg`::Allocate() at UnityDefaultAllocator.cpp:22 [opt] frame #8: 0x00000001032d2638 stg`::Allocate() at MemoryManager.cpp:1324 [opt] frame #9: 0x00000001032d26e4 stg`::Allocate() at MemoryManager.cpp:1309 [opt] frame #10: 0x00000001037f625c stg`::resize_buffer() [inlined] reallocate at dynamic_array.h:75 [opt] frame #11: 0x00000001037f623c stg`::resize_buffer() [inlined] reserve_impl at dynamic_array.cpp:28 [opt] frame #12: 0x00000001037f622c stg`::resize_buffer() at dynamic_array.cpp:12 [opt] frame #13: 0x0000000102fdd50c stg`::resize_initialized() [inlined] resize_buffer at dynamic_array.h:613 [opt] frame #14: 0x0000000102fdd4f4 stg`::resize_initialized() at dynamic_array.h:514 [opt] frame #15: 0x00000001031c2dd4 stg`::TransferSTLStyleArray, 0>>() [inlined] ResizeSTLStyleArray at SerializeTraits.h:467 [opt] frame #16: 0x00000001031c2dc4 stg`::TransferSTLStyleArray, 0>>() at StreamedBinaryRead.h:72 [opt] frame #17: 0x00000001031c2d28 stg`::Transfer() [inlined] Transfer at SerializeTraits.h:460 [opt] frame #18: 0x00000001031c2d1c stg`::Transfer() [inlined] Transfer, 0>> at StreamedBinaryRead.h:122 [opt] frame #19: 0x00000001031c2d1c stg`::Transfer() at AnimationCurve.h:320 [opt] frame #20: 0x0000000102e89fdc stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #21: 0x0000000102e89fcc stg`::Transfer() [inlined] Transfer> at StreamedBinaryRead.h:122 [opt] frame #22: 0x0000000102e89fcc stg`::Transfer() at ParticleSystemCurves.cpp:336 [opt] frame #23: 0x0000000102ee86b8 stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #24: 0x0000000102ee86ac stg`::Transfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #25: 0x0000000102ee86ac stg`::Transfer() [inlined] Transfer at ParticleSystemModule.h:190 [opt] frame #26: 0x0000000102ee86ac stg`::Transfer() at InitialModule.cpp:565 [opt] frame #27: 0x0000000102e9d7f4 stg`::Transfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #28: 0x0000000102e9d7ec stg`::Transfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #29: 0x0000000102e9d7ec stg`::Transfer() at ParticleSystem.cpp:1259 [opt] frame #30: 0x0000000102e81114 stg`::VirtualRedirectTransfer() [inlined] Transfer at SerializeTraitsBase.h:54 [opt] frame #31: 0x0000000102e81108 stg`::VirtualRedirectTransfer() [inlined] Transfer at StreamedBinaryRead.h:122 [opt] frame #32: 0x0000000102e81108 stg`::VirtualRedirectTransfer() [inlined] TransferBase at StreamedBinaryRead.h:111 [opt] frame #33: 0x0000000102e81108 stg`::VirtualRedirectTransfer() at ParticleSystem.cpp:1233 [opt] frame #34: 0x00000001038e9208 stg`::ReadObject() at SerializedFile.cpp:2196 [opt] frame #35: 0x00000001038ea488 stg`::ReadAndActivateObjectThreaded() at PersistentManager.cpp:1679 [opt] frame #36: 0x00000001038ea710 stg`::LoadObjectsThreaded() at PersistentManager.cpp:1751 [opt] frame #37: 0x00000001036a552c stg`::Perform() at LoadOperation.cpp:76 [opt] frame #38: 0x00000001036a7ac0 stg`::ProcessSingleOperation() at PreloadManager.cpp:277 [opt] frame #39: 0x00000001036a78a8 stg`::Run() at PreloadManager.cpp:335 [opt] frame #40: 0x00000001036a77f0 stg`::Run() at PreloadManager.cpp:181 [opt] frame #41: 0x0000000103747c9c stg`::RunThreadWrapper() at Thread.cpp:76 [opt] frame #42: 0x000000018404d220 libsystem_pthread.dylib`_pthread_body + 272 frame #43: 0x000000018404d110 libsystem_pthread.dylib`_pthread_start + 292 frame #44: 0x000000018404bb10 libsystem_pthread.dylib`thread_start + 4 stg(11589,0x16e3f7000) malloc: *** mach_vm_map(size=18446744067197026304) failed (error code=3) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Could not allocate memory: System out of memory! Trying to allocate: 18446744067197016020B with 16 alignment. MemoryLabel: TempOverflow Allocation happened at: Line:75 in ./Runtime/Utilities/dynamic_array.h Memory overview [ ALLOC_DEFAULT ] used: 99567695B | peak: 103881121B | reserved: 105303346B [ ALLOC_TEMP_JOB ] used: 1795434B | peak: 0B | reserved: 6029312B [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 262144B [ IOS new_delete ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_GAMEOBJECT ] used: 16409303B | peak: 29184795B | reserved: 17779875B [ ALLOC_GFX ] used: 2018455B | peak: 5641811B | reserved: 2063095B [ ALLOC_PROFILER ] used: 4687072B | peak: 4700982B | reserved: 4773283B [ ALLOC_TEMP_THREAD ] used: 122564B | peak: 0B | reserved: 2654208B Could not allocate memory: System out of memory! Trying to allocate: 18446744067197016020B with 16 alignment. MemoryLabel: TempOverflow Allocation happened at: Line:75 in ./Runtime/Utilities/dynamic_array.h Memory overview [ ALLOC_DEFAULT ] used: 99567695B | peak: 103881121B | reserved: 105303346B [ ALLOC_TEMP_JOB ] used: 1795434B | peak: 0B | reserved: 6029312B [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 262144B [ IOS new_delete ] used: 0B | peak: 0B | reserved: 0B [ ALLOC_GAMEOBJECT ] used: 16409303B | peak: 29184795B | reserved: 17779875B [ ALLOC_GFX ] used: 2018455B | peak: 5641811B | reserved: 2063095B [ ALLOC_PROFILER ] used: 4687072B | peak: 4700982B | reserved: 4773283B [ ALLOC_TEMP_THREAD ] used: 122564B | peak: 0B | reserved: 2654208B (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 1161) It does not necessarily occur with a specific file Basically, LoadAssetAsync succeeds. The MemoryReports for Xcode is 300 MB. All files read are less than about 1 MB. I do not know the cause?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>