Creator3.6.2 spine有概率导致Android闪退

我看有人问过这个问题,但是官方没人回答。。。

我们现在项目战斗中,基本进去30s 内,就会闪退
以下是手机抓到的崩溃信息
猜测是 spine 已经不在场景上下文中了,但是渲染那里还是想渲染这个 spine。希望官方帮忙看一下,提供一下解决方案哈,项目着急出包呢。
错误是:Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x15c in tid 5837 (Thread-4), pid 28978

  Xiaomi/unicorn/unicorn:13/TKQ1.220829.002/V14.0.2.0.TLECNXM:user/release-keys
  #00 pc 00000000013e6acc  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (cc::Node::getDirtyFlag() const+12) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #01 pc 0000000001568c08  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (cc::Node::updateWorldTransform()+44) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #02 pc 000000000156b02c  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (cc::Node::getWorldMatrix() const+24) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #03 pc 000000000112a27c  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (spine::SkeletonRenderer::render(float)+296) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #04 pc 000000000111f158  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (cc::middleware::MiddlewareManager::render(float)+384) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #05 pc 0000000001c34aa0  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #06 pc 0000000001c3475c  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (js_editor_support_MiddlewareManager_renderRegistry(v8::FunctionCallbackInfo<v8::Value> const&)+344) (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #07 pc 0000000002cf5f94  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #08 pc 0000000002cf55f4  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #09 pc 0000000002cf4d84  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)
  #10 pc 0000000002c0d6c8  /data/app/~~ZpzXbgd8kqbi-wbWaoQJ6w==/xxx.xxx.xxx-TZbuao82ieKmHBgaiZugtg==/lib/arm64/libcocos.so (BuildId: 72b6b2ed3be6e5894b744a9ba0fb477cb67ceb1e)


合并这个 pr 试试

我们直接把引擎自定为3.6.3分支,测试了半小时,目前暂未出现 spine 导致的崩溃。
希望官方还是快点出3.6.3把,另外这种版本迭代的稳定性和质量感觉还是需要加强,既然是希望大家用来做产品,那就不能每个版本都引入新的问题,然后为了解决问题,又升级,又引入新的问题,如此循环,作为开发者,我们会非常痛苦和低效,尤其是如果我们这些从3.x 开始用或者回归的开发者,还是有很多人在用来做线上产品的,那就更需要相对稳定的版本了。

3.7.1上ios模拟器和真机上还是会crash
image

终于找到问题了,主要是EventTarget.emit的问题,都是在当前帧执行。
在3.5.x上一直跑的好好的,升级到3.7.1后真机就一直crash。今天把EventTarget.emit改成用scheduleOnce做成下一帧执行就没问题

怀疑3.7.1有改动EventTarget.emit