unity version :Unity 2018.3.5f1
When calling AssetBundle.LoadAssetAsync
The app has crashed.
The following logs are output simultaneously.
stg(11460,0x16cba7000) malloc: *** mach_vm_map(size=18446744072233205760) 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: 18446744072233199617B with 16 alignment. MemoryLabel: String
Allocation happened at: Line:314 in ./Runtime/Core/Containers/StringStorageDefault.h
Memory overview
[ ALLOC_DEFAULT ] used: 90126734B | peak: 108762017B | reserved: 95212873B
[ ALLOC_TEMP_JOB ] used: 346613B | 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: 16439827B | peak: 29215711B | reserved: 17810709B
[ ALLOC_GFX ] used: 2043751B | peak: 5641811B | reserved: 2090623B
[ ALLOC_PROFILER ] used: 4775521B | peak: 4798575B | reserved: 4861081B
[ ALLOC_TEMP_THREAD ] used: 54356B | peak: 0B | reserved: 2654208B
Could not allocate memory: System out of memory!
Trying to allocate: 18446744072233199617B with 16 alignment. MemoryLabel: String
Allocation happened at: Line:314 in ./Runtime/Core/Containers/StringStorageDefault.h
Memory overview
[ ALLOC_DEFAULT ] used: 90126734B | peak: 108762017B | reserved: 95212873B
[ ALLOC_TEMP_JOB ] used: 346613B | 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: 16439827B | peak: 29215711B | reserved: 17810709B
[ ALLOC_GFX ] used: 2043751B | peak: 5641811B | reserved: 2090623B
[ ALLOC_PROFILER ] used: 4775521B | peak: 4798575B | reserved: 4861081B
[ ALLOC_TEMP_THREAD ] used: 54356B | 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.
I do not know the cause?