Closed davidgyoung closed 2 years ago
Closed in favor of #1091.
The underlying problem suspected to be with the ThreadPoolExecutor ended up being with applying BeaconParser config changes, so a completely different solution was developed in the other PR.
Includes several changes to help troubleshoot stalls in the
ThreadPoolExecutor
used to parse beacons.When using this, watch for log lines like these:
This change also includes an optional mechanism to disable using
AsyncTask
structures to schedule beacon parsing on theThreadPoolExecutor
and instead use a plainRunnable
. This may help if some complexities in theAsyncTask
structure are causing a problem. To enable this optional change, callBeaconManager.useAsyncTask = false
. I made this optional because I do not want to muddy the waters by making this change immediately.The first and last lines are normal and expected. The others indicate problems and will trigger recovery attempts.
This change is available in library version 2.19.5-beta2 on MavenCentral