JakeWharton / JakeWharton/ProcessPhoenix

Crash while using on Android 11

Open
#48 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.1k
Forks
138
Avg merge
1h 23m
Merged PRs (30d)
11

Description

This happens on the latest ProcessPhoenix 2.1.2, as it is on a launcher, it starts up when the device boots up. Once dismissing the force close dialog, the app works fine and ProcessPhoenix continues to work.

```
02-20 01:42:58.499 10525 10525 E AndroidRuntime: FATAL EXCEPTION: main
02-20 01:42:58.499 10525 10525 E AndroidRuntime: Process: projekt.auto:phoenix, PID: 10525
02-20 01:42:58.499 10525 10525 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{projekt.auto/com.jakewharton.processphoenix.ProcessPhoenix}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.Task.isActivityTypeStandardOrUndefined()' on a null object reference
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3450)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3602)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7697)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.server.wm.Task.isActivityTypeStandardOrUndefined()' on a null object reference
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2379)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2357)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2340)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2282)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.IActivityTaskManager$Stub$Proxy.startActivities(IActivityTaskManager.java:3730)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Instrumentation.execStartActivitiesAsUser(Instrumentation.java:1798)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Instrumentation.execStartActivities(Instrumentation.java:1747)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Activity.startActivities(Activity.java:5708)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Activity.startActivities(Activity.java:5681)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.jakewharton.processphoenix.ProcessPhoenix.onCreate(ProcessPhoenix.java:4)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8000)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7984)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3423)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: ... 11 more
02-20 01:42:58.499 10525 10525 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.server.wm.ActivityStackSupervisor.handleNonResizableTaskIfNeeded(ActivityStackSupervisor.java:2245)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.server.wm.ActivityStackSupervisor.handleNonResizableTaskIfNeeded(ActivityStackSupervisor.java:2232)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.server.wm.ActivityStarter.startActivityInner(ActivityStarter.java:1750)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.server.wm.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1526)
02-20 01:42:58.499 10525 10525 E AndroidRuntime: at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1190)
02-20 01:42:58.499 10525 10525 E AndroidRuntime:
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ProcessPhoenix.java at the onCreate location shown in the stack trace and reproduce the launcher-startup path on Android 11. Trace the startActivities call and verify that boot-time startup no longer produces the reported NullPointerException or force-close dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.