android.os.Parcel.createExceptionOrNull 致命异常:java.lang.IllegalArgumentException
Posted
技术标签:
【中文标题】android.os.Parcel.createExceptionOrNull 致命异常:java.lang.IllegalArgumentException【英文标题】:android.os.Parcel.createExceptionOrNull Fatal Exception: java.lang.IllegalArgumentException 【发布时间】:2021-08-31 02:49:52 【问题描述】:我在 android 11 Samsung
设备上遇到此异常。
这是堆栈跟踪:
at android.os.Parcel.createExceptionOrNull(Parcel.java:2389)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.app.IActivityManager$Stub$Proxy.getHistoricalProcessExitReasons(IActivityManager.java:11260)
at android.app.ActivityManager.getHistoricalProcessExitReasons(ActivityManager.java:4231)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:171)
at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable(ForceStopRunnable.java:210)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:108)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
谁能帮我解决这个问题。
【问题讨论】:
【参考方案1】:在装有 Android 11 的三星 Galaxy S10e 上也有类似的:
Fatal Exception: java.lang.IllegalArgumentException: Comparison method violates its general contract!
at android.os.Parcel.createExceptionOrNull(Parcel.java:2389)
at android.os.Parcel.createException(Parcel.java:2369)
at android.os.Parcel.readException(Parcel.java:2352)
at android.os.Parcel.readException(Parcel.java:2294)
at android.app.IActivityManager$Stub$Proxy.getHistoricalProcessExitReasons(IActivityManager.java:11243)
at android.app.ActivityManager.getHistoricalProcessExitReasons(ActivityManager.java:4231)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:171)
at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable(ForceStopRunnable.java:210)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:108)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by android.os.RemoteException: Remote stack trace:
at java.util.TimSort.mergeLo(TimSort.java:777)
at java.util.TimSort.mergeAt(TimSort.java:514)
at java.util.TimSort.mergeCollapse(TimSort.java:441)
at java.util.TimSort.sort(TimSort.java:245)
at java.util.Arrays.sort(Arrays.java:1492)
暂时没有更多信息。
【讨论】:
这里也一样...目前只发生在搭载 Android 11 的三星中 我在 oppo 设备以及 Android 11 中都得到了这个 遇到同样的问题。有这方面的更新吗? 也开始在只有 Android 11 的三星设备上发生......以上是关于android.os.Parcel.createExceptionOrNull 致命异常:java.lang.IllegalArgumentException的主要内容,如果未能解决你的问题,请参考以下文章