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

08-16 16:04:08.895 491-513/system_process I/BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
08-16 16:04:08.935 491-521/system_process W/InputDispatcher: channel ‘42215a10 com.yinghui.mj/org.cocos2dx.javascript.AppActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x9
08-16 16:04:08.935 491-521/system_process E/InputDispatcher: channel ‘42215a10 com.yinghui.mj/org.cocos2dx.javascript.AppActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
08-16 16:04:08.975 109-109/? D/Zygote: Process 28131 terminated by signal (11)
08-16 16:04:08.985 491-513/system_process D/dalvikvm: GC_FOR_ALLOC freed 2615K, 29% free 13604K/19116K, paused 88ms, total 88ms
08-16 16:04:08.985 491-502/system_process W/MediaFocusControl: AudioFocus audio focus client died
08-16 16:04:08.985 491-502/system_process I/MediaFocusControl: AudioFocus removeFocusStackEntry(): removing entry for android.os.BinderProxy@421fee70
08-16 16:04:08.985 491-28209/system_process W/ActivityManager: Force finishing activity com.yinghui.mj/org.cocos2dx.javascript.AppActivity
08-16 16:04:08.995 29311-29330/com.android.bluetooth V/Avrcp: New genId = 540, clearing = 1
08-16 16:04:08.995 491-2794/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel ‘42215a10 com.yinghui.mj/org.cocos2dx.javascript.AppActivity (server)’
08-16 16:04:08.995 491-2794/system_process I/WindowState: WIN DEATH: Window{42215a10 u0 com.yinghui.mj/org.cocos2dx.javascript.AppActivity}
08-16 16:04:08.995 491-2794/system_process W/WindowManager: Force-removing child win Window{4219c250 u0 SurfaceView} from container Window{42215a10 u0 com.yinghui.mj/org.cocos2dx.javascript.AppActivity}
08-16 16:04:09.075 491-808/system_process W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@41f6bb60 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8026)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8017)
at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1047)
at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
at dalvik.system.NativeStart.run(Native Method)
08-16 16:04:09.075 491-808/system_process I/WindowState: WIN DEATH: null

08-16 17:00:00.415 28846-28846/com.yinghui.mj D/Cocos2dxDownloader: onFailure(code:404 headers:[Lcz.msebera.android.httpclient.Header;@41ab17b0 throwable:cz.msebera.android.httpclient.client.HttpResponseException: Not Found id:5
08-16 17:00:00.705 28846-28846/com.yinghui.mj V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {419d4528}
08-16 17:00:00.705 28846-28846/com.yinghui.mj I/LibraryLoader: Expected native library version number “”,actual native library version number “”
08-16 17:00:00.705 28846-28846/com.yinghui.mj I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0
08-16 17:00:00.715 28846-28846/com.yinghui.mj I/BrowserStartupController: Initializing chromium process, renderers=0
08-16 17:00:00.715 28846-28846/com.yinghui.mj E/AudioManagerAndroid: BLUETOOTH permission is missing!
08-16 17:00:00.735 28846-28846/com.yinghui.mj D/dalvikvm: GC_FOR_ALLOC freed 188K, 7% free 3582K/3844K, paused 13ms, total 13ms
08-16 17:00:00.795 28846-28993/com.yinghui.mj W/chromium: [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> onError!
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: get remoteManifest error -3 cz.msebera.android.httpclient.client.HttpResponseException: Not Found
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> event on assetsMgr.goon
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> onError!
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: get remoteManifestMD5 error -3 cz.msebera.android.httpclient.client.HttpResponseException: Not Found
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> event on assetsMgr.goon
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> onError!
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: get remoteManifest error -3 cz.msebera.android.httpclient.client.HttpResponseException: Not Found
08-16 17:00:02.635 28846-28863/com.yinghui.mj D/cocos2d-x debug info: —> event on assetsMgr.goon
08-16 17:00:30.525 28846-28863/com.yinghui.mj A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 28863 (Thread-3839)

先确定是哪个场景闪退的,然后集中看这个场景挂载的脚本,根据错误日志,一步步检查啊

在查了

从哪个版本更新过来的,是不是太久没更新版本了

看起来是热更新失败了,找不到远程服务器,然后崩溃了,但是没有引擎层的崩溃栈,引擎层的输出目前看都是正常的。最后是 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)

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