正常生产中的项目升级1.6后闪退,必现.找不到原因 日志不详 求解

看起来是热更新失败了,找不到远程服务器,然后崩溃了,但是没有引擎层的崩溃栈,引擎层的输出目前看都是正常的。最后是 window manager service 杀死了游戏进程

有引擎崩溃的 不会看 我贴上.热更是用的你的downloader,其他的是自己写的,测试服务器上没有文件 报错算是正常.

1.log.zip (5.5 KB)

08-16 18:20:39.015 24428-24505/com.yinghui.mj D/cocos2d-x debug info: —> onError!
08-16 18:20:39.015 24428-24505/com.yinghui.mj D/cocos2d-x debug info: get remoteManifest error -3 cz.msebera.android.httpclient.client.HttpResponseException: Not Found
08-16 18:20:39.025 24428-24505/com.yinghui.mj D/cocos2d-x: find in flash memory dirPath(/data/data/com.yinghui.mj/files/)
08-16 18:20:39.025 24428-24505/com.yinghui.mj D/cocos2d-x debug info: —> net -> downloader url: http://s.****.com/tassets/manifest
08-16 18:20:39.025 24428-24505/com.yinghui.mj D/cocos2d-x: find in flash memory dirPath(/data/data/com.yinghui.mj/files/)
08-16 18:20:39.025 24428-24505/com.yinghui.mj D/cocos2d-x debug info: —> net -> downloader url: http://s.
.com/tassets/md5
08-16 18:20:39.075 24428-24428/com.yinghui.mj D/Cocos2dxDownloader: onFailure(code:404 headers:[Lcz.msebera.android.httpclient.Header;@41a7f640 throwable:cz.msebera.android.httpclient.client.HttpResponseException: Not Found id:2

1.5.2更新上来的

上面这些都是正常的 debug info,并不会直接导致崩溃,建议你在游戏逻辑中,热更新的附近多打一些 log。

或者用 Android Studio 调试,看看崩溃位置

zip文件里面是奔溃的堆栈 都是正常的?

看到崩溃 log 了,崩溃确实是在 Spidermonkey 里面

08-16 18:16:15.815 14729-14757/com.******.mj A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 14757 (Thread-3857)

但是 log 没有什么帮助,调用栈看不出来原因

还是要在 Android Studio 里面调试

好 主要是不是很会用, 也没有教程什么的

我的也碰到了和你一样的升级闪退,日志和你一样,正在排查。。。

这个发生在切换到新的场景 我把代码都注释掉了还是…

把要切换的场景换成一个空场景 还是直接gg as调试这个真心搞不来 对cocos2d x 没有了解

08-16 21:30:58.825 30875-30875/com..mj V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {419cf128}
08-16 21:30:58.825 30875-30875/com.
.mj I/LibraryLoader: Expected native library version number “”,actual native library version number “”
08-16 21:30:58.835 30875-30875/com..mj I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
08-16 21:30:58.835 30875-30875/com.
.mj I/BrowserStartupController: Initializing chromium process, renderers=0
08-16 21:30:58.835 30875-30875/com..mj E/AudioManagerAndroid: BLUETOOTH permission is missing!
08-16 21:30:58.895 30875-30875/com.
.mj D/dalvikvm: GC_FOR_ALLOC freed 109K, 12% free 3171K/3580K, paused 9ms, total 9ms
08-16 21:30:58.895 30875-30875/com..mj I/dalvikvm-heap: Grow heap (frag case) to 3.436MB for 281896-byte allocation
08-16 21:30:58.905 30875-30895/com.
.mj D/dalvikvm: GC_FOR_ALLOC freed 2K, 11% free 3444K/3856K, paused 10ms, total 10ms
08-16 21:30:58.915 30875-31075/com..mj W/chromium: [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
08-16 21:30:59.915 30875-30913/com.
.mj D/cocos2d-x debug info: LoadScene 3evVTWPSJKoZ+1GPa8gUHh: 1693.481999999999ms
08-16 21:31:00.035 30875-30913/com..mj D/cocos2d-x debug info: InitScene: 120.80000000000109ms
08-16 21:31:00.035 30875-30913/com.
.mj D/cocos2d-x debug info: AutoRelease: 0.7340000000003783ms
08-16 21:31:00.105 30875-30913/com..mj D/cocos2d-x debug info: Destroy: 66.16799999999967ms
08-16 21:31:00.105 30875-30913/com.
.mj D/cocos2d-x debug info: AttachPersist: 1.5670000000009168ms
08-16 21:31:00.115 30875-30913/com.***.mj A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30913 (Thread-3986)

找到问题了请发表一下 我是完全放弃了 不知道如何着手

呵呵,还好我不急,没一直花时间找这。。。,等我找到了和你和哈。。。

准备发新版 就一起把引擎更新上去 搞了一天了 头都大了

同志,刚发的正式版你就敢上项目,胆子好大,我一般是先试用试用,等出个.1版或.2版再上

找到问题了,cc.sys.isObjectValid不能用,用了必闪退

1赞

我验证一下 iSObjectValid 谢谢大家的测试