This repository was archived by the owner on Mar 17, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork489
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
calling set() while streaming crashes #48
Closed
Description
Summary
If you call stream() and then attempt to call set() from from another client, the device panics :(
Steps
Run this code
#include <Firebase.h>Firebase fbase = Firebase("espbutton.firebaseio.com").auth("REDACTED");Firebase fbaseStream = Firebase("espbutton.firebaseio.com").auth("SAME_VALUE_ALSO_REDACTED");void setup() { Serial.begin(9600); Serial.println("Hello world!"); // connect to wifi. WiFi.begin("OpenWifiNetworkSSID"); Serial.print("connecting"); while (WiFi.status() != WL_CONNECTED) { Serial.print("."); delay(500); } Serial.println(); Serial.print("connected: "); Serial.println(WiFi.localIP()); fbaseStream.stream("/hello");}void loop() { fbase.set("/", "{\"hello\": \"world\"}");}
Result
Hello world!connecting..connected: 192.168.123.45Panic /arduino-sketchbook/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiClientSecure.cpp:495 ax_port_mallocctx: cont sp: 3fff10a0 end: 3fff1520 offset: 01b0>>>stack>>>3fff1250: 3fff28f0 00004000 3fff80b5 40203b80 3fff1260: 36363636 3fff2f58 3fff2f64 40203b0d 3fff1270: 3fff80b5 00000000 3fff28f0 402294fc 3fff1280: 3fff80b5 00000000 3fff28f0 4022a8fe 3fff1290: 00000001 00000001 3fff80a8 40228a9a 3fff12a0: e8dc11b0 a2dee883 b0599e2f 000000b9 3fff12b0: 00000010 3fff80b5 3fff299c 3fff12f0 3fff12c0: 3fff80b5 3fff28c0 000000e2 00000010 3fff12d0: 3fff28f0 3fff80b5 00000010 00000010 3fff12e0: 3fff80b5 00000000 3fff28f0 4022a31e 3fff12f0: 8ef9144a 72ca9803 93bab03d 66081d08 3fff1300: d258f652 00000000 00000034 40229a40 3fff1310: 00020016 00000014 00000010 00000010 3fff1320: 0000002f 00000016 3ffe9388 00000004 3fff1330: 0000002f 3fff28f0 3fff28f0 4022a456 3fff1340: 0000002f 3fff80a5 3fff28f0 4022a645 3fff1350: 3fff283c 4021cafa 3fff27c0 00000000 3fff1360: 00000000 3fff2158 3fff28f0 4022a6d0 3fff1370: 3fff1d28 3fff1d28 00000001 3fff0394 3fff1380: 3fff0398 3fff1d28 3fff1c20 40203906 3fff1390: b86ac568 3fff1c88 40205524 3fff1c88 3fff13a0: 00000001 000001bb 3fff1d28 40203bd2 3fff13b0: 3ffe9190 b86ac568 3fff01f8 402066b0 3fff13c0: 3fff2430 000001bb 3fff1d28 40202dc5 3fff13d0: 3ffe9190 b86ac568 3ffe9190 b86ac568 3fff13e0: 3fff2288 00000000 3ffe8fe2 40205328 3fff13f0: 3fff0294 00000000 3fff0294 40203be8 3fff1400: 00000034 00000001 3fff0294 40204398 3fff1410: 3ffe8ce3 00000012 3fff0294 40204918 3fff1420: 3ffe8fe2 4010743f 3fff1450 3fff04f4 3fff1430: 3fff14e8 3fff0294 3fff0294 40203f94 3fff1440: 3ffe8ce3 00000000 3fff1494 40202660 3fff1450: 00000000 00000000 00000000 0000008c 3fff1460: 3ffe8ce3 3fff14dc 3fff0294 40202843 3fff1470: 00000133 3ffe8ccb 3fff01f8 4020670a 3fff1480: 3ffe8c89 00000012 3fff14dc 40206762 3fff1490: 00000000 3fff22c0 0000003f 00000034 3fff14a0: 3fffdad0 00000000 3fff14dc 3fff04f4 3fff14b0: 3fffdad0 3fff0294 3fff14d0 40202903 3fff14c0: 3fff1600 00000000 3fff04ed 4020250d 3fff14d0: 3ffe8c82 00f0ffff fe9fa8c0 3fff1c88 3fff14e0: 0000001f 00000012 3fff1608 0000000f 3fff14f0: 00000001 00000000 00000000 feefeffe 3fff1500: feefeffe 00000000 3fff04ed 40205570 3fff1510: feefeffe feefeffe 3fff0500 40100114 <<<stack<<<��!����!��