creator升级到1.6 Android闪退,已删除build目录后重编

之前用creator 1.5.2,在Android真机上运行正常。代码没做任何改动,升级到1.6,删除build目录重新编译,在一台手机上(Android 5.1系统)黑屏,另一台(Android 4.4)弹窗提示:XX程序已停止。看Android的logcat无任何有效错误信息。

Cocos creator中选的Android API版本为19,手动去掉了AnySDK。

1赞

补充:
08-31 18:20:29.801 26247-19978/? W/System.err: java.lang.NoSuchMethodException: getProtectionState []
08-31 18:20:29.801 26247-19978/? W/System.err: at java.lang.Class.getMethod(Class.java:680)
08-31 18:20:29.801 26247-19978/? W/System.err: at java.lang.Class.getDeclaredMethod(Class.java:635)

这些是唯一能找到的可能有些价值的信息。

另外,只在Android平台无法运行,web是正常的。

构建选择的架构是什么呢?有没有用自定义引擎(native 或者 web)?

会不会是你添加的一些 JAVA 类库没有放进新的 build 目录下?

MAC系统

  1. 只选了armeabi
  2. 未选android studio,如果选studio,提示没有NDK,但是实际上有,并且定义了NDK_ROOT在环境变量中,依然提示没有。NDK是最新的15.1。
  3. API LEVEL 19
  4. 没有自定义引擎和自定义JAVA类库
  5. 去掉了AnySDK

去掉 anysdk 有没有把 main.js 中的 anysdk 相关的 require 删除?

main.js指的是这个地方吗?已经注释掉了
// anysdk scripts
if (cc.sys.isNative && cc.sys.isMobile) {
// jsList = jsList.concat([‘jsb_anysdk.js’, ‘jsb_anysdk_constants.js’]);
}

我现在正在试验新建一个hello world工程,用1.6编,看看是否正常。

这次是真不行了。。。用cocos creator 1.6新建的Hello World工程,在华为P6 4.4系统的手机上运行就弹出已停止窗,魅族5.1没事。
没有去掉AnySDK,也没修改任何Hello World里面的东西,除了未勾选Android Studio,勾选了armeabi以外,其余都是默认设置。cocos creator 1.5.2没这个问题。

这些是有关的错误信息:

08-31 19:11:20.770 31259-31259/? D/dalvikvm: Trying to load lib /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so 0x41c50f58
08-31 19:11:20.810 31259-31259/? E/Gecko: mozalloc_abort: Redirecting call to abort() to mozalloc_abort
08-31 19:11:20.810 31259-31259/? A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 31259 (os2d.helloworld)
08-31 19:11:20.860 131-131/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-31 19:11:20.860 131-131/? I/DEBUG: Build fingerprint: ‘Huawei/P6-T00/hwp6-t00:4.4.2/HuaweiP6-T00/C01B508SP02:user/ota-rel-keys,release-keys’
08-31 19:11:20.860 131-131/? I/DEBUG: Revision: ‘0’
08-31 19:11:20.860 131-131/? I/DEBUG: pid: 31259, tid: 31259, name: os2d.helloworld >>> org.cocos2d.helloworld <<<
08-31 19:11:20.860 131-131/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

我们没有重现这样的问题,麻烦把你的项目发来看看,我猜测仍然是环境问题

TestProject.zip (260.2 KB)

这是新建的Hello World工程,用1.6和1.6.1打包Android版本,运行在华为P6手机(Android 4.4)上弹出程序关闭提示框。必现。用1.5.2打包没事,现在已经降级回1.5.2版本。
环境:

  1. MAC系统
  2. NDK r10e,NDK最新版都不行
  3. SDK版本选择了Android-10,Android-17,Android-19, Android-22都不行

