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

Auto atlas can cause app launch crashes

Open Changdw opened this issue 7 months ago • 1 comments

Cocos Creator version

v3.8.6

System information

Android App

Issue description

AutoAtlas can cause app launch crashes. I saw that the code related to this was removed in version 386, but the app crashes caused by this issue still exist.

https://forum.cocos.org/t/topic/167558/189

Relevant error log output

Uncaught Exception: - location : src/cocos-js/cc.js:1:453108:

Steps to reproduce

  1. Place an image in the scene without attaching the automatic atlas.

assets.zip

  1. Put a prefab in the resources with the automatic atlas attached.
  2. This will definitely cause the app to crash on launch.

Minimal reproduction project

No response

Changdw avatar May 08 '25 06:05 Changdw

We are encountering the same issue in version 3.8.6. This is because editor started auto filling Sprite Atlas property. The app will crash if cc.Sprite contains a direct reference to an auto atlas.

Example:

Image

Solution:

To prevent the crash, all references to auto atlases must be removed—preferably not just from sprites, but from all assets.

Steps to resolve:

Identify UUID usage of every auto atlas.

Image

Ensure no dependencies rely on auto atlases.

Image

doterax avatar Jun 04 '25 14:06 doterax