mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #672] WifiManager and Firebase.stream #560
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kamoba on GitHub (Jul 23, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/672
Description:
Hi, I'm trying to integrate WifiManager into my project that uses FirebaseArduino and I've noticed that it only bugs when running stream method :
Since I can't do without Stream I'm trying to solve the problem on the WifiManager side.
I have Exception (29) in normal mode and Exception (28) debug mode right after being connected to the internet.
Anybody got any idea how to fix this?.
Anybody got any idea how to fix this?
Thanks!
Debug:
SDK:2.2.1(cfd48f3)/Core:2.4.1/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1)
...
...
...
connected with MYNEYWORK, channel 11
dhcp client start...
wifi evt: 0
ip:192.168.1.73,mask:255.255.255.0,gw:192.168.1.254
wifi evt: 3
*WM: Connection result:
*WM: 3
station: 00:68:4a:bb:91:5b leave, AID = 1
rm 1
:er -13 0x00000000
:er -13 0x00000000
bcn 0
del if1
pm open,type:2 0
mode : sta(5c:ct:8f:b5:3f:fa)
:ur 1
WS:dis
:del
:ur 1
I am connected and my ip address is:
192.168.1.73
...
...
...
[hostByName] request IP for: test-2558a.firebaseio.com
[hostByName] Host: test-2558a.firebaseio.com IP: 35.201.97.85
:ref 1
:ref 2
:wr 107 107 0
:wrc 107 107 0
:sent 107
:rn 536
:rd 5, 536, 0
:rdi 536, 5
:rd 80, 536, 5
:rdi 531, 80
:rd 5, 536, 85
:rdi 451, 5
:rd 446, 536, 90
:rdi 446, 446
:c0 446, 536
:rn 536
:rch 536, 536
:rch 1072, 440
:rd 1512, 1512, 0
:rdi 536, 536
:c 536, 536, 1512
:rdi 536, 536
:c 536, 536, 976
:rdi 440, 440
:c0 440, 440
:rn 306
:rd 297, 306, 0
:rdi 306, 297
:oom(256)@?
:oom(21)@:oom(17)@:oom(17)@:oom(17)@:oom(17)@:oom(17)@Fatal exception 28(LoadProhibitedCause):
epc1=0x40100431, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0007b830, depc=0x00000000
Exception (28):
epc1=0x40100431 epc2=0x00000000 epc3=0x00000000 excvaddr=0x0007b830 depc=0x00000000
ctx: sys
sp: 3fff1330 end: 3fffffb0 offset: 01a0
wdt reset
Settings in IDE
Arduino 1.8.5
Module: NodeMcu ESP-12e
Additional libraries:
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#include <time.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
@tablatronix commented on GitHub (Jul 23, 2018):
You will need to decode that exception.
Most likely an out of bounds illegal memory access
@Kamoba commented on GitHub (Jul 24, 2018):
Hi @tablatronix i tryed with ESP Exception decoder module but do not show nothing when i past my stack.
And today (probably after i did "esptool.py -p com3 erase_flash") i didn't see any strack code but this one:
Fatal exception 29(StoreProhibitedCause):
:oom(69)@user_interface.c:112
Fatal exception 29(StoreProhibitedCause):
:oom(69)@user_interface.c:112
Fatal exception 29(StoreProhibitedCause):
:oom(69)@user_interface.c:112
Fatal exception 29(StoreProhibitedCause):
:oom(69)@user_interface.c:112
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
@tablatronix commented on GitHub (Jul 24, 2018):
What esp version are you using?
Staging ?
@Kamoba commented on GitHub (Jul 25, 2018):
The borad is NodeMcu V3 but i use NodeMcu 1.0 ESP-12e on Arduino IDE.

What mean staging?
If i do not use WifiManager evrything work fine.
@tablatronix commented on GitHub (Jul 25, 2018):
What version of the esp library ? There are lots of bugs always being fixed
Staging means latest github
@Kamoba commented on GitHub (Jul 26, 2018):
I have all this installed from my library manager:

I guess my version is 1.0.0
And the url used in my Preference is http://arduino.esp8266.com/versions/2.4.1/package_esp8266com_index.json
@Kamoba commented on GitHub (Jul 28, 2018):
Now i get the Exeption 29 again and succesfully decode it:
Exception 29: StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores
PC: 0x402188b4
EXCVADDR: 0x00000204
Decoding stack results
0x40225a46: more_comps at crypto/bigint.c line 1072
0x4022673e: bi_divide at crypto/bigint.c line 430
0x4010020c: _umm_free at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\umm_malloc\umm_malloc.c line 1291
0x4020196d: realloc at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\heap.c line 90
0x40226a01: bi_set_mod at crypto/bigint.c line 774
0x40225aec: trim at crypto/bigint.c line 1197
0x40227bb1: RSA_pub_key_new at crypto/rsa.c line 96
0x4022b81e: asn1_get_big_int at ssl/asn1.c line 169
0x4022bcb5: asn1_public_key at ssl/asn1.c line 556
0x4022bb41: asn1_name at ssl/asn1.c line 470
0x4022b9e6: asn1_validity at ssl/asn1.c line 410
0x40223c89: x509_new at ssl/x509.c line 128
0x4022ad5d: SHA256_Final at crypto/sha256.c line 273
0x40229915: SHA256_Process at crypto/sha256.c line 170
0x4022acb4: SHA256_Update at crypto/sha256.c line 231
0x4022ac58: SHA256_Update at crypto/sha256.c line 212
0x4022119d: add_packet at ssl/tls1.c line 849
0x40210690: esp_yield() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_main.cpp line 87
0x40210708: __yield() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_main.cpp line 96
0x40210748: optimistic_yield(uint32_t) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_main.cpp line 111
0x402217b1: process_certificate at ssl/tls1.c line 2181
0x40222f42: do_clnt_handshake at ssl/tls1_clnt.c line 107
0x40210708: __yield() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_main.cpp line 96
0x4022298c: basic_read at ssl/tls1.c line 1607
0x402059a0: SSLContext::delete_shared_SSL(SSL) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp line 115
0x401007ac: umm_malloc at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\umm_malloc\umm_malloc.c line 1668
0x402019e4: malloc_loc at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\heap.c line 105
0x40222af4: ssl_read at ssl/tls1.c line 314
0x40206441: SSLContext::connect(ClientContext, char const*, unsigned int) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp line 146
0x4021045b: operator new(unsigned int) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\abi.cpp line 30
0x40206480: std::__shared_ptr ::operator=(std::__shared_ptr &&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/shared_ptr_base.h line 862
0x4020668b: WiFiClientSecure::_connectSSL(char const*) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp line 350
0x40206731: WiFiClientSecure::connect(char const*, unsigned short) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266WiFi\src\WiFiClientSecure.cpp line 518
0x4020d7a8: FirebaseHttpClientEsp8266::sendRequest(std::string const&, std::string const&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/basic_string.h line 293
0x4020e628: HTTPClient::connect() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp line 845
0x4021045b: operator new(unsigned int) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\abi.cpp line 30
0x4020ee24: HTTPClient::sendRequest(char const*, unsigned char*, unsigned int) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp line 392
0x4020bf97: std::basic_string , std::allocator >::_S_construct (char const*, char const*, std::allocator const&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/basic_string.tcc line 146
0x4020e533: HTTPClient::collectHeaders(char const**, unsigned int) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\ESP8266HTTPClient\src\ESP8266HTTPClient.cpp line 776
0x4020d7a8: FirebaseHttpClientEsp8266::sendRequest(std::string const&, std::string const&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/basic_string.h line 293
0x4020d7a8: FirebaseHttpClientEsp8266::sendRequest(std::string const&, std::string const&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/basic_string.h line 293
0x4020d7be: FirebaseHttpClientEsp8266::sendRequest(std::string const&, std::string const&) at C:\Users\Kamoba\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp line 72
0x4020b7b9: FirebaseStream::startStreaming(std::string const&, std::string const&, std::string const&) at C:\Users\Kamoba\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp line 88
0x4020bfd8: std::basic_string , std::allocator >::basic_string(char const*, std::allocator const&) at c:\users\Kamoba\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits/basic_string.tcc line 216
0x4020c708: FirebaseArduino::stream(String const&) at C:\Users\Kamoba\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp line 153
0x4020fe3d: operator+(StringSumHelper const&, String const&) at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\WString.cpp line 346
0x4020350b: setupConnexions() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/WString.h line 263
0x40201410: __pinMode at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_wiring_digital.c line 34
0x4020355e: setup() at C:\Users\Kamoba\Documents\Programmation\Arduino\Projets\Alarm_System\Alarm_System_Nodemcu/Alarm_System_Nodemcu.ino line 56
0x402106d4: loop_wrapper() at C:\Users\Kamoba\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266\core_esp8266_main.cpp line 118
@swarnkarkush21 commented on GitHub (Jul 24, 2021):
I am facing same issue right now. Please help me.