程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> service-安卓的大哥們,我遇到了win death , process xxx has died

service-安卓的大哥們,我遇到了win death , process xxx has died

編輯:編程解疑
安卓的大哥們,我遇到了win death , process xxx has died

10-06 13:32:59.317 9479-9708/? D/resmon: Memory occupied too high: com.vvvdj.player(130mb) killed
10-06 13:32:59.478 905-1158/? I/WindowState: WIN DEATH: Window{2d5ee003 u0 com.vvvdj.player/com.vvvdj.player.ui.activity.PlayingActivity}
10-06 13:32:59.484 905-1058/? W/InputDispatcher: channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
10-06 13:32:59.484 905-1058/? E/InputDispatcher: channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-06 13:32:59.495 905-2031/? I/WindowState: WIN DEATH: Window{3b441f2b u0 com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity}
10-06 13:32:59.495 905-2031/? W/InputDispatcher: Attempted to unregister already unregistered input channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)'
10-06 13:32:59.538 905-2000/? I/ActivityManager: Process com.vvvdj.player (pid 9779) has died
10-06 13:32:59.539 905-2000/? D/ActivityManager: SVC-handleAppDiedLocked: app = ProcessRecord{11dc2ae7 9779:com.vvvdj.player/u0a113}, app.pid = 9779
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{2a95ccb3 u0 com.vvvdj.player/.service.DownloadService}this is not core appcom.vvvdj.player
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{18f84085 u0 com.vvvdj.player/.service.LockScreenService}this is not core appcom.vvvdj.player
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{b98e270 u0 com.vvvdj.player/.service.PlayerService}this is not core appcom.vvvdj.player


以上是日志, 情況是這樣的,我做的是一個音樂播放的APP, 開啟PlayerService這個服務播放,現在遇到了當後台播放,然後用戶去操作了一段時間的QQ,游戲,空間之內的(比如操作個幾十秒),APP就會導致播放停止,然後應用重啟,也不是崩潰,但確實重啟了,這問題搞了兩天頭都炸了,各種百度谷歌也還是沒解決,遇到過或者有建議都可以說下

最佳回答:


樓主,你好,你使用的Service是在下載網絡上的音樂嗎?那幾十秒掛了正常,不能有網絡請求的。建議你使用IntentService
這個問題和你一樣:http://stackoverflow.com/questions/7316680/process-has-died
這個解決方案你可以看下:http://stackoverflow.com/questions/14747780/android-process-produces-logcat-has-died-message-very-often
望采納。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved