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

Crash in BleDisClient.readDisInfoWithKeysAsStrings #503

Closed
2 of 10 tasks
korzonkiee opened this issue Nov 19, 2024 · 5 comments
Closed
2 of 10 tasks

Crash in BleDisClient.readDisInfoWithKeysAsStrings #503

korzonkiee opened this issue Nov 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@korzonkiee
Copy link
Contributor

Platform on which you observed the bug:

  • Android
  • iOS
  • Other
  • Platform is not relevant for this bug

Device on which you observed the bug:

  • Polar OH1
  • Polar Verity Sense
  • Polar H10
  • Polar H9
  • Other
  • Device is not relevant for this bug

Describe the bug
App randomly crashes for some of our users. Looking at the crash report, it seems that it is a null-reference exception, where self is null. Most likely can be fixed by using weak self and doing a null-check before accessing self.

How to Reproduce
No clear reproduction steps, it happens randomly.

Expected behavior
App should not crash.

Screenshots and logs
CleanShot 2024-11-19 at 14 53 52@2x

@korzonkiee korzonkiee added the bug Something isn't working label Nov 19, 2024
@pth-pe-gh
Copy link
Contributor

FLOW-60720

korzonkiee added a commit to korzonkiee/polar-ble-sdk that referenced this issue Nov 27, 2024
@korzonkiee
Copy link
Contributor Author

We fixed it in our internal fork.

korzonkiee@771c622

@pth-pe-gh
Copy link
Contributor

Looking at the screen shot in the report, this may have been caused by non-thread safe access to dictionary; as the problem seems to happen on getting dictionary key values count. The proposed fix may not be enough to prevent such crash; if it is, it may cause some other functionality to fail.

Need to check how the dictionary is accessed to see if/when access to dictionary happens from multiple threads (e.g. from different queues)

@pth-pe-gh
Copy link
Contributor

Will make update to SDK to fix related multithreading issue with dictionary.

@pth-pe-gh
Copy link
Contributor

Change to synchronise dictionary access will be in next SDK release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants