Closed sunshineYPH closed 3 years ago
If you're running in the editor, this is probably a duplicate of #340. The Unreal Engine sadly doesn't do garbage collection by default in the Editor, nor does it have a way to free UObjects other than via garbage collection. You can enable automatic garbage collection in the Editor by setting gc.CollectGarbageEveryFrame 1
(i.e. from the Output Log window).
If you're running in the editor, this is probably a duplicate of #340. The Unreal Engine sadly doesn't do garbage collection by default in the Editor, nor does it have a way to free UObjects other than via garbage collection. You can enable automatic garbage collection in the Editor by setting
gc.CollectGarbageEveryFrame 1
(i.e. from the Output Log window).
It works after enable garbage collection. The memory will increase and decrease with camera zoom in and zoom out. However there still be a crash during load more than 40G 3dtiles. Because the total memory is too huge. Even close to physical memory so that UE4 crash. But cesium-js works fine in browser with loading same files whose size is about 40G.
I'm not sure this belong to another issue or same issue in this posts. Should I create a new issue?
It shouldn't matter how large the total tileset is. Cesium World Terrain, for instance, is terabytes of geometry. But if the tileset bounding volume hierarchy is not structured well, it can lead Cesium for Unreal to try to bring too much of it into memory at once. Or it could be a plain old bug. If you can share the tileset details of the tileset you're using, please do so and we can take a look. No need for a new issue, you can post it here. Thanks!
Closing due to lack of follow-up. Please reopen if you can share your tileset with us for debugging.
It seems like there is memory leak in cesium for unreal. If 3dtiles files is more than 8G, UE4 will crash due to huge memory after camera zoom in and zoom out.
There is a similar issue in cesium commnity: https://community.cesium.com/t/the-memory-of-cesium-for-ue4/13535
I have download cesium for unreal V1.4.1 and test. But the issue is same, which looks like the memory only increases after loading 3dtiles but never decrease.
Following is Unreal Engine 4 Crash Reporter: