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

PlatformException: ObserveBleStatusFailure due to too many receivers #886

Open
rsubramanyam2994 opened this issue Nov 15, 2024 · 0 comments

Comments

@rsubramanyam2994
Copy link

rsubramanyam2994 commented Nov 15, 2024

Describe the bug
A platform exception happens due to too many receivers because of which our app starts to have audio issues (audio stops playing) We connect to a ble device and play audio. We aren't sure how these may be connected.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to a single device using using connectTo()
  2. Read and write to a single non-protected characteristic
  3. Disconnect and reconnect with the bluetooth device a few times

Exception: PlatformException(ObserveBleStatusFailure, Too many receivers, total of 1000, registered for pid: 6144, callerPackage: tech.netrin.enhance, null, null)

Expected behavior
We do call disconnect correctly and retry only after the connection timeout, so we aren't sure why this particular issue happens

Smartphone / tablet

  • This happens on Android devices (Android 11, Android 12, Android 13)
  • This does not happen on iOS devices

Peripheral device

Additional context
We aren't able to re-produce this issue consistently. We observe that this happens when the app remains open for a few days without getting force closed. It seems like there is some kind of a leak

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