-
Notifications
You must be signed in to change notification settings - Fork 7.6k
BLE Error Stack smashing protect failure and assertion "heap != NULL && "free() target pointer is outside heap areas"" #2308
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
Comments
I changed verbosity to INFO, and here's the output. I noticed the exception changed. I may have been getting heap issues earlier due to the huge amount of logs being generated in Verbose. Either way, it looks like an issue in the BLERemoveService.cpp. Debug Messages
Backtrace
|
I found some bugs in 1.0.1, and fixed it. https://github.com/wakwak-koba/ESP32_BLE_Arduino |
@chegewara this is for you buddy :) |
Any takers? I'm still seeing some issues. |
Would you please try using mine for testing |
I have the same problem. I tested with https://github.com/wakwak-koba/ESP32_BLE_Arduino and 1.0.1
DEBUG Verbose:
BACKTRACE:
|
Hi @elotn |
Hi @chegewara |
So I tried a few variations, and I'm seeing the same error. I tried the following:
I also added an esp_log to see if
|
Oh wait.. my apologies. I had to turn down my logs. So... it looks like commenting out those lines worked. I am also using @wakwak-koba branch as well. Having said that, I tried testing my code with 2 BLE Servers (both ESP32), and I am now getting a different exception. I'll create another issue for it. |
Hi, EDIT thanks |
Thanks for the help! I'll leave the ticket open until a fix is released. I also opened up a different issue for the other problem I'm seeing with 2 BLE servers and 1 client. |
I'm facing a different issue in Arduino when trying to write an Eddystone beacon, along with Wi-Fi, EEPROM and few GPIO activities. After I added BLEDevice, I faced Sketch too big issue, and after I changed the default partition to increase the program memory area. I also tried selecting partition scheme "No Ota (Large APP)", the sketch too big issue gets solved.. Please let me know if anyone a dig deep and find the actual issue with this. BLE initialization code:
Here is the backtrace with core debug level "verbose"
|
Try to see if you solve with this fix. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
Board: ESP32 WROVER Dev Kit 4.1
Arduino ESP32 Core: 1.0.1
PSRAM Enabled : Yes
I'm getting the following exception in my BLE code in the new build. The 1.0.0 build did not have this issue.
Debug Messages:
I'm running a BLEClient that is connecting to another ESP32. I'm reading the characteristics, and that's where it seems to crash. I've included Verbose output messages and backtrace. For now, I'm going to revert back to 1.0.0. Let me know if you want to see code; however, this code worked fine in 1.0.0 (it's pretty straight forward BLE interfacing).
Backtrace:
Debug Messages:
The text was updated successfully, but these errors were encountered: