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

"Limit exceed; cannot create more channels" #6

Open
Cvetacar opened this issue Jun 7, 2023 · 0 comments
Open

"Limit exceed; cannot create more channels" #6

Cvetacar opened this issue Jun 7, 2023 · 0 comments

Comments

@Cvetacar
Copy link

Cvetacar commented Jun 7, 2023

Hello, we have recently been getting this crash message:

java.lang.IllegalStateException: Limit exceed; cannot create more channels
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2394)
	at android.os.Parcel.createException(Parcel.java:2370)
	at android.os.Parcel.readException(Parcel.java:2353)
	at android.os.Parcel.readException(Parcel.java:2295)
	at android.app.INotificationManager$Stub$Proxy.createNotificationChannels(INotificationManager.java:4340)
	at android.app.NotificationManager.createNotificationChannels(NotificationManager.java:863)
	at android.app.NotificationManager.createNotificationChannel(NotificationManager.java:851)
	at com.uriio.beacons.BleService.updateForegroundNotification(BleService.java:424)
	at com.uriio.beacons.BleService.onAdvertiserStarted(BleService.java:378)
	at com.uriio.beacons.ble.AdvertisersManager.onAdvertiserStarted(AdvertisersManager.java:113)
	at com.uriio.beacons.ble.Advertiser.onStartSuccess(Advertiser.java:102)
	at android.bluetooth.le.BluetoothLeAdvertiser$5.run(BluetoothLeAdvertiser.java:812)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:246)
	at android.app.ActivityThread.main(ActivityThread.java:8645)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.notification.PreferencesHelper.createNotificationChannel(PreferencesHelper.java:995)
	at com.android.server.notification.NotificationManagerService$12.createNotificationChannelsImpl(NotificationManagerService.java:3978)
	at com.android.server.notification.NotificationManagerService$12.createNotificationChannels(NotificationManagerService.java:3999)
	at android.app.INotificationManager$Stub.onTransact(INotificationManager.java:1710)
	at android.os.Binder.execTransactInternal(Binder.java:1190

It seems the library is somehow looping and creating over 50000 channels, which cause the app to crash. Any ideas what causes this and if there is a way to fix it?

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

No branches or pull requests

1 participant