-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Assistance identifying origin of Backtrace #455
Comments
The only thing I can think of that could cause that assert to trigger is if the connection closed just before processing the read request. Other than that, there could be corruption happening somewhere. This looks like an opportunity to cleanup some of these asserts, this one should be handled gracefully instead. |
Thanks for the reply. I think this is a timing issue. As I figured I might be overrunning the stack I stuffed a number of uxTaskGetStackHighWaterMark() prints into to try to locate the source. After I added them (3 in total) throughout code, now suddenly the issue is gone. If I remove them, the assert failures immediately return. Given that the only change is a couple prints, that suggests the added delay is just enough to get past this check in the library. |
i got the same issue a BLE paket send every ~13ms (as fast as possible without delay between pakets) causing the same issue I replaced: Now it is working without crash |
I'm running into a panic abort issue with BLE-Gamepad (0.5.1 and earlier) and running into a backtrace related to an assertion failure. Hoping I can get some pointers on potential next steps for debugging further. Any pointers are much appreciated. Thanks.
Backtrace
Looking at NimBLECharacteristic.cpp:277 from the panic, it looks like this could be related to packet size but I may be interpreting this incorrectly.
It's possible I am creating a corruption on accident related to rtos stack size in tasks as I see this getting called. This is the task I'm calling for pinning updates for controller status to Core1 with a priority of 1 if that is helpful. BleGamepad::sendReport() in the backtrace is called from that task which should send the contents of the current packet upstream.
The text was updated successfully, but these errors were encountered: