When the load model size is too large, result in the app crashes. #88
-
Hello, I would like to ask a question, I recently found some problems when I load the model, if the size of the model is too large, It seems that Unity's ManagedHeap will grow very fast and cause the app to crash as a result. I added these two models to Hearts to test This is the state when no model has been read yet This is the state after loading the above two models When I kept switching between the two models, I could see through the Unity Profiler that the Managed Heap would keep going up and up, and eventually, the app would crash. I'm using VRoid SDK 0.2.0 with the example project (CharacterModelExample) in iPhone XR can be easily reproduced, in addition I test other apps using VRoid SDK and also crash, I would like to ask if there is any solution to this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have no idea how to load large VRM models with small heap. If you check the original_file_size, you can prevent large VRM models from being read. |
Beta Was this translation helpful? Give feedback.
I have no idea how to load large VRM models with small heap.
If you check the original_file_size, you can prevent large VRM models from being read.