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

你好,碰到了类似问题,请问你具体是怎么处理的?

请问现在情况怎样?是具体怎么修复的呢?

升级版本了,目前貌似没这个问题了

我们是升级了版本后就没出现了

现在在安卓平台运行(H5运行没报错没卡进程),战斗过程容易闪退,很难定位是spine还是其他问题导致,请问哪位大神可以给个指引?

目前你跑的哪个版本? :grinning:

3.7.3,不过据说3.6.3比较稳,搞不清了,反正各个版本都有自己的问题和升级的理由。

2023-06-01 20:41:33.033 12368-12368/? A/DEBUG: Build fingerprint: ‘OPPO/PEFM00/OP4E7B:10/QP1A.190711.020/1675832940:user/release-keys’
2023-06-01 20:41:33.033 12368-12368/? A/DEBUG: Revision: ‘0’
2023-06-01 20:41:33.033 12368-12368/? A/DEBUG: ABI: ‘arm64’
2023-06-01 20:41:33.034 12368-12368/? A/DEBUG: Timestamp: 2023-06-01 20:41:33+0800
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: pid: 11408, tid: 11562, name: Thread-2 >>> com.ydgame.gsjb <<<
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: uid: 10213
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: Cause: null pointer dereference
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x0 0000000000000001 x1 00000079858fa728 x2 00000000ffffffff x3 0000000000000000
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x4 00000077fe014688 x5 00000000000001bb x6 00000078094e5039 x7 00000000000001f9
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x8 0000000000000000 x9 00000077fda29b00 x10 0000000000000001 x11 0000000000000001
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x12 0000000000000000 x13 0000000000000065 x14 0000000000000009 x15 0000000000000000
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x16 000000792bf9d630 x17 0000007a17d77728 x18 0000007927df6000 x19 00000079858faa30
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x20 0000007800000000 x21 000000792bfe78dd x22 0000000000000000 x23 00000079858fc020
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x24 000000792a3eb0d8 x25 000000792bfe7000 x26 000000780b43ab3d x27 00000079858fc020
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: x28 000000780000a320 x29 00000079858fa740
2023-06-01 20:41:33.035 12368-12368/? A/DEBUG: sp 00000079858fa6c0 lr 0000007929927840 pc 00000079299278c8
2023-06-01 20:41:33.103 12368-12368/? A/DEBUG: backtrace:
2023-06-01 20:41:33.103 12368-12368/? A/DEBUG: #00 pc 00000000016668c8 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (cc::middleware::MiddlewareManager::update(float)+332) (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.103 12368-12368/? A/DEBUG: #01 pc 000000000212a2a0 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.103 12368-12368/? A/DEBUG: #02 pc 000000000183f27c /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (jsbFunctionWrapper(v8::FunctionCallbackInfov8::Value const&, bool ()(se::State&), char const)+376) (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.104 12368-12368/? A/DEBUG: #03 pc 000000000212a0fc /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (js_cc_middleware_MiddlewareManager_updateRegistry(v8::FunctionCallbackInfov8::Value const&)+36) (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.104 12368-12368/? A/DEBUG: #04 pc 0000000002dad588 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.104 12368-12368/? A/DEBUG: #05 pc 0000000002dacbe8 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.104 12368-12368/? A/DEBUG: #06 pc 0000000002dac378 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)
2023-06-01 20:41:33.104 12368-12368/? A/DEBUG: #07 pc 0000000002cc4d08 /data/app/com.ydgame.gsjb-kO0vYurBePpB450P9seg_Q==/lib/arm64/libcocos.so (BuildId: 142b0bea570a31616551077dc69cf1e5f661a3c9)

大佬们有知道这是不是跟spine有关吗?唉,H5怎么运行都没事,但在安卓上运行就闪退,然后包这个错误,愁死了