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
[Bug]: Heltec V3 reboot loop when using ATAK-Plugin #3725
Comments
Can you try with the latest version of the ATAK plugin? There were bug fixes, and I want to rule out any client side data issues. |
It's still crashing/rebooting, but seems less often. I've updated to: Android App: 2.3.7 I've attached the debug logs from one reboot to the next for two Heltec V3's. I got this info using "pio" from the command line, but if there's something better, just let me know. |
I have the same issue. |
Please test out @niccellular's latest release of the ATAK plugin (https://github.com/meshtastic/ATAK-Plugin/releases) and this firmware: Hopefully less crashy 😄 |
I'm testing with 2.3.9.f06c56a firmware and 1.0.21 ATAK-Plugin, and it's still crashing about every 60 seconds. How do I build your pr on linux? I made it this far from https://meshtastic.org/docs/development/firmware/build/ and some Googling: git clone -b master https://github.com/meshtastic/firmware.git I have PlatformIO installed, but trying to run pio commands seems to just hang. |
For platformio, it should work out of the box with the VSCode plugin. Maybe try rebooting? You can just grab the artifacts zip instead of building though: |
Thanks! That was way easier than trying to build myself. Just updated from 2.3.9 to 2.3.10.da52ebd and it's still rebooting. I'll try a complete device wipe, and then collect logs. |
Thanks for testing! Look forward to seeing your serial logs if the issue persists. |
I reinstalled as fresh install, not upgrade, and then set minimal options: BT Fixed Pin, Role = TAK, and channel Short/Fast. I've attached the debug log from pio from one crash to the next. This time though I noticed it doesn't seem to be NimBLE related, but MeshPacket size?
Hopefully this helps! |
Here's the trimmed log from the second device: |
@azokthedefiler1 does this occur on Long/Fast as well? |
Yes. I've gone through all the prefab channels and my own custom too. Short/Fast just seems to crash the fastest, about 30-60secs between crashes. Long/Fast can stretch that out to anywhere from 1-5 minutes. |
Can you also try the toggle in the meshtastic atak plugin "Only send PLI and Chat messages over Meshtastic" |
I've been testing with WiFi disabled, no server connection, so it's forced to go over Meshtastic. I'll flip that switch anyway and update this post in a few minutes. UPDATE: |
Update 2: Enabling Only send PLI and Chat messages over Meshtastic has made a drastic difference. The Heltec's are still rebooting, but looks like about 60 minutes in between reboots now. |
I believe there's still some underlying issue with certain payloads not playing nice in the firmware, but I have added a safeguard in my latest commit to the PR to prevent them from rebooting the device at least. |
When my heltec v3 arrives i'll look more into the payload issue |
I left the Heltec's running for 8+ hours and collected these other errors in the attached files. To sum up so far: With Only send PLI and Chat messages over Meshtastic disabled, reboots about every 60 secs, crash error is:
With Only send PLI and Chat messages over Meshtastic enabled, reboots about every 60 mins, crash error is:
There was one crash slightly different:
mt-0420_guru_2024-05-18.txt It looks like if the Only send... setting is disabled, it never runs long enough to trigger the BT crash (nimble_host / btController). I am not a programmer, that's just an educated guess. |
Try this one now. Should prevent reboot / crash, but those payloads remain bad. |
When I try to flash the firmware-heltec-v2_1-2.3.10.2744525.zip , I get this error
|
Aaaaah! My mistake. I grabbed the v2 instead!
|
It's running much better now but there are still nimble_host crashes. The logs below are about 1 hour, so 3 reboots on first device and one reboot on the second. This is with the new 2.3.10.2744525 firmware linked above and with Only send PLI... still disabled. |
Category
BLE, Other
Hardware
Heltec V3
Firmware Version
2.3.6.7a3570a
Description
Heltec V3 device reboots every 30-60 seconds while using the ATAK-Plugin. I did some research and it seems to be caused by bluetooth (NimBLE) breaking the stack: Stack canary watchpoint triggered (nimble_host)
Android Meshtastic Version: 2.3.3
Heltec V3 Firmware Version: 2.3.6.7a3570a
ATAK-Plugin Version: 1.0.12
Issue has been around (that I know of) since at least firmware version 2.2.4 and ATAK plugin version 1.0.10. I currently have 4 Heltec V3 devices, and if at least one device is connected/transmitting from ATAK, they will all reboot regardless of whether they are connected to ATAK or not.
I'm happy to help with additional info, just let me know what is needed and how to get it.
Relevant log output
The text was updated successfully, but these errors were encountered: