Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By Joe Job
#52303 I found that but have not seen any documentation on how to turn it on could you tell me how to activate that please. Also being that the ESP update is the only thing that has issues with connecting to the secure server I will argue that is not the case, after all all it is doing is accessing a publicly available page. MQTT, CoAP, AMQP, multiple API's and services have no issue whatsoever so I find it hard to believe that this is case. I would like to test the debug as you mentioned to try get to the bottom of it, how do you activate it ?
User avatar
By martinayotte
#52306 If you don't take look on server side log, you're not helping yourself, and no other person can do it on your place.
For enabling DEBUG, IDE menu Tools/DebugPort to "Serial" and Tools/DebugLevel to "HTTPClient+HTTPUpdate+Updater"
User avatar
By Joe Job
#52312 I tried this yesterday and same issue today:

Code: Select allMounted file system!
Waiting for Wifi to connect...
.......Successfully connected to WiFi
[httpUpdate] HTTP error: connection refused
HTTP_UPDATE_FAILD Error (-1): HTTP error: connection refused
CURRENT BATTERY: 2.88
Failed to read from DHT sensor!
nan
nan
Attempting connection to TechBubble IoT JumpWay...
please start sntp first !
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1b2, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3fff2500 end: 3fff2a70 offset: 01a0

>>>stack>>>
3fff26a0:  3fff8be4 ffffffff 00000010 402301ba 
3fff26b0:  00010000 3fff7634 00000000 00000000 
3fff26c0:  00000010 00000040 3fff99b4 3fff99d4 
3fff26d0:  3fff7634 3fff7634 00000010 00000020 
3fff26e0:  3fff8be4 3fff7634 3fff7984 00000020 
3fff26f0:  3fff8be4 3fff7634 00000010 40230a89 
3fff2700:  3fff524c 3fff7964 3fff7984 00000001 
3fff2710:  00000001 3fff7984 3fff545b 4022f868 
3fff2720:  00000100 3fff76c4 3fff53a7 00000000 
3fff2730:  00000100 3fff76c4 3fff53a7 40231a91 
3fff2740:  3fff2770 00000000 000000d0 00000030 
3fff2750:  01981893 ed673a20 058a1da0 00000004 
3fff2760:  00000004 3fff52d4 3fff53a1 4022db9c 
3fff2770:  9a7c0203 085be4e2 67a24d33 ff1b61a6 
3fff2780:  7b052fc3 84b0b1e1 ce05f99a 7d189508 
3fff2790:  65b90201 15fa5e75 01bf684b 1893157c 
3fff27a0:  00000004 3fff53a1 3fff52d4 4022df9d 
3fff27b0:  7653ad91 eeb0a50c 11779efc 3fff4f44 
3fff27c0:  00000000 00000004 00000004 40209337 
3fff27d0:  3fff53a5 3fff53a1 3fff6e94 000014c0 
3fff27e0:  00001553 3fff68be 00000035 00000004 
3fff27f0:  3fff52d4 3fff53a1 00000004 00000004 
3fff2800:  00000004 3fff53a1 3fff52d4 4022d994 
3fff2810:  00000000 3fff53a1 3fff52d4 4022dd3c 
3fff2820:  0000001e 3ffe9770 0000002b 401006f0 
3fff2830:  3fff2880 0000000e 00000010 00000000 
3fff2840:  3fff4f7c 3ffe9770 3fff52d4 01000000 
3fff2850:  3fff2880 3fff17b4 3fff52d4 4022daec 
3fff2860:  40209118 0000001a 3ffe9770 00001387 
3fff2870:  00001cd6 3fff17b4 3fff522c 402097d9 
3fff2880:  000022b3 3fff4e84 3fff17b4 40208b42 
3fff2890:  c64b3025 0000001c 00000000 3fff14b8 
3fff28a0:  000022b3 3fff17b4 3ffe9770 40209b2d 
3fff28b0:  3ffea540 c64b3025 3ffea540 c64b3025 
3fff28c0:  3fff1550 3fff1678 00000000 4020bfdd 
3fff28d0:  3fff195c 00000014 00000014 4010020c 
3fff28e0:  3fff14ec 3fff15b4 00000000 401008e0 
3fff28f0:  3ffe94c4 00000000 3fff2920 3fff14b8 
3fff2900:  3fff1678
Soft WDT reset

ctx: cont
sp: 3fff2260 end: 3fff2a70 offset: 01b0

>>>stack>>>
3fff2410:  40001da0 00000078 00000000 00000010 
3fff2420:  400021fb 00000014 082b0600 27302506 
3fff2430:  66660030 38373631 2f2f6f00 7474703a 
3fff2440:  73657274 73702e75 2e636f6d 72757374 
3fff2450:  00000000 80000000 00000000 00000000 
3fff2460:  00000000 3fff2540 3fff2540 3fff9a38 
3fff2470:  00000000 3fff24e0 3fff24e0 3ffeacdc 
3fff2480:  40002514 3fffdd3c 3fff2a70 3fff2910 
3fff2490:  00000020 00000001 00000010 00000001 
3fff24a0:  00000000 00000000 00000000 3fff2430 
3fff24b0:  00000008 ab7c41da 4874c43a 2b7b3692 
3fff24c0:  3fff24e0 3fff24e0 00000004 40201e25 
3fff24d0:  3fff26a0 00000031 0e7bed9a 7980c8d1 
3fff24e0:  3ffeaccc 3fff2900 3fff1678 00000000 
3fff24f0:  3fff1984 40207322 72cb1410 38d9af7c 
3fff2500:  00000020 3fff2540 00000004 89d9b957 
3fff2510:  00000002 0000001d 4000e1b2 00000000 
3fff2520:  00000000 00000000 00000000 00000000 
3fff2530:  0000003c 5ec42c2b bdc83705 a6adfaa6 
3fff2540:  4024af90 4000e1b2 00000000 00000000 
3fff2550:  00000000 00000000 00000000 40227b3f 
3fff2560:  00000002 0000001d 4000e1b2 00000000 
3fff2570:  00000000 00000000 00000000 4010559f 
3fff2580:  40105580 3fffc100 3fff8be4 0000001d 
3fff2590:  0000001d 4000e1b2 d48bf6f4 483dd899 
3fff25a0:  400005e1 b95485d5 730f7fc4 687c4135 
3fff25b0:  4000e1b2 00000030 00000008 8b7bd23d 
3fff25c0:  402301d5 00000000 00000000 00000204 
3fff25d0:  00000000 00000200 00000020 00000cd7 
3fff25e0:  000000d7 3fff2790 3fff99b4 3fff964c 
3fff25f0:  ffffffff 3fff8be4 00000020 0000001d 
3fff2600:  3f592f08 02f9f71a 5ade6988 be2b32e9 
3fff2610:  d86fad5e c12f9e85 fd358d29 96022b02 
3fff2620:  1e3f30cd 2edd5f4a 006469a8 26ec0240 
3fff2630:  f6b7fc7f 3180914f 1c72a1bf 3b9c753d 
3fff2640:  cea3c11a 9f40c59d 331f9941 4cd626a2 
3fff2650:  00000210 97f9c199 3fff195c 3ffeb4fc 
3fff2660:  00810000 3fff7634 00000210 401006f0 
3fff2670:  00000070 00000030 3fff99d4 40209a38 
3fff2680:  02faf3e2 91435468 60785769 4022f9c4 
3fff2690:  0000010c 00000000 3fff195c 00000020 
3fff26a0:  3fff8be4 ffffffff 00000010 402301ba 
3fff26b0:  00010000 3fff7634 00000000 00000000 
3fff26c0:  00000010 00000040 3fff99b4 3fff99d4 
3fff26d0:  3fff7634 3fff7634 00000010 00000020 
3fff26e0:  3fff8be4 3fff7634 3fff7984 00000020 
3fff26f0:  3fff8be4 3fff7634 00000010 40230a89 
3fff2700:  3fff524c 3fff7964 3fff7984 00000001 
3fff2710:  00000001 3fff7984 3fff545b 4022f868 
3fff2720:  00000100 3fff76c4 3fff53a7 00000000 
3fff2730:  00000100 3fff76c4 3fff53a7 40231a91 
3fff2740:  3fff2770 00000000 000000d0 00000030 
3fff2750:  01981893 ed673a20 058a1da0 00000004 
3fff2760:  00000004 3fff52d4 3fff53a1 4022db9c 
3fff2770:  9a7c0203 085be4e2 67a24d33 ff1b61a6 
3fff2780:  7b052fc3 84b0b1e1 ce05f99a 7d189508 
3fff2790:  65b90201 15fa5e75 01bf684b 1893157c 
3fff27a0:  00000004 3fff53a1 3fff52d4 4022df9d 
3fff27b0:  7653ad91 eeb0a50c 11779efc 3fff4f44 
3fff27c0:  00000000 00000004 00000004 40209337 
3fff27d0:  3fff53a5 3fff53a1 3fff6e94 000014c0 
3fff27e0:  00001553 3fff68be 00000035 00000004 
3fff27f0:  3fff52d4 3fff53a1 00000004 00000004 
3fff2800:  00000004 3fff53a1 3fff52d4 4022d994 
3fff2810:  00000000 3fff53a1 3fff52d4 4022dd3c 
3fff2820:  0000001e 3ffe9770 0000002b 401006f0 
3fff2830:  3fff2880 0000000e 00000010 00000000 
3fff2840:  3fff4f7c 3ffe9770 3fff52d4 01000000 
3fff2850:  3fff2880 3fff17b4 3fff52d4 4022daec 
3fff2860:  40209118 0000001a 3ffe9770 00001387 
3fff2870:  00001cd6 3fff17b4 3fff522c 402097d9 
3fff2880:  000022b3 3fff4e84 3fff17b4 40208b42 
3fff2890:  c64b3025 0000001c 00000000 3fff14b8 
3fff28a0:  000022b3 3fff17b4 3ffe9770 40209b2d 
3fff28b0:  3ffea540 c64b3025 3ffea540 c64b3025 
3fff28c0:  3fff1550 3fff1678 00000000 4020bfdd 
3fff28d0:  3fff195c 00000014 00000014 4010020c 
3fff28e0:  3fff14ec 3fff15b4 00000000 401008e0 
3fff28f0:  3ffe94c4 00000000 3fff2920 3fff14b8 
3fff2900:  3fff1678 00000000 3fff1984 40207322 
3fff2910:  00000000 3ffe94d8 3fff1984 4020ee41 
3fff2920:  00000000 00000000 00000000 3fff3484 
3fff2930:  0000001f 00000015 3fff344c 401008e0 
3fff2940:  3fffdad0 3fff17dc 3fff1678 3fff1964 
3fff2950:  3fff17d8 3fff17dc 3fff1678 402075f5 
3fff2960:  00000000 00000000 00000000 4c494146 
3fff2970:  72452044 20726f72 29312d28 5448203a 
3fff2980:  65205054 726f7272 6f63203a 63656e6e 
3fff2990:  40105966 001bea38 3ffe8fe1 40211d60 
3fff29a0:  40105a22 3fff0eb8 001bea38 00000000 
3fff29b0:  40105bf4 001bea38 3fff18bc 00000000 
3fff29c0:  3fff0ee0 3fff18bc 3fff1a50 3fff18bc 
3fff29d0:  3fff1898 3fff17f4 40210770 3fff1a50 
3fff29e0:  402010ae 00000002 00000002 402010a3 
3fff29f0:  3fff1898 3ffeb378 3fff1984 40207ae2 
3fff2a00:  00000000 00000000 00000000 00000000 
3fff2a10:  00000000 00000000 00000000 00000000 
3fff2a20:  00000000 feefeffe feefeffe feefc_ÇÏrSöfŠSystem Initiating...
Mounted file system!
Waiting for Wifi to connect...
..Successfully connected to WiFi
[httpUpdate] HTTP error: connection refused
HTTP_UPDATE_FAILD Error (-1): HTTP error: connection refused
CURRENT BATTERY: 2.88
Failed to read from DHT sensor!
nan
nan
Attempting connection to TechBubble IoT JumpWay...
please start sntp first !
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1b2, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3fff2500 end: 3fff2a70 offset: 01a0

>>>stack>>>
3fff26a0:  3fff8c5c ffffffff 00000010 402301ba 
3fff26b0:  00010000 3fff76ac 00000000 00000000 
3fff26c0:  00000010 00000040 3fff9a2c 3fff9a4c 
3fff26d0:  3fff76ac 3fff76ac 00000010 00000020 
3fff26e0:  3fff8c5c 3fff76ac 3fff79fc 00000020 
3fff26f0:  3fff8c5c 3fff76ac 00000010 40230a89 
3fff2700:  3fff52d4 3fff79dc 3fff79fc 00000001 
3fff2710:  00000001 3fff79fc 3fff5514 4022f868 
3fff2720:  00000100 3fff773c 3fff544f 00000000 
3fff2730:  00000100 3fff773c 3fff544f 40231a91 
3fff2740:  3fff2770 00000000 000000d0 00000030 
3fff2750:  afebdbab ed673a20 058a1da0 00000004 
3fff2760:  00000004 3fff537c 3fff5449 4022db9c 
3fff2770:  841d0203 9596d790 ad49c60a 7367d409 
3fff2780:  274e6e54 d03e1ad9 57d45725 7ac8e729 
3fff2790:  9200695f dc913435 8f8ba9d0 dbab6944 
3fff27a0:  00000004 3fff5449 3fff537c 4022df9d 
3fff27b0:  7653ad91 eeb0a50c 11779efc 3fff4fcc 
3fff27c0:  00000000 00000004 00000004 40209337 
3fff27d0:  3fff544d 3fff5449 3fff6f3c 000014c0 
3fff27e0:  00001553 3fff6966 00000035 00000004 
3fff27f0:  3fff537c 3fff5449 00000004 00000004 
3fff2800:  00000004 3fff5449 3fff537c 4022d994 
3fff2810:  00000000 3fff5449 3fff537c 4022dd3c 
3fff2820:  0000001e 3ffe9770 0000002b 401006f0 
3fff2830:  3fff2880 0000000e 00000010 00000000 
3fff2840:  3fff5004 3ffe9770 3fff537c 01000000 
3fff2850:  3fff2880 3fff17b4 3fff537c 4022daec 
3fff2860:  40209118 000003cf 3ffe9770 00001387 
3fff2870:  00000f32 3fff17b4 3fff3494 402097d9 
3fff2880:  000022b3 3fff4f0c 3fff17b4 40208b42 
3fff2890:  c64b3025 0000001c 00000000 3fff14b8 
3fff28a0:  000022b3 3fff17b4 3ffe9770 40209b2d 
3fff28b0:  3ffea540 c64b3025 3ffea540 c64b3025 
3fff28c0:  3fff1550 3fff1678 00000000 4020bfdd 
3fff28d0:  3fff195c 00000010 00000010 4010020c 
3fff28e0:  3fff14ec 3fff15b4 00000000 401008e0 
3fff28f0:  3ffe94c4 00000000 3fff2920 3fff14b8 
3fff2900:  3fff1678 00000000 3fff1984 40207322 
3fff2910:  00000000 3ffe94d8 3fff1984 4
Soft WDT reset


First stack decode:

Code: Select allDecoding 18 results
0x402301ba: regular_square at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 951
:  (inlined by) bi_square at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 1014
0x40230a89: precompute_slide_window at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 1323
:  (inlined by) bi_mod_power at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 1372
0x4022f868: trim at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 1197
0x40231a91: RSA_public at /Users/igrokhotkov/e/axtls/e1/crypto/rsa.c line 242
:  (inlined by) RSA_encrypt at /Users/igrokhotkov/e/axtls/e1/crypto/rsa.c line 276
0x4022db9c: send_client_key_xchg at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 352
0x4022df9d: do_clnt_handshake at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 109
0x40209337: ClientContext::_consume(unsigned int) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 517
:  (inlined by) ClientContext::read(char*, unsigned int) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src\include/ClientContext.h line 175
0x4022d994: do_handshake at /Users/igrokhotkov/e/axtls/e1/ssl/tls1.c line 1481
:  (inlined by) basic_read at /Users/igrokhotkov/e/axtls/e1/ssl/tls1.c line 1357
0x4022dd3c: do_client_connect at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 154
0x401006f0: malloc at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1664
0x4022daec: ssl_read at /Users/igrokhotkov/e/axtls/e1/ssl/tls1.c line 265
0x40209118: WiFiClient::_s_connected(void*, void*, signed char) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 149
0x402097d9: SSLContext::connect(ClientContext*, char const*, unsigned int) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 517
:  (inlined by) WiFiClientSecure::_connectSSL(char const*) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 279
0x40208b42: WiFiClient::connect(IPAddress, unsigned short) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 149
0x40209b2d: WiFiClientSecure::connect(char const*, unsigned short) at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 269
0x4020bfdd: PubSubClient::connect(char const*, char const*, char const*, char const*, unsigned char, unsigned char, char const*) at C:\Users\Usuario\Transporter\TECHNOLOGIES-IoT\Arduino\_Sketches\libraries\PubSubClient\src/PubSubClient.cpp line 34
0x4010020c: _umm_free at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1287
0x401008e0: free at C:\Users\Usuario\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1733


Also I checked apache logs and no log for that page.