我刚刚在Google Play商店发布了我的Unity应用。但是,我的一些用户在以下设备上获得了Native crash at signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
:
三星Galaxy S3(Android 4.3),LG K10 LTE(Android 6.0),Highscreen Easy XL(Android 6.0),索尼Xperia C5 Ultra Dual(Android 6.0),华为Y635-TL00(Android 4.4)。< / em>的
我无法在我的三星Galaxy S6或我朋友的设备上重现同样的崩溃。我正在使用Unity 5.6.2f1,API级别16.可能导致此崩溃的原因是什么?我应该如何尝试修复它?
回溯:
native: pc 00000000004db254 /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 00000000004ec69c /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 00000000000d9e24 /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 00000000000db2d0 /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 000000000031a3b0 /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 00000000005eea94 /mnt/asec/com.companyname.app-1/lib/libunity.so
native: pc 000000000001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
native: pc 000000000004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
native: pc 0000000000027860 /system/lib/libdvm.so
native: pc 000000000002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
native: pc 0000000000060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
native: pc 0000000000060a97 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
native: pc 000000000005582b /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
答案 0 :(得分:1)
我发现当我尝试使用Application.LoadLevelAdditive()加载许多纹理较重的对象时发生了这个错误。我通过简单地在需要时启用/禁用对象来解决问题(我会将它们初始化为禁用,并在以后启用它们。)