Crash时间为:
05-08 15:48:49.931 3645 3645 E AndroidRuntime: Process: com.android.dialer, PID: 3645
05-08 15:48:49.931 3645 3645 E AndroidRuntime: android.database.StaleDataException: Attempted to access a cursor after it has been closed.
05-08 15:48:49.931 3645 3645 E AndroidRuntime: at android.database.BulkCursorToCursorAdaptor.throwIfCursorIsClosed(BulkCursorToCursorAdaptor.java:63)
05-08 15:48:49.931 3645 3645 E AndroidRuntime: at android.database.BulkCursorToCursorAdaptor.getCount(BulkCursorToCursorAdaptor.java:69)
6586为acore进程:
./events.txt:05-08 15:48:48.522 1324 12273 I am_proc_start: [0,6586,10001,android.process.acore,content provider,com.android.providers.contacts/.CallLogProvider]
./system.txt:05-08 15:48:48.522 1324 12273 I ActivityManager: Start proc 6586:android.process.acore/u0a1 for content provider com.android.providers.contacts/.CallLogProvider
./events.txt:05-08 15:48:48.575 1324 13665 I am_proc_bound: [0,6586,android.process.acore]
./main.txt:05-08 15:48:48.664 6586 6586 I zygote64: The ClassLoaderContext is a special shared library.
./main.txt:05-08 15:48:48.865 6586 6586 I zygote64: The ClassLoaderContext is a special shared library.
./main.txt:05-08 15:48:48.914 6586 6586 I ContactsPerf: VoicemailContentProvider.onCreate start
./main.txt:05-08 15:48:48.922 6586 6586 I ContactsPerf: VoicemailContentProvider.onCreate finish
./main.txt:05-08 15:48:48.924 6586 6602 D ContactsDatabaseHelper: WAL enabled for contacts2.db: true
./main.txt:05-08 15:48:48.935 6586 6586 I zygote64: The ClassLoaderContext is a special shared library.
./main.txt:05-08 15:48:48.956 6586 6586 I zygote64: The ClassLoaderContext is a special shared library.
./main.txt:05-08 15:48:49.055 6586 6602 D ContactsDatabaseHelper: WAL enabled for profile.db: false
./main.txt:05-08 15:48:49.915 6586 6604 D AppsProvider.ApplicationsProvider: Updating database (packageName = null)...
./main.txt:05-08 15:48:50.206 6586 6592 I zygote64: Do partial code cache collection, code=30KB, data=21KB
./main.txt:05-08 15:48:50.206 6586 6592 I zygote64: After code cache collection, code=30KB, data=21KB
./main.txt:05-08 15:48:50.206 6586 6592 I zygote64: Increasing code cache capacity to 128KB
./main.txt:05-08 15:48:50.289 6586 6592 I zygote64: Do partial code cache collection, code=54KB, data=38KB
./main.txt:05-08 15:48:50.289 6586 6592 I zygote64: After code cache collection, code=51KB, data=37KB
./main.txt:05-08 15:48:50.289 6586 6592 I zygote64: Increasing code cache capacity to 256KB
./main.txt:05-08 15:48:50.375 6586 6604 D AppsProvider.ApplicationsProvider: Finished updating database.
./main.txt:05-08 15:48:51.140 6586 6602 D HanziToPinyin: HanziToPinyin is inited
ContactsProvider初始化时间为:15:48:51.140,acore进程为6586,
查询时间为15:48:48.482
acore进程号这么大,还在查询之后说明acore进程死过一次了,
从如下Log看到 15:48:48.157 时间acore进程因为low_memory被kill掉了,
05-08 15:48:48.149 1324 18287 I am_low_memory: 17
05-08 15:48:48.157 1324 3721 I am_proc_died: [0,3755,android.process.acore,0,3]
05-08 15:48:48.164 1324 3721 I am_low_memory: 16
此时系统内存很少了,大量进程被Kill
05-08 15:48:48.024 1324 16667 I am_proc_died: [0,4951,com.baidu.map.location,100,8]
05-08 15:48:48.029 1324 16667 I am_schedule_service_restart: [0,com.baidu.map.location/.BaiduNetworkLocationService,144583]
05-08 15:48:48.029 1324 16667 I am_uid_stopped: 10003
05-08 15:48:48.035 1324 16667 I am_low_memory: 19
05-08 15:48:48.057 1324 18287 I am_proc_died: [0,4975,com.qualcomm.qcrilmsgtunnel,100,6]
05-08 15:48:48.057 1324 18287 I am_schedule_service_restart: [0,com.qualcomm.qcrilmsgtunnel/.QcrilMsgTunnelService,154554]
05-08 15:48:48.067 1324 18287 I am_low_memory: 18
05-08 15:48:48.105 1324 18287 I am_proc_died: [0,5030,com.android.smspush,100,6]
05-08 15:48:48.130 1324 18287 I am_schedule_service_restart: [0,com.android.smspush/.WapPushManager,164481]
05-08 15:48:48.131 1324 18287 I am_uid_stopped: 10081
05-08 15:48:48.149 1324 18287 I am_low_memory: 17
所以根本原因是系统low_memory acore进程被杀导致ContactsProvider访问异常,进而dialer崩溃
low_memory原因请相关人员查看下
网友评论