cocos-engine
cocos-engine copied to clipboard
Auto atlas can cause app launch crashes
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
- Place an image in the scene without attaching the automatic atlas.
- Put a prefab in the resources with the automatic atlas attached.
- This will definitely cause the app to crash on launch.
Minimal reproduction project
No response
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:
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.
Ensure no dependencies rely on auto atlases.