android.process.acore died

676 views
Skip to first unread message

Atul Raut

unread,
Jul 23, 2010, 10:40:38 AM7/23/10
to android-...@googlegroups.com
Hi Community,

What android.process.acore does in android.
As I know it start : Start proc android.process.acore for broadcast com.android.providers.contacts/.ContactsUpgradeReceiver

If it died becuase of some reason how to trace who is real culprit.

Thanks in advance

Regards
Atul

Christopher Tate

unread,
Jul 23, 2010, 10:50:00 AM7/23/10
to android-...@googlegroups.com
On Fri, Jul 23, 2010 at 7:40 AM, Atul Raut <atul....@gmail.com> wrote:
> Hi Community,
>
> What android.process.acore does in android.
> As I know it start : Start proc android.process.acore for broadcast
> com.android.providers.contacts/.ContactsUpgradeReceiver
>
> If it died becuase of some reason how to trace who is real culprit.

The acore process hosts a number of different components on demand.
It also does not necessarily run all the time.

The first thing you do in diagnosing why a process has terminated
should always be to review the logs, both the main text log and the
event log. There will always be at least some information there about
what happened.

The most common reason for the acore process to go away is that it is
killed by the kernel in order to free up RAM for a foreground
application. This is just like any other application that runs in the
background, and is not an error situation.

--
christopher tate
android framework engineer

Atul Raut

unread,
Jul 23, 2010, 11:03:21 AM7/23/10
to android-...@googlegroups.com, ct...@google.com
Hi Christopher ,

Thanks for reply.

The issue found when am trying to SIM contacts.
And then exporting those to SD card.
And then am trying to edit any contact apps is crashing.

First Found :
I/WindowManager(  110): WIN DEATH: Window{451a9868 com.android.contacts/com.android.contacts.ui.EditContactActivity paused=false}^M
I/ActivityManager(  110): Start proc android.process.acore for activity com.android.contacts/.DialtactsContactsEntryActivity: pid=546 uid=10016 gids={3003, 1015}^M
I/UsageStats(  110): Unexpected resume of com.android.contacts while already resumed in com.android.contacts^M      

Logs  :

I/ActivityManager(  110): Displayed activity com.android.contacts/.ViewContactActivity: 279 ms (total 279 ms)
I/ActivityManager(  110): Starting activity: Intent { act=android.intent.action.EDIT dat=content://com.android.contacts/raw_contacts/4 cmp=com.android.contacts/.ui.EditContactActivity }
W/dalvikvm(  527): threadid=1: thread exiting with uncaught exception (group=0x4001d7d8)
E/AndroidRuntime(  527): FATAL EXCEPTION: main
E/AndroidRuntime(  527): java.lang.NullPointerException
E/AndroidRuntime(  527):     at com.android.contacts.ui.EditContactActivity.compare(EditContactActivity.java:1373)
E/AndroidRuntime(  527):     at com.android.contacts.ui.EditContactActivity.compare(EditContactActivity.java:96)
E/AndroidRuntime(  527):     at java.util.TimSort.countRunAndMakeAscending(TimSort.java:320)
E/AndroidRuntime(  527):     at java.util.TimSort.sort(TimSort.java:185)
E/AndroidRuntime(  527):     at java.util.TimSort.sort(TimSort.java:169)
E/AndroidRuntime(  527):     at java.util.Arrays.sort(Arrays.java:1907)
E/AndroidRuntime(  527):     at java.util.Collections.sort(Collections.java:1972)
E/AndroidRuntime(  527):     at com.android.contacts.ui.EditContactActivity.bindEditors(EditContactActivity.java:402)
E/AndroidRuntime(  527):     at com.android.contacts.ui.EditContactActivity$QueryEntitiesTask.onPostExecute(EditContactActivity.java:257)
E/AndroidRuntime(  527):     at com.android.contacts.ui.EditContactActivity$QueryEntitiesTask.onPostExecute(EditContactActivity.java:194)
E/AndroidRuntime(  527):     at com.android.contacts.util.WeakAsyncTask.onPostExecute(WeakAsyncTask.java:56)
E/AndroidRuntime(  527):     at android.os.AsyncTask.finish(AsyncTask.java:417)
E/AndroidRuntime(  527):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
E/AndroidRuntime(  527):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
E/AndroidRuntime(  527):     at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  527):     at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  527):     at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(  527):     at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  527):     at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  527):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
E/AndroidRuntime(  527):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
E/AndroidRuntime(  527):     at dalvik.system.NativeStart.main(Native Method)
I/ActivityManager(  110): Displayed activity com.android.contacts/.ui.EditContactActivity: 360 ms (total 360 ms)
W/ActivityManager(  110):   Force finishing activity com.android.contacts/.ui.EditContactActivity
W/ActivityManager(  110): Activity pause timeout for HistoryRecord{452713b8 com.android.contacts/.ui.EditContactActivity}
W/ActivityManager(  110): Activity idle timeout for HistoryRecord{452535d0 com.android.contacts/.ViewContactActivity}
W/ActivityManager(  110): Activity destroy timeout for HistoryRecord{452713b8 com.android.contacts/.ui.EditContactActivity}
I/ActivityManager(  110): Process android.process.acore (pid 527) has died.
I/WindowManager(  110): WIN DEATH: Window{451c73d0 com.android.contacts/com.android.contacts.DialtactsContactsEntryActivity paused=false}
I/WindowManager(  110): WIN DEATH: Window{4518b280 com.android.contacts/com.android.contacts.ViewContactActivity paused=false}
------------------------------------------------------------------------------------------------------------------------------

Any pointer how to avoid this. Simply null checked in
packages/apps/Contacts/src/com/android/contacts/ui/EditContactActivity.java
public int compare(EntityDelta one, EntityDelta two)  in this function

int value;
        if (!skipAccountTypeCheck) {
            value = oneSource.accountType.compareTo(twoSource.accountType);
            if (value != 0) {
                return value;
            }

Null check for this oneSource.accountType will resolve the issue but sounds hack to this not real soltion.
        }


Thanks and Regards
Atul


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Reply all
Reply to author
Forward
0 new messages