Memory webrouser中出现错误的Webplayer退出

Memory webrouser中出现错误的Webplayer退出,memory,unity3d,unity-web-player,Memory,Unity3d,Unity Web Player,我用Unity3d在webplayer上制作应用程序,并在webbrowser中运行。我的应用程序在场景中加载大量带有网格的游戏对象(带有AssetBundles)。在某些时刻,它会错误地退出。 日志的某些部分: DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 2273563. DynamicHeapAllocator allocation probe

我用Unity3d在webplayer上制作应用程序,并在webbrowser中运行。我的应用程序在场景中加载大量带有网格的游戏对象(带有AssetBundles)。在某些时刻,它会错误地退出。 日志的某些部分:

 DynamicHeapAllocator allocation probe 1 failed - Could not get memory for     large allocation 2273563.
 DynamicHeapAllocator allocation probe 2 failed - Could not get memory for large  allocation 2273563.
 DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 2273563.
DynamicHeapAllocator allocation probe 1 failed - Could not get memory for large allocation 2273563.
DynamicHeapAllocator allocation probe 2 failed - Could not get memory for large allocation 2273563.
DynamicHeapAllocator allocation probe 3 failed - Could not get memory for large allocation 2273563.
DynamicHeapAllocator allocation probe 4 failed - Could not get memory for large allocation 2273563.
DynamicHeapAllocator out of memory - Could not get memory for large allocation 2273563!
Could not allocate memory: System out of memory!
Trying to allocate: 2273563B with 16 alignment. MemoryLabel: TempOverflow
Allocation happend at: Line:133 in    C:/buildslave/unity/build/Runtime/Allocator/ThreadsafeLinearAllocator.cpp
Memory overview

[ ALLOC_DEFAULT ] used: 442692589B | peak: 0B | reserved: 487509325B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 4194304B 
[ ALLOC_GFX ] used: 170789102B | peak: 0B | reserved: 210481854B 
[ ALLOC_CACHEOBJECTS ] used: 340080196B | peak: 0B | reserved: 352321536B 
[ ALLOC_TYPETREE ] used: 731568B | peak: 0B | reserved: 5242880B 
[ ALLOC_PROFILER ] used: 2986680B | peak: 0B | reserved: 12582912B 
Could not allocate memory: System out of memory!
Trying to allocate: 2273563B with 16 alignment. MemoryLabel: TempOverflow
Allocation happend at: Line:133 in       C:/buildslave/unity/build/Runtime/Allocator/ThreadsafeLinearAllocator.cpp
Memory overview

[ ALLOC_DEFAULT ] used: 442692589B | peak: 0B | reserved: 487509325B 
[ ALLOC_TEMP_JOB ] used: 0B | peak: 0B | reserved: 4194304B 
[ ALLOC_GFX ] used: 170789102B | peak: 0B | reserved: 210481854B 
[ ALLOC_CACHEOBJECTS ] used: 340080196B | peak: 0B | reserved: 352321536B 
[ ALLOC_TYPETREE ] used: 731568B | peak: 0B | reserved: 5242880B 
[ ALLOC_PROFILER ] used: 2986680B | peak: 0B | reserved: 12582912B 


(Filename: C:/buildslave/unity/build/Runtime/Allocator/MemoryManager.cpp Line: 980)

Exit with error code: 2

========== OUTPUTING STACK TRACE ==================



========== END OF STACKTRACE ===========

Could not allocate memory: System out of memory!
Trying to allocate: 2273536B with 16 alignment. MemoryLabel: TempJobAlloc
Allocation happend at: Line:379 in    C:\buildslave\unity\build\Runtime/Utilities/dynamic_array.h

我在屏幕中打印:Profiler.GetTotalAllocatedMemory()、Profiler.GetTotalReservedMemory()、Profiler.GetTotalAllocatedMemory()、unusedReservedMemory=Profiler.GetTotalUnusedReservedMemory()、unusedReservedMemory在应用程序错误退出时不为null。应用程序未响应时的屏幕截图。

为什么不使用webGL?我们不会使用webGL,因为存在技术问题。Webplayer不再更新,将在下周的5.4版中从unity中删除。WebGL是您唯一的选择,您有超过1年的时间来切换到它。您认为它的错误不会在WebGL中出现吗?唯一要找到的是为WebGL构建您的游戏。单击并单击,您就完成了,然后您可以查看它是否有效。Webplayer可能会抛出这些错误,因为它已经过时。