Cocos creator 2.2.0 安卓:signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

  • Creator 版本:2.2.0
  • 目标平台:Android
  • 重现方式:应用首次安装,启动时。
  • 首个报错:
    ********** Crash dump: **********
    Build fingerprint: ‘xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/8.7.12:user/release-keys’
    pid: 29397, tid: 29482, name: GLThread 1273 >>> XXXX.XXXX.XXXX <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7747aee000
    Stack frame #00 pc 000000000001c8c8 /system/lib64/libc.so (memcpy+280)
    Stack frame #01 pc 0000000001686264 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::SlotCallbackResult v8::internal::Scavenger::ScavengeObjectv8::internal::FullHeapObjectSlot(v8::internal::FullHeapObjectSlot, v8::internal::HeapObject) at :?
    Stack frame #02 pc 0000000001685678 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Scavenger::ScavengePage(v8::internal::MemoryChunk*) at :?
    Stack frame #03 pc 0000000001687298 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::ScavengingTask::RunInParallel() at :?
    Stack frame #04 pc 00000000017a6130 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::ItemParallelJob::Task::RunInternal() at :?
    Stack frame #05 pc 00000000017a64c8 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::ItemParallelJob::Run() at :?
    Stack frame #06 pc 0000000001682e60 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::ScavengerCollector::CollectGarbage() at :?
    Stack frame #07 pc 0000000001425728 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Heap::Scavenge() at :?
    Stack frame #08 pc 0000000001423184 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) at :?
    Stack frame #09 pc 00000000014219f4 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) at :?
    Stack frame #10 pc 000000000142b928 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) at :?
    Stack frame #11 pc 000000000142b9a8 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) at :?
    Stack frame #12 pc 00000000013e2740 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::factory::NewDescriptorArray(int, int, v8::internal::AllocationType) at :?
    Stack frame #13 pc 0000000001587130 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::DescriptorArray::CopyUpToAddAttributes(v8::internal::Isolate*, v8::internal::Handlev8::internal::DescriptorArray, int, v8::internal::PropertyAttributes, int) at :?
    Stack frame #14 pc 00000000014ffeb0 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::map::CopyAddDescriptor(v8::internal::Isolate*, v8::internal::Handlev8::internal::Map, v8::internal::Descriptor*, v8::internal::TransitionFlag) at :?
    Stack frame #15 pc 00000000014ffc78 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::map::CopyWithField(v8::internal::Isolate*, v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::FieldType, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::Representation, v8::internal::TransitionFlag) at :?
    Stack frame #16 pc 0000000001506e1c /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::map::TransitionToDataProperty(v8::internal::Isolate*, v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::StoreOrigin) at :?
    Stack frame #17 pc 00000000014ee23c /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handlev8::internal::JSReceiver, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::StoreOrigin) at :?
    Stack frame #18 pc 00000000015843ac /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::Maybev8::internal::ShouldThrow, v8::internal::StoreOrigin) at :?
    Stack frame #19 pc 0000000001583728 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::StoreOrigin, v8::Maybev8::internal::ShouldThrow) at :?
    Stack frame #20 pc 000000000179803c /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::StoreIC::Store(v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Object, v8::internal::StoreOrigin) at :?
    Stack frame #21 pc 000000000179c8dc /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine v8::internal::Runtime_StoreIC_Miss(int, unsigned long*, v8::internal::Isolate*) at :?
    Stack frame #22 pc 0000000000588908 /data/app/XXXX.XXXX.XXXX-JfZjg8DyVzhKLXmWhK-nwA==/lib/arm64/libcocos2djs.so: Routine Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit at :?
    Crash dump is completed

********** Crash dump: **********
Build fingerprint: ‘xiaomi/whyred/whyred:8.1.0/OPM1.171019.011/8.7.12:user/release-keys’
pid: 5285, tid: 5451, name: V8 DefaultWorke >>> XXXX.XXXX.XXXX <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7733be0000
Stack frame #00 pc 0000000001686740 /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::internal::SlotCallbackResult v8::internal::Scavenger::ScavengeObjectv8::internal::FullHeapObjectSlot(v8::internal::FullHeapObjectSlot, v8::internal::HeapObject) at :?
Stack frame #01 pc 0000000001685678 /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::internal::Scavenger::ScavengePage(v8::internal::MemoryChunk*) at :?
Stack frame #02 pc 0000000001687298 /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::internal::ScavengingTask::RunInParallel() at :?
Stack frame #03 pc 00000000017a6130 /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::internal::ItemParallelJob::Task::RunInternal() at :?
Stack frame #04 pc 00000000004e6630 /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run() at :?
Stack frame #05 pc 00000000004defec /data/app/XXXX.XXXX.XXXX-Dy-LBHCEPlaLNpKx5hTxYw==/lib/arm64/libcocos2djs.so: Routine v8::base::ThreadEntry(void*) at :?
Stack frame #06 pc 0000000000067ec4 /system/lib64/libc.so (__pthread_start(void*)+36)
Stack frame #07 pc 000000000001f2f4 /system/lib64/libc.so (__start_thread+68)

  • 之前哪个版本是正常的:
  • 手机型号:红米 note 5
  • 手机浏览器:
  • 编辑器操作系统:安卓版本 8.1
  • 重现概率:应用首次安装,启动时,出现概率比较大。

项目上线小范围推广测试时上报 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) 错误比较多,发现红米 note 5出现的概率有8成。这两天用红米 note 5测试,出现来两次上面的错误,都是安装后首次打开出现的。
自己能力有限,不知道怎么排查。 想问下,这个错误是什么原因造成。可以帮忙出些解决方法。
给一些解决思路。
谢谢啦。

1赞