错误日志:
09-06 18:11:34.350 131-131/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-06 18:11:34.350 131-131/? I/DEBUG: Build fingerprint: ‘Huawei/P6-T00/hwp6-t00:4.4.2/HuaweiP6-T00/C01B508SP02:user/ota-rel-keys,release-keys’
09-06 18:11:34.350 131-131/? I/DEBUG: Revision: ‘0’
09-06 18:11:34.350 131-131/? I/DEBUG: pid: 8348, tid: 8348, name: os2d.helloworld >>> org.cocos2d.helloworld <<<
09-06 18:11:34.350 131-131/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
09-06 18:11:34.350 647-647/? W/PhoneStatusBar/NavigationBarView: *** Invalid layout in navigation bar (sizeChanged this=80x720 cur=720x96)
09-06 18:11:34.380 134-134/? I/gralloc_overlay: Self allocation gralloc overlay
09-06 18:11:34.490 131-131/? I/DEBUG: r0 00000046 r1 00000000 r2 783514bc r3 78496f3c
09-06 18:11:34.490 131-131/? I/DEBUG: r4 781cd464 r5 40160fc9 r6 619bd494 r7 4016108c
09-06 18:11:34.490 131-131/? I/DEBUG: r8 00000081 r9 40165678 sl 00000001 fp 78467434
09-06 18:11:34.490 131-131/? I/DEBUG: ip 00000003 sp bef5d3e0 lr 77d7c2ac pc 77d7c2c4 cpsr 600f0010
09-06 18:11:34.490 131-131/? I/DEBUG: d0 65706c65000a2972 d1 69206c656e72656b
09-06 18:11:34.490 131-131/? I/DEBUG: d2 7269757165722073 d3 7572206f74206465
09-06 18:11:34.490 131-131/? I/DEBUG: d4 622073696874206e d5 28202e7972616e69
09-06 18:11:34.490 131-131/? I/DEBUG: d6 6c656e72656b5f5f d7 67686378706d635f
09-06 18:11:34.490 131-131/? I/DEBUG: d8 0000000000000000 d9 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d10 0000000000000000 d11 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d12 0000000000000000 d13 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d14 0000000000000000 d15 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d16 000bffffffff1000 d17 ffff000000010000
09-06 18:11:34.490 131-131/? I/DEBUG: d18 00ff00ff00ff00ff d19 00ff00ff00ff00ff
09-06 18:11:34.490 131-131/? I/DEBUG: d20 0002000200020002 d21 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d22 00000000000000ff d23 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d24 0000000000000000 d25 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d26 0707070703030303 d27 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d28 0000000000000000 d29 0000000000000000
09-06 18:11:34.490 131-131/? I/DEBUG: d30 3ff0000000000000 d31 3f4de16b9c24a98f
09-06 18:11:34.490 131-131/? I/DEBUG: scr 60000010
09-06 18:11:34.490 131-131/? I/DEBUG: backtrace:
09-06 18:11:34.490 131-131/? I/DEBUG: #00 pc 00cff2c4 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so (mozalloc_abort(char const*)+56)
09-06 18:11:34.490 131-131/? I/DEBUG: #01 pc 00cff2a8 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so (mozalloc_abort(char const*)+28)
09-06 18:11:34.490 131-131/? I/DEBUG: stack:
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3a0 00000020
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3a4 785001a8
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3a8 00000040
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3ac 78500238
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3b0 78606480
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3b4 78500238
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3b8 78500044
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3bc 77d836a8 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so (malloc+776)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3c0 00000014
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3c4 98f26ea9
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3c8 781cd464 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3cc 40160fc9 /system/bin/linker
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3d0 619bd494
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3d4 77d7c2ac /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so (mozalloc_abort(char const*)+32)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3d8 783514c8 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3dc 7835148c /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so
09-06 18:11:34.490 131-131/? I/DEBUG: #00 bef5d3e0 98f26ea9
09-06 18:11:34.490 131-131/? I/DEBUG: … …
09-06 18:11:34.490 131-131/? I/DEBUG: #01 bef5d3e0 98f26ea9
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3e4 77d7c260 /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so (abort+16)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3e8 98f26ea9
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3ec 781cd4ac /data/app-lib/org.cocos2d.helloworld-1/libcocos2djs.so
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3f0 401dffd8 /system/lib/libc.so
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3f4 656e2041 /dev/ashmem/dalvik-mark-stack (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3f8 20726577
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d3fc 6e72656b /dev/ashmem/dalvik-LinearAlloc (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d400 69206c65 /dev/ashmem/dalvik-mark-stack (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d404 65722073 /dev/ashmem/dalvik-mark-stack (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d408 72697571
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d40c 74206465 /system/usr/share/zoneinfo/tzdata
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d410 7572206f /system/usr/icu/icudt51l.dat
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d414 6874206e /dev/ashmem/dalvik-mark-stack (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d418 62207369 /dev/ashmem/dalvik-bitmap-2 (deleted)
09-06 18:11:34.490 131-131/? I/DEBUG: bef5d41c 72616e69
09-06 18:11:34.490 131-131/? I/DEBUG: memory near r2:
09-06 18:11:34.490 131-131/? I/DEBUG: 7835149c 206f7420 726f6261 20292874 6d206f74
09-06 18:11:34.490 131-131/? I/DEBUG: 783514ac 6c617a6f 5f636f6c 726f6261 00000a74
09-06 18:11:34.490 131-131/? I/DEBUG: 783514bc 5f5a4f4d 53415243 00292848 617a6f6d
09-06 18:11:34.490 131-131/? I/DEBUG: 783514cc 636f6c6c 6f62615f 203a7472 00007325
09-06 18:11:34.490 131-131/? I/DEBUG: 783514dc 33323130 37363534 42413938 46454443
09-06 18:11:34.490 131-131/? I/DEBUG: 783514ec 00000000 2074756f 6d20666f 726f6d65
09-06 18:11:34.490 131-131/? I/DEBUG: 783514fc 30203a79 30303078 30303030 30303030
09-06 18:11:34.490 131-131/? I/DEBUG: 7835150c 30303030 79622030 20736574 75716572
09-06 18:11:34.490 131-131/? I/DEBUG: 7835151c 65747365 00000064 616d656a 636f6c6c
09-06 18:11:34.490 131-131/? I/DEBUG: 7835152c 00000000 6d656a3c 6f6c6c61 00003e63
09-06 18:11:34.490 131-131/? I/DEBUG: 7835153c 6d28203a 6f6c6c61 45202963 726f7272
09-06 18:11:34.490 131-131/? I/DEBUG: 7835154c 206e6920 6d6e756d 29287061 0000203a
09-06 18:11:34.490 131-131/? I/DEBUG: 7835155c 00000041 00000054 00000053 00000051
09-06 18:11:34.490 131-131/? I/DEBUG: 7835156c 205f5f5f 69676542 616d206e 636f6c6c
09-06 18:11:34.490 131-131/? I/DEBUG: 7835157c 61747320 74736974 20736369 0a5f5f5f
09-06 18:11:34.490 131-131/? I/DEBUG: 7835158c 00000000 65737341 6f697472 0020736e
09-06 18:11:34.490 131-131/? I/DEBUG: memory near r3:
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f1c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f2c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f3c 783514bc 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f4c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f5c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f6c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f7c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f8c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496f9c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496fac 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496fbc 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496fcc 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496fdc 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496fec 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 78496ffc 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: 7849700c 00000000 00000000 00000000 00000000
09-06 18:11:34.490 131-131/? I/DEBUG: memory near r4:
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd444 e92d4010 e59f3010 e1a04000 e12fff33
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd454 e3a03000 e5c43000 e8bd8010 ffff0fa0
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd464 e3e03a0f e5133003 e3530004 812fff1e
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd474 e52de004 e59f102c e24dd054 e28d3004
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd484 e1a00003 e08f1001 e3a0204c ebc5ac81
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd494 e3a0204c e1a03000 e1a01003 e3a00002
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4a4 ebc5af5e ebeebb68 00131185 e92d4ff0
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4b4 e59f904c e24dd014 e1a08000 e1a06002
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4c4 e1a07003 e1a0b00d e28da008 e1c840d0
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4d4 e1a0000b e1cd40f0 e0944006 e0a55007
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4e4 e1cd40f8 e1a0100a e1a02008 e12fff39
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd4f4 e3500000 1afffff4 e1cd00d0 e28dd014
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd504 e8bd8ff0 ffff0f60 e92d4ff0 e59f904c
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd514 e24dd014 e1a08000 e1a06002 e1a07003
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd524 e1a0b00d e28da008 e1c840d0 e1a0000b
09-06 18:11:34.490 131-131/? I/DEBUG: 781cd534 e1cd40f0 e0544006 e0c55007 e1cd40f8
09-06 18:11:34.490 131-131/? I/DEBUG: memory near r5:
09-06 18:11:34.490 131-131/? I/DEBUG: 40160fa8 70252040 726f6620 73252720 005d2027
09-06 18:11:34.490 131-131/? I/DEBUG: 40160fb8 7325205b 5d64255b 203d3d20 5d207025
09-06 18:11:34.490 131-131/? I/DEBUG: 40160fc8 6e756600 6f697463 205b006e 656e6f44
09-06 18:11:34.490 131-131/? I/DEBUG: 40160fd8 6c616320 676e696c 20732520 20726f66
09-06 18:11:34.490 131-131/? I/DEBUG: 40160fe8 27732527 44005d20 52505f54 494e4945
09-06 18:11:34.490 131-131/? I/DEBUG: 40160ff8 52415f54 00594152 22732522 6769203a
09-06 18:11:34.490 131-131/? I/DEBUG: 40161008 69726f6e 2520676e 6e652d64 20797274
09-06 18:11:34.490 131-131/? I/DEBUG: 40161018 505f5444 4e494552 415f5449 59415252
09-06 18:11:34.490 131-131/? I/DEBUG: 40161028 206e6920 72616873 6c206465 61726269
09-06 18:11:34.490 131-131/? I/DEBUG: 40161038 00217972 22732522 6163203a 6e696c6c
09-06 18:11:34.490 131-131/? I/DEBUG: 40161048 6f632067 7274736e 6f746375 69207372
09-06 18:11:34.490 131-131/? I/DEBUG: 40161058 5444206e 45454e5f 20444544 22732522
09-06 18:11:34.490 131-131/? I/DEBUG: 40161068 73252200 63203a22 696c6c61 6320676e
09-06 18:11:34.490 131-131/? I/DEBUG: 40161078 74736e6f 74637572 0073726f 495f5444
09-06 18:11:34.500 131-131/? I/DEBUG: 40161088 0054494e 495f5444 5f54494e 41525241
09-06 18:11:34.500 131-131/? I/DEBUG: 40161098 6e690059 696c6176 6c662064 20736761
09-06 18:11:34.500 131-131/? I/DEBUG: memory near r6:
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd474 72bb3000 619bd370 72bbbdc0 619bd598
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd484 619bd350 00000001 72bb3000 00000100
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd494 6362696c 736f636f 736a6432 006f732e
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4a4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4b4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4c4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4d4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4e4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd4f4 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd504 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd514 7707d034 00000008 00000000 7707d000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd524 01425000 00000000 78467638 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd534 00000000 00000000 00000001 770f1468
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd544 7707d148 0000401b 00007432 772539c0
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd554 77263a2c 7846b9b0 77337844 00000191
09-06 18:11:34.500 131-131/? I/DEBUG: 619bd564 77280af4 00016daa 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: memory near r7:
09-06 18:11:34.500 131-131/? I/DEBUG: 4016106c 63203a22 696c6c61 6320676e 74736e6f
09-06 18:11:34.500 131-131/? I/DEBUG: 4016107c 74637572 0073726f 495f5444 0054494e
09-06 18:11:34.500 131-131/? I/DEBUG: 4016108c 495f5444 5f54494e 41525241 6e690059
09-06 18:11:34.500 131-131/? I/DEBUG: 4016109c 696c6176 6c662064 20736761 64206f74
09-06 18:11:34.500 131-131/? I/DEBUG: 401610ac 65706f6c 25203a6e 25220078 203a2273
09-06 18:11:34.500 131-131/? I/DEBUG: 401610bc 6c6c6163 20676e69 74736564 74637572
09-06 18:11:34.500 131-131/? I/DEBUG: 401610cc 0073726f 465f5444 5f494e49 41525241
09-06 18:11:34.500 131-131/? I/DEBUG: 401610dc 54440059 4e49465f 6e750049 64616f6c
09-06 18:11:34.500 131-131/? I/DEBUG: 401610ec 20676e69 27732527 20732500 6465656e
09-06 18:11:34.500 131-131/? I/DEBUG: 401610fc 6f742073 6c6e7520 2064616f 6e007325
09-06 18:11:34.500 131-131/? I/DEBUG: 4016110c 7520746f 616f6c6e 676e6964 73252720
09-06 18:11:34.500 131-131/? I/DEBUG: 4016111c 64202c27 65726365 746e656d 20676e69
09-06 18:11:34.500 131-131/? I/DEBUG: 4016112c 5f666572 6e756f63 6f742074 00642520
09-06 18:11:34.500 131-131/? I/DEBUG: 4016113c 7665642f 6c756e2f 6163006c 746f6e6e
09-06 18:11:34.500 131-131/? I/DEBUG: 4016114c 65706f20 642f206e 6e2f7665 3a6c6c75
09-06 18:11:34.500 131-131/? I/DEBUG: 4016115c 00732520 704f205b 64656e65 65642f20
09-06 18:11:34.500 131-131/? I/DEBUG: memory near r9:
09-06 18:11:34.500 131-131/? I/DEBUG: 40165658 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165668 00000000 00000000 619bd598 40194004
09-06 18:11:34.500 131-131/? I/DEBUG: 40165678 00000000 619bd000 7379732f 2f6d6574
09-06 18:11:34.500 131-131/? I/DEBUG: 40165688 2f6e6962 6b6e696c 00007265 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165698 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656a8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656b8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656c8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656d8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656e8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 401656f8 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165708 00000000 40154000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165718 40164ed4 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165728 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165738 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: 40165748 00000000 00000000 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: memory near fp:
09-06 18:11:34.500 131-131/? I/DEBUG: 78467414 78467428 781bf0f1 781bf13d 781bf0ed
09-06 18:11:34.500 131-131/? I/DEBUG: 78467424 00000000 78465f58 783ff7e0 78465a8c
09-06 18:11:34.500 131-131/? I/DEBUG: 78467434 77345d49 77345e1d 77345e55 77345ebd
09-06 18:11:34.500 131-131/? I/DEBUG: 78467444 77345ef5 77345f2d 77345f95 77345fcd
09-06 18:11:34.500 131-131/? I/DEBUG: 78467454 77346005 7734603d 77346075 773460ad
09-06 18:11:34.500 131-131/? I/DEBUG: 78467464 773460e5 77346135 77346185 773461d5
09-06 18:11:34.500 131-131/? I/DEBUG: 78467474 77346249 773462d9 773463bc 773464b8
09-06 18:11:34.500 131-131/? I/DEBUG: 78467484 77346534 773465cc 77346614 773492ec
09-06 18:11:34.500 131-131/? I/DEBUG: 78467494 7734932c 77349368 773493c8 77349880
09-06 18:11:34.500 131-131/? I/DEBUG: 784674a4 773498fc 77349924 77349998 77349a60
09-06 18:11:34.500 131-131/? I/DEBUG: 784674b4 77349aa4 77349abc 77349afc 77349b70
09-06 18:11:34.500 131-131/? I/DEBUG: 784674c4 77349b8c 77349c0c 77349c74 77349c9c
09-06 18:11:34.500 131-131/? I/DEBUG: 784674d4 77349cdc 77349d84 7734b424 7734bde8
09-06 18:11:34.500 131-131/? I/DEBUG: 784674e4 7734be10 7734be35 7734be6d 7734bfad
09-06 18:11:34.500 131-131/? I/DEBUG: 784674f4 7734c045 7734c071 7734c09c 7734c134
09-06 18:11:34.500 131-131/? I/DEBUG: 78467504 7734c224 7734c254 7734c378 7734c49c
09-06 18:11:34.500 131-131/? I/DEBUG: memory near sp:
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d3c0 00000014 98f26ea9 781cd464 40160fc9
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d3d0 619bd494 77d7c2ac 783514c8 7835148c
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d3e0 98f26ea9 77d7c260 98f26ea9 781cd4ac
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d3f0 401dffd8 656e2041 20726577 6e72656b
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d400 69206c65 65722073 72697571 74206465
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d410 7572206f 6874206e 62207369 72616e69
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d420 28202e79 656b5f5f 6c656e72 706d635f
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d430 67686378 68203436 65706c65 000a2972
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d440 7734ffb9 401566fb 619bd494 40160fc9
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d450 00000080 000001fc 619bd494 401567d3
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d460 00000001 40063138 00000031 464c457f
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d470 00010101 00000004 40160529 40160fb8
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d480 40194370 619bd494 78467740 7725399f
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d490 40165678 40160529 4016103c 41903c6c
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d4a0 41c41cf4 40156925 00000000 00000000
09-06 18:11:34.500 131-131/? I/DEBUG: bef5d4b0 00000001 619bd494 00000001 41c48778
09-06 18:11:34.500 131-131/? I/DEBUG: code around pc:
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2a4 e3a00006 ebd6f092 e59f3020 e59f2020
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2b4 e3a01000 e79f3003 e08f2002 e5832000
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2c4 e5811000 e7f000f0 005bafe4 005d5220
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2d4 006edd78 005d51f8 e92d4070 e1a04000
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2e4 e59fe0f8 e24dd038 e08fe00e e28d6004
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2f4 e8be000f e1a0c006 e59f50e4 e8ac000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c304 e08f5005 e8be000f e5955000 e8ac000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c314 e3550000 e8be000f e59ee000 e8ac000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c324 e1cce0b0 0a000001 e1a00004 e12fff35
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c334 e3540000 0a000025 e59f30a8 e204200f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c344 e08f3003 e1b01224 e7d32002 e5cd2024
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c354 0a00001e e201100f e1b02424 e7d31001
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c364 e5cd1023 0a000019 e202200f e1b01624
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c374 e7d32002 e5cd2022 0a000014 e201100f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c384 e1b02824 e7d31001 e5cd1021 0a00000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c394 e202200f e1b01a24 e7d32002 e5cd2020
09-06 18:11:34.500 131-131/? I/DEBUG: code around lr:
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c28c e59f1038 e59f2038 e92d4008 e08f1001
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c29c e1a03000 e08f2002 e3a00006 ebd6f092
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2ac e59f3020 e59f2020 e3a01000 e79f3003
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2bc e08f2002 e5832000 e5811000 e7f000f0
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2cc 005bafe4 005d5220 006edd78 005d51f8
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2dc e92d4070 e1a04000 e59fe0f8 e24dd038
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2ec e08fe00e e28d6004 e8be000f e1a0c006
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c2fc e59f50e4 e8ac000f e08f5005 e8be000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c30c e5955000 e8ac000f e3550000 e8be000f
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c31c e59ee000 e8ac000f e1cce0b0 0a000001
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c32c e1a00004 e12fff35 e3540000 0a000025
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c33c e59f30a8 e204200f e08f3003 e1b01224
09-06 18:11:34.500 131-131/? I/DEBUG: 77d7c34c e7d32002 e5cd2024 0a00001e e201100f
09-06 18:11:34.510 131-131/? I/DEBUG: 77d7c35c e1b02424 e7d31001 e5cd1023 0a000019
09-06 18:11:34.510 131-131/? I/DEBUG: 77d7c36c e202200f e1b01624 e7d32002 e5cd2022
09-06 18:11:34.510 131-131/? I/DEBUG: 77d7c37c 0a000014 e201100f e1b02824 e7d31001
09-06 18:11:34.620 539-560/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
09-06 18:11:34.640 539-8366/? W/ActivityManager: Force finishing activity org.cocos2d.helloworld/org.cocos2dx.javascript.AppActivity

项目已发~
补充说明一下,这个手机是虚拟按键,Android4.4手机,用1.5.2版本的creator编出来的包运行没问题。其他环境完全一样。升级到1.6以后的版本打出来的包,在这个手机上全都运行不了。

同样出现启动闪退,问题解决了吗?怎么弄?

之前的包没注意到,今天会看一下

你这个项目就是最简单的 hello world 啊,我们这边的手机都无法重现你说的问题,最接近的环境是华为 H60 4.4.2,也是可以正常运行的

对,我就是建了一个测试工程进行实验。特别无语的是,我在windows相同环境,1.6.1编出来的包,在这个手机上就能运行。唯独用mac编不行,1.6.0以上的版本都不行,1.5.2正常。简直是不知道怎么办了。

1.6打出的ios在10.3.3系统上也闪退
低版本8.x是没有问题
我现在也回退到1.5.2了

补充下,直接在xcode里debug起来在10.3.3上也没有问题,很奇怪

我在google后台也发现了一些这样的异常,接入Bugly之后,收集到一些信息,
#00 pc 00aa1c38 libcocos2djs.so mozalloc_abort(char const*) [armeabi-v6]
好像都是在开始的加载的时候,
前后台状态:后台 --3个报告都是一样
机型: VIVO 1601 / 三星 SM G610F / 小米 REDMI 5A

日志:
12-18 23:18:07.249 6903 6943 D cocos2d-x debug info: Create unpacker 05c58df11 for 20RdnKT6RNLIN9fkSm2jwv
18812-18 23:18:07.288 6903 6988 E Gecko : mozalloc_abort: Redirecting call to abort() to mozalloc_abort

可用信息极少,我们测试人员也没发现,但是上线之后,发现这个bug还挺多的,

补充一下:
cocos:cocos creator 1.6.1
Android:15
Android studio 工程编译

bug只有Android4.4和4.3上出现,
Galaxy Note 2 (t03g)崩溃的概率 41.3%
P7 (hwp7) 21.8%