cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.21k stars 1.94k forks source link

[3.7.0] iOS crash by calling cc::StencilManager::getDepthStencilState() on Batching process #14587

Open thinhlv opened 1 year ago

thinhlv commented 1 year ago

Cocos Creator version

3.7.0

System information

Macos Bigsur 11.4, iOS 15.4.1

Issue description

Cocos creator version: 3.7.0 Build platform: iOS Play the game contains so many spines animation appear then disappear using NodePool. For a while, the game on iOS platform will be crashed.

Relevant error log output

No response

Steps to reproduce

  1. Build the game with so many complex spine animations on the screen. (EnableBatch = false, CACHE_MODE = SHARED_CACHE, or REALTIME)
  2. Run the game on iOS platform
  3. For while, the game will be crashed with batching errors.
  4. NOTE: the game has the higher rate to be crashed if we change game scene (back to lobby).

Please take a look to the attached files

216571218-588592b6-c428-47cd-8358-b9ca1e373064 216571272-55dba283-b2a2-4243-b99f-f05b137e426f 216571281-8b293dcd-2930-4e43-acbb-b70e08f6387e

Minimal reproduction project

No response

cx-github commented 1 year ago

Please ask if there is progress now, this problem has a good chance of happening on native

tonyle93 commented 10 months ago

@minggo Has this issue been considered sir?

minggo commented 10 months ago

Can any one provide a demo? v3.8.2 fixed a crash issue, but i am not sure if it is the same.