Androind信号崩溃11 SIGSEGV,代码1 SEGV_MAPERR(Unity 5.6.0f3)

时间:2017-10-06 14:41:14

标签: android c++ unity3d

我在Unity 5.6.0f3上开发游戏,我正面临着一些Android设备的问题。这次崩溃不是在每个Android设备上重现,而是在他们的身上,如:LG Optimus L7II,LG麦格纳,LG Leon,联想A680,联想P780,联想S580,联想A3300,联想S850,联想A2010-a,ZenFone 5 (A502CG),ZenPad C 7.0(Z170CG),HUAWEI Y3II,HUAWEI Y635-L01。

当我的应用处于后台时发生此崩溃。就是这样:

Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), 
fault addr 000000f0
Build fingerprint: 'Huawei/Y635-L01/hwY635:4.4.4/HuaweiY635-
L01/C21B131:user/ota-rel-keys,release-keys'
Revision: '0'
pid: 25582, tid: 25635, name: Thread-2988  >>> com.rmg.farmclicker <<<
r0 00000000  r1 6c0b30bb  r2 696e5500  r3 00000055
r4 622fa90d  r5 622fabf0  r6 622fa91d  r7 00000000
r8 622fa91d  r9 00010668  sl 622fa90d  fp 62a61b24
ip ffffffe8  sp 62a61880  lr 617d4e0c  pc 617d4c50  cpsr 2d353336

   at libunity.004d6c50(Unknown Source)
   at libunity.000d7064(Unknown Source)
   at libunity.000d8510(Unknown Source)
   at libunity.00312fe8(Unknown Source)
   at libunity.005ed0c4(Unknown Source)
   at libdvm.dvmPlatformInvoke(dvmPlatformInvoke:112)
   at libdvm.dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)(dvmCallJNIMethod:398)
   at libdvm.00029aa0(Unknown Source)
   at libdvm.dvmMterpStd(Thread*)(dvmMterpStd:76)
   at libdvm.dvmInterpret(Thread*, Method const*, JValue*)(dvmInterpret:184)
   at libdvm.dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)(dvmCallMethodV:336)
   at libdvm.dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)(dvmCallMethod:20)
   at libdvm.00058463(Unknown Source)
   at libc.__thread_entry(__thread_entry:44)
   at libc.pthread_create(pthread_create:316)

我在我的应用程序中使用C ++上的一些本机库,我认为问题出在其中。

我认为代码可能是主要问题:

#elif ANDROID
struct timespec res;
clock_gettime(CLOCK_MONOTONIC, &res);

std::chrono::milliseconds uptime = std::chrono::milliseconds(static_cast<unsigned long long>(res.tv_sec) * 1000ULL + static_cast<unsigned long long>(res.tv_nsec)/1000000ULL);
return uptime.count();

如果您对此有所了解,请提供帮助,谢谢;)

0 个答案:

没有答案