cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Preview Simulator crashes with a large number of textures

Open placDev opened this issue 7 months ago • 5 comments

Cocos Creator version

3.8.6

System information

Windows 10 Editor

Issue description

Hello everyone I'm adding an object with a lot of textures to the scene. The preview in the browser works well, but trying to run it through the Simulator causes a black screen and crashes after a few seconds. If you remove all the textures, everything starts well in the Simulator. If there are any solutions? Is there any way to fix this with the settings?

Image

Image

Image

Image

Relevant error log output

18:37:01 [DEBUG]: D/ XMLHttpRequest_finalize, 0000024DC3BF34C0 ... 18:37:01 [DEBUG]: D/ XMLHttpRequest_finalize, 0000024DC3BF3B60 ... 18:37:01 [DEBUG]: D/ XMLHttpRequest_finalize, 0000024DC3BF3810 ... 18:37:01 [DEBUG]: D/ XMLHttpRequest_finalize, 0000024DC3BF3EB0 ...

Steps to reproduce

  1. Create a default 3D project
  2. We load the model (gltf) with different materials and meshes (about 200 textures)
  3. When starting the Preview Simulator, we get a black screen and crash after a few seconds
  4. Remove all textures, leaving only meshes, and the Simulator starts

Minimal reproduction project

No response

placDev avatar Apr 20 '25 15:04 placDev

Would it also be black screen using build windows compiled by vs 2019?

dumganhar avatar Apr 20 '25 23:04 dumganhar

@dumganhar I'm trying to build a project in VS2022, but I get an error. The project folder contains the necessary libraries. Could you tell me how to solve the problem?

Image

placDev avatar Apr 21 '25 05:04 placDev

I'm adding an archive with the model, just add it to the scene to reproduce the error.

agroprom.zip

placDev avatar Apr 21 '25 07:04 placDev

I'm trying to build a project in VS2022, but I get an error. The project folder contains the necessary libraries. Could you tell me how to solve the problem?

Delete the msvcp140d.dll and msvcp140.dll files in Debug or Release directory should work for you. Or downgrade to VS 2019.

dumganhar avatar Apr 21 '25 09:04 dumganhar

@dumganhar Yes, thank you very much! The project has been compiled and launched. Everything is working as it should, apparently the problem is only when using the Simulator. I would really like to see a fix in the next versions.

Image

placDev avatar Apr 21 '25 14:04 placDev

@dumganhar As I understand it, you are one of the contributors to the project. Do you know if any changes are planned on this issue in the near future?

placDev avatar Jun 23 '25 13:06 placDev