- Home /
[Lable File]DynamicHeapAllocator out of memory
Recently, I often get an "Out of Memory" crash in our webplayer. But some weeks ago, it not happens such frequently.
It happens when downloading assetsbundles.But not always at the same file or the the same place. I just doubt that if it is related with the size of assetsbundle or the size of one file in assetbundle? Actually, no assetsbundle or file in the project bigger than 8388608B.
It's really a big problem for me. Please give me some clues...
BTW, I found it happens in some browser based on IE core regularly, but in Chrome much more less.
Log Contents:
DynamicHeapAllocator out of memory - Could not get memory for large allocationCould not allocate memory: System out of memory!
Trying to allocate: 8388608B with 4 alignment. MemoryLabel: File
Allocation happend at: Line:9 in C:/BuildAgent/work/d9c061b1c154f5ae/PlatformDependent/CommonWebPlugin/CompressedFileStream.cpp
Memory overview
[ ALLOC_TEMP_THREAD ] used: 30736B | peak: 0B | reserved: 131072B
[ ALLOC_DEFAULT ] used: 21584616B | peak: 72242967B | reserved: 83886080B
[ ALLOC_GFX ] used: 36976226B | peak: 43948954B | reserved: 41943040B
[ ALLOC_TYPETREE ] used: 2333340B | peak: 20981964B | reserved: 33554432B
[ ALLOC_CACHEOBJECTS ] used: 95922640B | peak: 170171792B | reserved: 142606336B
Size | Num Used| Num Free|
32-63 | 2| 0|
16384-32767 | 2| 9|
32768-65535 | 0| 4|
65536-131071 | 847| 8|
131072-262143 | 4| 3|
262144-524287 | 1| 8|
524288-1048575| 0| 3|
1048576-2097151| 0| 1|
2097152-4194303| 0| 1|
4194304-8388607| 0| 3|
8388608-16777215| 1| 2|
Label | Allocated| Count|Largest Alloc
Serialization | 155680| 4| 494989|
File | 95766960| 853| 8388608|
*Total* | 95922640| 857| N/A
Answer by Drew_tm · Aug 29, 2012 at 12:45 AM
We actually am getting this crash very occasionally as well. It also lists the exact same allocation size of 8388608B. It seems to happen on the same machine when it does happen even though we test on many machines.
Your answer
![](https://koobas.hobune.stream/wayback/20220613075529im_/https://answers.unity.com/themes/thub/images/avi.jpg)