-
Notifications
You must be signed in to change notification settings - Fork 138
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
Windows API issue with Nordic BLE #130
Comments
Experiencing the same on Windows 10 22H2 (19045.2486) with similar usage. It seems to be happening after a certain amount of data is transmitted. Also sometimes I don't get a crash, it just stops receiving data. |
Similar problem here. My program kept crashing after starting sending data |
Same is for me. My app connects to 2 Switchbots, subscribes to notifications and writes to each device at least once per 2 minutes (to keep connection alive). Crashes after 2-7 minutes without panicing, like ExitProcess is called inside WinRT, it only prints "Process xxx has exited with status 0xc0000005". But sometimes the app doesn't crash, it stops receiving notifications instead. And if I don't enable notifications at all it just works fine (a poor way out though). |
I also have problems with my app crashing on windows after receiving data for a few seconds, i don't get a stack trace however, just exit status 0xc0000005 (Access Violation) |
Have you checked whether the latest release of the bluetooth package fixes this issue? It may have been fixed in #208. |
It's not fixed by #208 for test i'm using if i set GOGC="off" (turning of garbage collector) then it stops crashing |
That's very useful information! Sounds like it might be a finalizer that incorrectly frees some memory. |
@aykevl I think we are mixing different problems here. Setting This issue was originally opened for an issue we fixed about a year ago:
I our case the exception seems to be happening on a Windows DLL 😕 => saltosystems/winrt-go#83 |
I have separate issues, the 32bit issue i am talking to you in saltosystems/winrt-go#83 about is a separate thing. It's still crashing no matter GC or not when i build it 32bit What i described in here I am hitting when compiling with GOARCH=amd64 if i build with 64bit and run with GOGC=off then the 64 bit program runs fine and i can talk to the device back and fourth without problems. but as soon as i turn on GC again it crashes after receiving data for a a few second |
While integrating a 3rd party BLE device on Windows 10, I encountered a repeated crash after 3-4 minutes of data transmission.
The device continues to work normally, but the app crashes.
Based on the logs, it appears that the issue is coming from the CGO side. The crash also happens when the app's memory footprint reaches ~32.5MB.
Any help is appreciated.
Here's the source code
Here's the log
The text was updated successfully, but these errors were encountered: