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

Solve Periodic Crash #2

Open
s7726 opened this issue May 27, 2020 · 1 comment
Open

Solve Periodic Crash #2

s7726 opened this issue May 27, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@s7726
Copy link
Owner

s7726 commented May 27, 2020

Have not fully investigated but the whole thing crashes somewhere down in the bowels of Windows (VS is not being helpful from a debugger perspective).

Doesn't happen very often, works for hours on end with no issue, then BAM.

Might... Might, be linked to the powermate sending some kind of BTLE update (in one instance this was the last thing 'logged' (you can't call a ton of cout's logging with a strait face).

@s7726 s7726 added the bug Something isn't working label May 27, 2020
@Snailic
Copy link

Snailic commented Oct 17, 2020

I experience this issue as well. Whenever it happened, I had to turn Bluetooth off/on before it would work again, even then sometimes it would not work.

I'm not familiar with C++ so I ported it over to C# since the implementation is basically 1:1. But, I have not encountered this issue with C#. I made a repo for the C# port if you want to take a look.

I was using the BluetoothLEDeviceWatcher but I noticed that it was pretty slow to start and it didn't seem to stay connected to unpaired devices so I switched to BluetoothLEAdvertisementWatcher and it seems to work a little bit faster. Though only the paired PowerMate works flawlessly, my other 2 unpaired PowerMate's are sometimes a little slow.

So perhaps that could be related?

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