question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CycledLeScanner spawning Threads

See original GitHub issue

Hi,

Just checked 2.15.4 and it works great, just a slight issue. It spawns Threads for repeated scans using CycledLeScanner. I think that the issue is located in onDestroy():

if (mScanHelper.getCycledScanner() == null) {
    mScanHelper.getCycledScanner().stop();
    mScanHelper.getCycledScanner().destroy();
}

Seems to me that the condition should be != null.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Del-Scommented, Dec 22, 2018

@davidgyoung Seems to be fixed. Thread is killed after every scan. Thank you very much. 😃

1reaction
davidgyoungcommented, Dec 20, 2018

@Del-S, please test with this release and see if it affects the issues you see:

https://github.com/AltBeacon/android-beacon-library/releases/tag/2.15.5-alpha1

Read more comments on GitHub >

github_iconTop Results From Across the Web

org.altbeacon.beacon.service.scanner.CycledLeScanner ... - Tabnine
Running tasks concurrently on multiple threads · setScale (BigDecimal) · getOriginalFilename (MultipartFile). Return the original filename in the client's ...
Read more >
Altbeacon library foreground mode not working on Android
Hello guys i am using the Altbeacon library to discover beacons to my android application. The service is running in foreground mode to ......
Read more >
Spawning a Thread, the D way
Spawning a thread in non-functional languages is considered a very low-level primitive. Often spawn or CreateThread takes a function pointer ...
Read more >
Enabling Technologies for Smart Mobile Services - Hindawi.com
be identified from outdoor to indoor, hence creating holistic ... The data-parallel algorithm is executed by multiple threads.
Read more >
What does spawning a thread look like in terms of computer ...
If I spawn 20 threads to do these tasks, will a maximum of 8 tasks be executing in parallel at any one time?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found