Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityException: cannot read channels for #2714

Open
larack163 opened this issue Sep 24, 2024 · 0 comments
Open

SecurityException: cannot read channels for #2714

larack163 opened this issue Sep 24, 2024 · 0 comments

Comments

@larack163
Copy link

Description

[Description of the issue]

Steps to Reproduce

[Provide a sample project, a .hprof file or a failing test]

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expect to happen]

FATAL EXCEPTION: LeakCanary-Heap-Dump
Process: com.jiagu, PID: 27137
java.lang.SecurityException: Pkg com.jiagu cannot read channels for jiagu in 0
at android.os.Parcel.createExceptionOrNull(Parcel.java:2374)
at android.os.Parcel.createException(Parcel.java:2358)
at android.os.Parcel.readException(Parcel.java:2341)
at android.os.Parcel.readException(Parcel.java:2283)
at android.app.INotificationManager$Stub$Proxy.getNotificationChannel(INotificationManager.java:3971)
at android.app.NotificationManager.getNotificationChannel(NotificationManager.java:862)
at leakcanary.internal.Notifications.buildNotification(Notifications.kt:122)
at leakcanary.internal.HeapDumpTrigger.showRetainedCountNotification(HeapDumpTrigger.kt:402)
at leakcanary.internal.HeapDumpTrigger.checkRetainedCount(HeapDumpTrigger.kt:332)
at leakcanary.internal.HeapDumpTrigger.checkRetainedCount$default(HeapDumpTrigger.kt:278)
at leakcanary.internal.HeapDumpTrigger.checkRetainedObjects(HeapDumpTrigger.kt:141)
at leakcanary.internal.HeapDumpTrigger.access$checkRetainedObjects(HeapDumpTrigger.kt:34)
at leakcanary.internal.HeapDumpTrigger$scheduleRetainedObjectCheck$1.run(HeapDumpTrigger.kt:357)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:268)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.notification.NotificationManagerService$11.getConversationNotificationChannel(NotificationManagerService.java:3818)
at com.android.server.notification.NotificationManagerService$11.getNotificationChannel(NotificationManagerService.java:3798)
at android.app.INotificationManager$Stub.onTransact(INotificationManager.java:1662)
at android.os.Binder.execTransactInternal(Binder.java:1169)
at android.os.Binder.execTransact(Binder.java:1126)

Version Information

  • LeakCanary version:com.squareup.leakcanary:leakcanary-android:2.14
  • Android OS version:11
  • Gradle version:8.1.4

Additional Information

test_pic

Any additional information, configuration or data that might be necessary to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant