Black Lives Matter - Action and Equality.
0

group->save() reboots ESP32
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

group->save() reboots ESP32

by crcibernetica on Tue Apr 14, 2020 10:17 am

Adafruit IO Library example adafruitio_11_group_pub (no modifications) crashes immediately after the group->save() command.
Am using the generic ESP32 (DOIT ESP32 DEVKIT V1). So far all other examples work without any problems. Just the group-->save() causes the reboot.
Code: Select all | TOGGLE FULL SIZE
Connecting to Adafruit IO.
Adafruit IO connected.
sending example.count-1 -> 0
sending example.count-2 -> 0
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400d1e80  PS      : 0x00060830  A0      : 0x800d1f28  A1      : 0x3ffb1ee0 
A2      : 0xfefefefe  A3      : 0x3ffd7b38  A4      : 0x00000000  A5      : 0x00000000 
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x800d1cdc  A9      : 0x3ffb1eb0 
A10     : 0x3ffd7b38  A11     : 0x7fffffff  A12     : 0x00000000  A13     : 0x00000000 
A14     : 0x00000000  A15     : 0x00000000  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c 
EXCVADDR: 0xfefefefe  LBEG    : 0x400012c5  LEND    : 0x400012d5  LCOUNT  : 0xfffffff7 

Backtrace: 0x400d1e80:0x3ffb1ee0 0x400d1f25:0x3ffb1f00 0x400d25e4:0x3ffb1f50 0x400d1b6f:0x3ffb1f70 0x400d17fe:0x3ffb1f90 0x400d5151:0x3ffb1fb0 0x40088b9d:0x3ffb1fd0

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)


The stack trace decodes to the following:
Code: Select all | TOGGLE FULL SIZE
PC: 0x400d1e80: AdafruitIO_Group::call(AdafruitIO_Data*) at C:\Users\laserman\Documents\Arduino\libraries\Adafruit_IO_Arduino\src\AdafruitIO_Group.cpp line 348
EXCVADDR: 0xfefefefe

Decoding stack results
0x400d1e80: AdafruitIO_Group::call(AdafruitIO_Data*) at C:\Users\laserman\Documents\Arduino\libraries\Adafruit_IO_Arduino\src\AdafruitIO_Group.cpp line 348
0x400d1f25: AdafruitIO_Group::subCallback(char*, unsigned short) at C:\Users\laserman\Documents\Arduino\libraries\Adafruit_IO_Arduino\src\AdafruitIO_Group.cpp line 399
0x400d25e4: Adafruit_MQTT::processPackets(short) at C:\Users\laserman\Documents\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp line 443
0x400d1b6f: AdafruitIO::run(unsigned short, bool) at C:\Users\laserman\Documents\Arduino\libraries\Adafruit_IO_Arduino\src\AdafruitIO.cpp line 340
0x400d17fe: loop() at C:\Users\laserman\AppData\Local\Temp\arduino_modified_sketch_417427/adafruitio_11_group_pub.ino line 58
0x400d5151: loopTask(void*) at C:\Users\laserman\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143


Any ideas? I upgraded the Arduino IDE to 1.8.12 (1.8.10 had the same problem), all the board definitions and libraries.

crcibernetica
 
Posts: 35
Joined: Fri Apr 11, 2014 6:59 pm

Re: group->save() reboots ESP32

by brubell on Wed Apr 15, 2020 12:24 pm

This issue is tracked and being looked at over on the Adafruit IO Arduino repository: https://github.com/adafruit/Adafruit_IO ... issues/114

brubell
 
Posts: 891
Joined: Fri Jul 17, 2015 10:33 pm

Re: group->save() reboots ESP32

by crcibernetica on Tue Apr 21, 2020 9:02 am

brubell wrote:This issue is tracked and being looked at over on the Adafruit IO Arduino repository: https://github.com/adafruit/Adafruit_IO ... issues/114


Thanks, I saw your patch and applied it. It works for me! Hope to see the library updated soon.

crcibernetica
 
Posts: 35
Joined: Fri Apr 11, 2014 6:59 pm

Re: group->save() reboots ESP32

by brubell on Tue Apr 21, 2020 9:37 am

It'll get merged in soon, could you comment on the pull request that it worked for you? Thanks!

brubell
 
Posts: 891
Joined: Fri Jul 17, 2015 10:33 pm

Re: group->save() reboots ESP32

by crcibernetica on Tue Apr 21, 2020 10:11 am

brubell wrote:It'll get merged in soon, could you comment on the pull request that it worked for you? Thanks!

Done. Thank you!

crcibernetica
 
Posts: 35
Joined: Fri Apr 11, 2014 6:59 pm

Re: group->save() reboots ESP32

by brubell on Tue Apr 21, 2020 10:33 am

Thanks - release time :)

brubell
 
Posts: 891
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.