作者oasis316 (阿良)
看板AndroidDev
标题[问题] The process android.process.media has stopped ...
时间Thu Jun 23 14:26:00 2011
开发层: (应用/框架/库/核心)
框架
问题:
开机时有时会一直跳出The process android.process.media has stopped
unexceptedly视窗
关闭後会继续跳出个三到五次
输入:
无
预期输出:
不跳出此视窗
错误输出:
01-02 09:39:19.296: INFO/ActivityManager(487): Start proc
android.process.media for broadcast com.android.providers.downloads
/.DownloadReceiver: pid=668 uid=10000 gids={1015, 2001, 3003}
...
01-02 09:39:21.515: ERROR/AndroidRuntime(668): FATAL EXCEPTION:
Download Service
01-02 09:39:21.515: ERROR/AndroidRuntime(668): java.lang.NoSuchMethodError:
getDownloadCacheDirectory
01-02 09:39:21.515: ERROR/AndroidRuntime(668): at com.android.providers.
downloads.DownloadService.removeSpuriousFiles(DownloadService.java:425)
...
01-02 09:42:52.679: INFO/Process(668): Sending signal. PID: 668 SIG: 9
01-02 09:42:52.695: INFO/ActivityManager(487): Process android.process.media
(pid 668) has died.
01-02 09:42:52.695: WARN/ActivityManager(487): Scheduling restart of crashed
service com.android.providers.downloads/.DownloadService
下面出现重复的错误
补充说明:
1. 此问题不一定每次发生
2. 查了一下DownloadService.java的UpdateThread.run
发现呼叫removeSpuriousFiles中的Environment.getDownloadCacheDirectory()
.listFiles()发生java.lang.NoSuchMethodError
3. Environment.java的getDownloadCacheDirectory是抓cache的folder
为啥会发生此种错误,是否有权限问题
谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 113.196.128.238