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

Android 6 UI freeze when scanning #454

Closed
eckoj433 opened this issue Nov 21, 2016 · 5 comments
Closed

Android 6 UI freeze when scanning #454

eckoj433 opened this issue Nov 21, 2016 · 5 comments

Comments

@eckoj433
Copy link

Im having lagg issues with Android 6.0, simmilar to issue #313
However asking for permissions runtime and allowing them, does not have any effect.

periodically about once every second, the ui just freezes for 200-300 ms, and this is what i get in the log when the lagg occurs:

11-21 12:34:01.843 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.853 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.853 15358-15358/com.cgi.beaconframework D/BluetoothLeScanner: Stop Scan 11-21 12:34:01.863 15358-15358/com.cgi.beaconframework D/BluetoothLeScanner: Start Scan 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.873 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.883 15358-15358/com.cgi.beaconframework D/BluetoothAdapter: STATE_ON 11-21 12:34:01.923 15358-15370/com.cgi.beaconframework D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=7
this is with setDebug(false).

attatching a more extensive log with setDebug(true).

log.txt

If i move to an isolated area where there are no beacons in range, the lagg stops, but as soon as there are beacons in range the lagg starts again. Could there be some other permission that im missing which is causing this?

@eckoj433
Copy link
Author

found an issu #136 which seems to be the same issu, which actually has a solution pullrequest #430 with a seperate thread being used for the scans, which was merged into master on october 20th. However i cant seem to find a binary download for this version. the 2.9.2-beta binary seems to include these changes, so ill give that a try. Any idea on when a stable release including these changes will be up?

@davidgyoung
Copy link
Member

Yes, please try 2.9.2-beta. I was hoping to get confirmation on two hard to reproduce bugs, one specific to LG and the other to Samsung Knox before a stable 2.9.2 release. If I cannot get that confirmation and you need this change sooner, I can hold off those fixes until 2.9.3. Please let me know if this works for you.

@eckoj433
Copy link
Author

2.9.2-beta solved the issue. For me it doesnt really matter if i use this beta or a release labled "stable", however this really is a huge improvement in performance for android 6+ devices, so i think it would be good if there was an official binary for it asap.

@davidgyoung
Copy link
Member

Closing issue as the referenced solution has been merged to master and is pending the next release.

@himanshu-android
Copy link

Hi, I am using the latest version 2.12.4 which has same behavior of UI freeze when binding and unbinding to the scan service. I am able to reproduce this issue on my device that is Moto G4 Plus running Nougat (7.0).

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

3 participants