Status Update
Comments
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #2
Created a sample project from studio(Blank activity) and ran it on different API levels (26, 25) including sdk_x86-eng 4.1.2 MASTER 3462064 test-keys on our nexus/pixel devices, but couldn't come across the issue, So could you please let me know if I am missing something to reproduce the issue. Provide all necessary info to reproduce the issue, including the sample app which recreates the issue.
1. Let me know if it's API level/device specific issue.
2.Also provide Android bug report:
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
lb...@gmail.com <lb...@gmail.com> #3
The only thing I can provide you is the bug report link itself, in Crashlytics, privately via email (because it's an app of the office).
pu...@gmail.com <pu...@gmail.com> #5
For some reason, when the Activity is resumed, is has a task id (as returned by Activity.getTaskId()) of -1 which makes isTopOfTask() throw IllegalArgumentException.
lb...@gmail.com <lb...@gmail.com> #6
pu...@gmail.com <pu...@gmail.com> #7
lb...@gmail.com <lb...@gmail.com> #8
pu...@gmail.com <pu...@gmail.com> #9
So it is a rather rare problem and does not happen repeatedly for a given user.
Here's the platform code for onResume():
protected void onResume() {
if (DEBUG_LIFECYCLE) Slog.v(TAG, "onResume " + this);
getApplication().dispatchActivityResumed(this);
mActivityTransitionState.onResume(this, isTopOfTask());
mCalled = true;
}
isTopOfTask() is only called as part of transition state handling, so this issue could maybe worked-around like this:
@Override
public void onResume() {
try {
super.onResume();
} catch(IllegalStateException e) {
try {
Field f = Activity.class.getDeclaredField("mCalled");
f.setAccessible(true);
f.set(this, true);
} catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException e1) {
}
}
....
}
Still this may do more harm than good if this issue is a consequence of something really broken.
pu...@gmail.com <pu...@gmail.com> #10
[Deleted User] <[Deleted User]> #11
sz...@gmail.com <sz...@gmail.com> #12
pu...@gmail.com <pu...@gmail.com> #13
ba...@gmail.com <ba...@gmail.com> #14
wn...@google.com <wn...@google.com> #15
This is likely not the only bug filed if it is indeed a framework bug as
@Amruthavani - Would you mind triaging this issue?
Thank you.
lb...@gmail.com <lb...@gmail.com> #16
I've reported about various types of them.
pu...@gmail.com <pu...@gmail.com> #17
Since it involve a specific and rare succession of events, it would explain why it is rare and almost never happen twice to the same user.
ja...@gmail.com <ja...@gmail.com> #18
ja...@gmail.com <ja...@gmail.com> #19
ja...@gmail.com <ja...@gmail.com> #20
pu...@gmail.com <pu...@gmail.com> #21
[Deleted User] <[Deleted User]> #22
we started seeing tones of this since a week ago - didn't change support libraries or any other 3rd party libraries
happens on devices from Nougat and above
th...@gmail.com <th...@gmail.com> #23
Fatal Exception: java.lang.IllegalArgumentException
android.os.Parcel.readException (Parcel.java:1963)
android.os.Parcel.readException (Parcel.java:1905)
android.app.IActivityManager$Stub$Proxy.isTopOfTask (IActivityManager.java:9044)
android.app.Activity.isTopOfTask (Activity.java:6405)
android.app.Activity.cancelInputsAndStartExitTransition (Activity.java:4606)
android.app.Activity.startActivityForResult (Activity.java:4583)
android.support.v4.app.FragmentActivity.startActivityForResult (SourceFile:767)
android.support.v4.app.ActivityCompat.startActivityForResult (SourceFile:234)
Happens for ~1% of users in rare cases, on all devices and Android versions >= 5.0.
am...@google.com <am...@google.com>
mi...@gmail.com <mi...@gmail.com> #24
Is there any update on this issue ? We are seeing this issue from long back from fabric tool i can see below logs.
More device details is .........
# Platform: android
# Application: Lifestyle
# Version: 6.9 (244)
# Bundle Identifier: com.applications.lifestyle
# # OS Version: 7.0
# Device: Moto G(4) Plus
Fatal Exception: java.lang.IllegalArgumentException: reportSizeConfigurations: ActivityRecord not found for: Token{4b0b967 ActivityRecord{dd15926 u0 com.applications.lifestyle/com.landmarkgroup.landmarkshops.module.main.activity.MainActivityV2 t291 f}}
at android.os.Parcel.readException(Parcel.java:1687)
at android.os.Parcel.readException(Parcel.java:1636)
at android.app.ActivityManagerProxy.reportSizeConfigurations(ActivityManagerNative.java:6982)
at android.app.ActivityThread.reportSizeConfigurations(ActivityThread.java:2789)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2728)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
#0. Crashed: main
at android.os.Parcel.readException(Parcel.java:1687)
at android.os.Parcel.readException(Parcel.java:1636)
at android.app.ActivityManagerProxy.reportSizeConfigurations(ActivityManagerNative.java:6982)
at android.app.ActivityThread.reportSizeConfigurations(ActivityThread.java:2789)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2728)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
can you please help us root cause the issue ? , Thanks !!
ku...@google.com <ku...@google.com> #25
Android build
Which Android build are you using? (e.g. OPP1.170223.012)
Device used
Which device did you use to reproduce this issue?
Steps to reproduce
What steps are needed to reproduce this issue?
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
What is the expected output?
Current output
What is the current output?
Android bug report capturing
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory.
Alternate method
After reproducing the issue, navigate to “developer settings”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
lb...@gmail.com <lb...@gmail.com> #26
Other developers here might have a better understanding of what's going on, how to reproduce, and whether it still exists.
mi...@gmail.com <mi...@gmail.com> #27
@Google team , can you let us know on what scenario this issue will come ? Lot of users facing this issue.
th...@gmail.com <th...@gmail.com> #28
Could the fix for this bug be similar : skip calling isTopOfTask() if the activity is known to be destroyed?
ku...@google.com <ku...@google.com> #29
ms...@gmail.com <ms...@gmail.com> #30
1) Related (but not identical) issue #27 is resolved
2) Does this mean that this issue is resolved?
It's not clear if #29 answers both points.
Can we have confirmation that this issue (not just the related one) is resolved?
Thanks.
lw...@gmail.com <lw...@gmail.com> #31
[Deleted User] <[Deleted User]> #32
This issue is happening to quite a few of our users, and we haven't been able to reproduce it. It started happening after the target and compile API levels were raised from 25 to 26 (Oreo). There was no other change that could be relating to what is suggested in
Furthermore, for our users this crash happens predominantly on high-end devices. If the main thread is being blocked by some longer-running operation you would expect it to be worse on slower low-end devices, but that doesn't seem to be the case.
Some more clarifications from the team Google would be helpful here. Thank you.
wa...@gmail.com <wa...@gmail.com> #33
go...@gmail.com <go...@gmail.com> #34
gb...@gmail.com <gb...@gmail.com> #35
ku...@gmail.com <ku...@gmail.com> #36
[Deleted User] <[Deleted User]> #37
hu...@gmail.com <hu...@gmail.com> #38
Is there any update on this issue? Our app is also facing this issue.
Until the problem got solved, is there any workaround solution that can be applied?
ms...@gmail.com <ms...@gmail.com> #39
Probably have to create a new issue (and reference this one) if you're still seeing it.
qy...@gmail.com <qy...@gmail.com> #40
[Deleted User] <[Deleted User]> #41
he...@gmail.com <he...@gmail.com> #42
[Deleted User] <[Deleted User]> #43
Got the same behavior. Android from 7.0 to 9.0
da...@gmail.com <da...@gmail.com> #44
ha...@gmail.com <ha...@gmail.com> #45
mu...@gmail.com <mu...@gmail.com> #46
lb...@gmail.com <lb...@gmail.com> #47
Found on Android 8.
ca...@gmail.com <ca...@gmail.com> #48
ca...@gmail.com <ca...@gmail.com> #49
Android from 7.0 to 9.0
Fatal Exception: java.lang.RuntimeException
Unable to resume activity {...}: java.lang.IllegalArgumentException
android.app.ActivityThread.performResumeActivity (ActivityThread.java:3832)
android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3872)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1700)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6688)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)
ga...@gmail.com <ga...@gmail.com> #50
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {com.viewlift.hoichoi/com.viewlift.mobile.AppCMSLaunchActivity}: java.lang.IllegalArgumentException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4053)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4086)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2025)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7070)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:928)
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.createException(Parcel.java:1954)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.app.IActivityManager$Stub$Proxy.isTopOfTask(IActivityManager.java:7854)
at android.app.Activity.isTopOfTask(Activity.java:6524)
at android.app.Activity.onResume(Activity.java:1364)
at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java:455)
at com.viewlift.mobile.AppCMSLaunchActivity.onResume(AppCMSLaunchActivity.java:197)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
at android.app.Activity.performResume(Activity.java:7414)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4045)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4086)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2025)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7070)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:928)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.isTopOfTask(ActivityManagerService.java:17204)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2118)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3790)
at android.os.Binder.execTransact(Binder.java:750)
[Deleted User] <[Deleted User]> #51
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.readException(Parcel.java:1688)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerProxy.java:5645)
at android.app.Activity.isTopOfTask(Activity.java:5980)
at android.app.Activity.onResume(Activity.java:1254)
at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java:434)
at com.musicplayer.playermusic.core.ParentBaseActivity.onResume(ParentBaseActivity.java:737)
at com.musicplayer.playermusic.core.BaseActivity.onResume(BaseActivity.java:163)
at com.musicplayer.playermusic.activities.MainActivity.onResume(MainActivity.java:374)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
at android.app.Activity.performResume(Activity.java:6785)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3506)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3575)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1594)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6293)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)
lz...@gmail.com <lz...@gmail.com> #52
ga...@gmail.com <ga...@gmail.com> #53
Still facing this issue...
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {...Activity}: java.lang.IllegalArgumentException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4122) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4165) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2054) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:233) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)
Caused by java.lang.IllegalArgumentException at android.os.Parcel.createException(Parcel.java:1970) at android.os.Parcel.readException(Parcel.java:1934) at android.os.Parcel.readException(Parcel.java:1884) at android.app.IActivityManager$Stub$Proxy.isTopOfTask(IActivityManager.java:7851) at android.app.Activity.isTopOfTask(Activity.java:6628) at android.app.Activity.onResume(Activity.java:1413) at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java:434) at ....Activity.onResume(...Activity.kt:1152) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412) at android.app.Activity.performResume(Activity.java:7550) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4114) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4165) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:150) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:73) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2054) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:233) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)
ab...@verve.com <ab...@verve.com> #54
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4014)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4046)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1948)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7050)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by java.lang.IllegalArgumentException:
at android.os.Parcel.createException(Parcel.java:1970)
at android.os.Parcel.readException(Parcel.java:1934)
at android.os.Parcel.readException(Parcel.java:1884)
at android.app.IActivityManager$Stub$Proxy.isTopOfTask(IActivityManager.java:7846)
at android.app.Activity.isTopOfTask(Activity.java:6544)
at android.app.Activity.onResume(Activity.java:1404)
at net.pubnative.lite.sdk.interstitial.activity.VastInterstitialActivity.onResume(VastInterstitialActivity.java:122)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
at android.app.Activity.performResume(Activity.java:7572)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4006)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4046)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1948)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7050)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActivityManagerService.isTopOfTask(ActivityManagerService.java:18192)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2058)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4147)
at android.os.Binder.execTransact(Binder.java:739)
[Deleted User] <[Deleted User]> #55
.RuntimeException: Unable to resume activity due to. IllegalArgumentException: at android.os.Parcel.readException(Parcel.java:1687) at android.os.Parcel.readException(Parcel.java:1636) at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerProxy.java:5577)
ANYONE FOUND ANYTHING?
Description
Version used:
com.android.support:appcompat-v7:26.1.0
Theme used:
default
Devices/Android versions reproduced on:
various, all on Android 7.0, 7.1.1 :
samsung: SM-G930F, SM-G935F, SM-G920F, SM-T825, SAMSUNG-SM-G930A
HUAWEI: HUAWEI VNS-L31 , PRA-LX1
- Relevant code to trigger the issue.
Extending AppCompatActivity.
Crash was found via Crashlytics. Can send the link if needed.
The relevant log:
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {...}: java.lang.IllegalArgumentException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3841)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3882)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1689)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6780)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.readException(Parcel.java:1697)
at android.os.Parcel.readException(Parcel.java:1646)
at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerNative.java:6643)
at android.app.Activity.isTopOfTask(Activity.java:6178)
at android.app.Activity.onResume(Activity.java:1333)
at android.support.v4.app.FragmentActivity.onResume(FragmentActivity.java:446)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1277)
at android.app.Activity.performResume(Activity.java:7094)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3818)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3882)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1689)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6780)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)