Skip to content
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

INFLUXDB module freezes the devices #410

Closed
xoseperez opened this issue Jan 13, 2018 · 17 comments
Closed

INFLUXDB module freezes the devices #410

xoseperez opened this issue Jan 13, 2018 · 17 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04)


On my 2 different devices INFLUXDB module after 20-30 minutes of work, caused total freeze

@xoseperez
Copy link
Owner Author

There was a memory leak with the host string introduced with the mDNS resolver feature in 1.12.0. I have fixed it in the dev branch (commit 7bed35f).

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


It seems to be stable now
https://i.imgur.com/tJpNSgs.png

@xoseperez
Copy link
Owner Author

Released with 1.12.1

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


Most of my INFLUXDB enabled devices are dead now
https://i.imgur.com/j9Atl8w.png

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


[INFLUXDB] Sending to server.lan:8086

Exception (9):
epc1=0x40104814 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: sys
sp: 3ffff830 end: 3fffffb0 offset: 01a0

stack>>>
3ffff9d0: 40238a6c 000000eb 3fff3d64 40238a78
3ffff9e0: 40104a40 002552d5 3fff22c0 00000000
3ffff9f0: 3ffef840 3fff22c0 3fff1028 3fff3d64
3ffffa00: 00000000 0025519d 40203758 00000001
3ffffa10: 3fff22c0 00001f96 3fff3d64 40207600
3ffffa20: 3ffffa40 3fff36f4 3fff1028 402078f2
3ffffa30: 3fff36cc 3fff3d64 4020726c 4020771c
3ffffa40: 3fff6cf8 00000000 3fffc200 00001f96
3ffffa50: 3ffe86ec 3fff3d64 3ffffb70 402276f9
3ffffa60: 40204059 00000030 00000000 ffffffff
3ffffa70: 00000000 00000000 00000000 007f8000
3ffffa80: 0000007e 6000001c 0000002b 3ffffbe0
3ffffa90: 3ffffc10 00000008 0000002d 3fff1184
3ffffaa0: 0000003a 3fff1184 3ffffba5 00000030
3ffffab0: 401021b3 00080000 3fff3874 00000033
3ffffac0: 3fff1184 00000008 3ffffad0 40201928 <
3ffffad0: 54514d5b 53205d54 69646e65 3ffffb70
3ffffae0: 3ffffba0 401074c0 3fff3664 3ffffb80
3ffffaf0: 3ffffbb0 401074c0 3fff6ccc 00000008
3ffffb00: 3fff1184 00000031 3ffffb61 40217e68
3ffffb10: 3fff1184 00000008 3ffffb20 00000032 <
3ffffb20: 3fff1184 00000008 3ffffb30 40201928 <
3ffffb30: 54514d5b 53205d54 69646e65 6520676e
3ffffb40: 6b5f7073 625f746f 3832656d 3ffffbe0
3ffffb50: 3ffffc10 401074c0 3fff6ccc 00000008
3ffffb60: 3fff1184 00000014 3ffffba4 40217e68
3ffffb70: 00000000 00000000 00000000 00000015
3ffffb80: 3fff1184 00000008 3ffffb90 40201928 <
3ffffb90: 49414d5b 54205d4e 3a656d69 746f4e20
3ffffba0: 74657320 3fff000a 00000000 4010053d
3ffffbb0: 3fff0e84 00000033 3fff6ccc 3fff2364
3ffffbc0: 00000010 3ffffc90 00000000 4010053d
3ffffbd0: 3ffffc10 3ffffbe0 00000008 402021a8
3ffffbe0: 3ffe86cc 00000007 00000007 3ffe8f78
3ffffbf0: 00000010 3ffffc90 3ffffc90 402021a8
3ffffc00: 3ffffc50 00000001 3ffffc90 402021f7
3ffffc10: 3ffe92fc 00000016 3ffffc90 4020222d
3ffffc20: 4023299a 3ffe8f78 3fff3d24 3ffe92fc
3ffffc30: 40233807 54205d4e 3fff6ce4 0000000f
3ffffc40: 0000000a 4020541c 3ffffc90 402024a0
3ffffc50: 3ffe8f78 3fff3d24 3fff3d24 3ffe92fc
3ffffc60: 40204ca8 00000007 3ffffc90 3ffe8f78
3ffffc70: 3ffe92fc 3fff3d24 3ffe8f78 402278f9
3ffffc80: 3ffe8f78 00000007 00005028 40227d4e
3ffffc90: 3fff3d24 0000000f 00000001 3ffffd00
3ffffca0: 3fff2364 000007ab 000007ab 4010020c
3ffffcb0: 00000001 00000039 3fff6ccc 4010068c
3ffffcc0: 00000001 00000039 3fff6ccc 4021ada6
3ffffcd0: 54514d5b 53205d54 63736275 69626972
3ffffce0: 7420676e 7325206f 49502820 64252044
3ffffcf0: 3f000a29 00000019 3fff0e84 4020e25c
3ffffd00: 3ffffd20 3ffffd10 00000004 40202100
3ffffd10: 3fff2364 000007b3 000007b3 4010020c
3ffffd20: 00000001 3fff0e38 3ffffd68 4010068c
3ffffd30: 3fff3d0c 3fff0e84 3fff6d0c 40202148
3ffffd40: 00000000 3fff0e38 3ffe8880 4021b17d
3ffffd50: 00000000 00000000 00000000 00000000
3ffffd60: 00000000 00000000 00000000 00000000
3ffffd70: 00000000 40258cdc 00000003 3fff3d0c
3ffffd80: 00000001 3fff0e38 00000000 40227dfe
3ffffd90: 00000001 3fff0e38 00000001 3fff3d0c
3ffffda0: 00000001 3fff0e38 00000004 40228910
3ffffdb0: 3fff3d0c 3fff0e84 3ffe8ba0 4021f8b2
3ffffdc0: 3fff3d0c 3fff5f3c 00000000 4021f910
3ffffdd0: 3fff2364 3fff5f3c 3fff5f3c 4021f934
3ffffde0: 3ffebd2e 00000004 3fff0e84 4020f425
3ffffdf0: 3fff36c4 0001a702 40219338 4021f92c
3ffffe00: 3ffebd2e 00000004 3fff0e84 40218825
3ffffe10: 3ffeb405 00000004 3fff0e84 4020f848
3ffffe20: 40101b45 3ffeee90 3fff0e84 4020e909
3ffffe30: 3fff36c4 0076cd13 4020d9a0 40218800
3ffffe40: 3ffebc80 00000000 00000000 00000002
3ffffe50: 00000004 0076cd13 40102116 00000100
3ffffe60: 3fff0ff1 3fff0f84 3ffebc80 00000001
3ffffe70: 00000001 00007fff 000001c5 3fff0ed8
3ffffe80: 00000001 3fff3d9c 3fff0e84 4020e93c
3ffffe90: 3fffc278 40101eb0 3fff0e84 40206be8
3ffffea0: 3fff3584 3fff3494 3fff34f0 40238ec9
3ffffeb0: 3fff2db8 3fff2dc4 00000006 3fff2950
3ffffec0: 3fff3584 3fff2958 3fff2954 40206c3b
3ffffed0: 3fff3584 3fff2958 3fff2954 4023f74c
3ffffee0: 00000004 1401a8c0 00000018 00000004
3ffffef0: 00000018 00000000 3ffeb478 4010767c
3fffff00: 00000000 00000000 3ffebd30 3fff2dbc
3fffff10: 3ffebd06 3fff2dc4 3fff3d9c 4023cb3d
3fffff20: 3fff2870 3fff6384 3fff6384 3fff0490
3fffff30: 00000000 3fff3d9c 0000001c 3fff6384
3fffff40: 3ffebcf8 00000000 3fff3d9c 4023bf35
3fffff50: 0301a8c0 00000062 00000000 0000002c
3fffff60: 00000002 0000001a 4022bd7f 3ffeee90
3fffff70: 3ffebcd0 3fffdcc0 3ffeb480 3ffeb480
3fffff80: 4022bcf2 3ffeee90 00000000 3fff63d4
3fffff90: 3fffdc80 00000000 3fff3d9c 40234ca7
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
[SETTINGS] EEPROM size: 4096 bytes
[SETTINGS] Settings size: 1279 bytes
[INIT] ESPURNA 1.12.1
[INIT] [email protected]
[INIT] http://tinkerman.cat

@xoseperez
Copy link
Owner Author

Does it have to do with the previous problem? It looks like an exception while sending a message... Do you have a steps to reproduce?

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


No, it was newest build form dev branch, with memory leak patch. Something else is wrong.

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


To reproduce this effect, You must enable Influx module and send periodically msg to influxdb and wait :) nothing more. Also I noticed something very strange , when I reflashed "frozen" esp without INFLUX included it`s booting normaly and work ok, when Influx IS included esp do not even connect to wifi and freeze again. Maybe something is stored in EEPROM partition?

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


Here is serial log from "frozen" esp and we have endless loop :)

[RELAY] Saving mask: 1
[SENSOR] Error reading data from SHT3X @ I2C (0x45) (error: 3)
[FAUXMO] UDP server started
[WIFI] MODE STA -------------------------------------
[WIFI] SSID Hol_2.4GHz
[WIFI] IP 192.168.1.23
[WIFI] MAC 18:FE:34:CE:D8:10
[WIFI] GW 192.168.1.1
[WIFI] DNS 192.168.1.1
[WIFI] MASK 255.255.255.0
[WIFI] HOST ESP_CED810
[WIFI] BSSID 30:B5:C2:62:1D:05
[WIFI] CH 6
[WIFI] RSSI -67
[WIFI] ----------------------------------------------
[MDNS] OK
[MQTT] MQTT brokers found: 0
[NTP] Error: NTP server not reachable
[MQTT] Connecting to broker at 192.168.1.3:1883
[MQTT] Client ID: ESPURNA_CED810
[MQTT] QoS: 0
[MQTT] Retain flag: 1
[MQTT] Will topic: ESP_SYP_MAR/status
[FAUXMO] Search request from 192.168.1.50
[FAUXMO] UDP response for device #0 (ESP_SYP_MAR)
[MQTT] Connected!
[MQTT] Unsubscribing to # (PID 1)
[MQTT] Subscribing to ESP_SYP_MAR/relay/+/set (PID 2)
[MQTT] Subscribing to ESP_SYP_MAR/led/+/set (PID 3)
[MQTT] Subscribing to ESP_SYP_MAR/action/set (PID 4)
[MQTT] Sending ESP_SYP_MAR/app => ESPURNA (PID 1)
[MQTT] Sending ESP_SYP_MAR/version => 1.12.0 (PID 1)
[MQTT] Sending ESP_SYP_MAR/host => ESP_SYP_MAR (PID 1)
[MQTT] Sending ESP_SYP_MAR/ip => 192.168.1.23 (PID 1)
[MQTT] Sending ESP_SYP_MAR/mac => 18:FE:34:CE:D8:10 (PID 1)
[MQTT] Sending ESP_SYP_MAR/rssi => -59 (PID 1)
[MQTT] Sending ESP_SYP_MAR/uptime => 7 (PID 1)
[MQTT] Sending ESP_SYP_MAR/datetime => Not set (PID 1)
[MQTT] Sending ESP_SYP_MAR/freeheap => 20152 (PID 1)
[MQTT] Sending ESP_SYP_MAR/relay/0 => 1 (PID 1)
[MQTT] Sending ESP_SYP_MAR/vcc => 2781 (PID 1)
[MQTT] Sending ESP_SYP_MAR/status => 1 (PID 1)
[MAIN] Time: Not set
[INFLUXDB] Sending to server.lan:8086

Exception (9):
epc1=0x40104814 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: sys
sp: 3ffff830 end: 3fffffb0 offset: 01a0

stack>>>
3ffff9d0: 40237bc0 000007c8 3fff617c 40237bcc
3ffff9e0: 40104a40 00259edc 3fff2220 00000000
3ffff9f0: 3ffef7a0 3fff2220 3fff0f88 3fff617c
3ffffa00: 00000000 00259da4 40203758 00000001
3ffffa10: 3fff2220 00001f96 3fff617c 40207600
3ffffa20: 3ffffa40 3fff6eac 3fff0f88 402078f2
3ffffa30: 3fff6d0c 3fff617c 4020726c 4020771c
3ffffa40: 3fff3688 00000000 00000000 00001f96
3ffffa50: 3ffe86c0 3fff617c 3ffffb70 4022686d
3ffffa60: 00000000 00000000 00000000 00000000
3ffffa70: 00000000 00000000 00000000 00000000
3ffffa80: 7446c9c2 a9f364e5 9396300e 3ffffb20
3ffffa90: 3ffffb50 4010749c 3fff6eac 00000008
3ffffaa0: 3fff10e4 0000002f 3ffffaff 40217378
3ffffab0: 4000b5f9 00000008 00000038 00000030
3ffffac0: 3fff10e4 00000008 3ffffad0 40201928 <
3ffffad0: 54514d5b 53205d54 69646e65 3ffffb70
3ffffae0: 3ffffba0 4010749c 3fff36a4 3ffffb80
3ffffaf0: 3ffffbb0 4010749c 3fff6eac 00000008
3ffffb00: 3fff10e4 0000002e 3ffffb5e 40217378
3ffffb10: 3fff10e4 00000008 3ffffb20 0000002f <
3ffffb20: 3fff10e4 00000008 3ffffb30 40201928 <
3ffffb30: 54514d5b 53205d54 69646e65 4520676e
3ffffb40: 535f5053 4d5f5059 732f5241 3ffffbe0
3ffffb50: 3ffffc10 4010749c 3fff3674 00000008
3ffffb60: 3fff10e4 00000014 3ffffba4 40217378
3ffffb70: 00000000 00000000 00000000 00000015
3ffffb80: 3fff10e4 00000008 3ffffb90 40201928 <
3ffffb90: 49414d5b 54205d4e 3a656d69 746f4e20
3ffffba0: 74657320 3fff000a 00000000 4010053d
3ffffbb0: 3fff0de4 00000030 3fff6eac 3fff22c4
3ffffbc0: 00000010 3ffffc90 00000000 4010053d
3ffffbd0: 3ffffc10 3ffffbe0 00000008 402021a8
3ffffbe0: 3ffe86a0 00000007 00000007 3ffe8f40
3ffffbf0: 00000010 3ffffc90 3ffffc90 402021a8
3ffffc00: 3ffffc50 00000001 3ffffc90 402021f7
3ffffc10: 3ffe92bc 00000016 3ffffc90 4020222d
3ffffc20: 40231afe 3ffe8f40 3fff6cc4 3ffe92bc
3ffffc30: 4023295b 54205d4e 3fff3674 0000000f
3ffffc40: 0000000a 4020541c 3ffffc90 402024a0
3ffffc50: 3ffe8f40 3fff6cc4 3fff6cc4 3ffe92bc
3ffffc60: 40204ca8 00000007 3ffffc90 3ffe8f40
3ffffc70: 3ffe92bc 3fff6cc4 3ffe8f40 40226a6d
3ffffc80: 3ffe8f40 00000007 00004eb8 40226ec2
3ffffc90: 3fff6cc4 0000000f 00000001 3ffffd00
3ffffca0: 3fff22c4 000007fc 000007fc 4010020c
3ffffcb0: 00000001 00000036 3fff6eac 4010068c
3ffffcc0: 00000001 00000036 3fff6eac 4021a1e2
3ffffcd0: 54514d5b 53205d54 63736275 69626972
3ffffce0: 7420676e 7325206f 49502820 64252044
3ffffcf0: 3f000a29 00000016 3fff0de4 4020e25c
3ffffd00: 3ffffd20 3ffffd10 00000004 40202100
3ffffd10: 3fff22c4 000000fa 000000fa 4010020c
3ffffd20: 00000001 3fff0d98 3ffffd68 4010068c
3ffffd30: 3fff6cc4 3fff0de4 3fff369c 40202148
3ffffd40: 00000000 3fff0d98 3ffe8844 4021a49d
3ffffd50: 00000000 00000000 00000000 00000000
3ffffd60: 00000000 00000000 00000000 00000000
3ffffd70: 00000000 40257e1c 00000003 3fff6cc4
3ffffd80: 00000001 3fff0d98 00000000 40226f72
3ffffd90: 00000001 3fff0d98 00000001 3fff6cc4
3ffffda0: 00000001 3fff0d98 00000004 40227a5c
3ffffdb0: 3fff6cc4 3fff0de4 3ffe8b74 4021ebc2
3ffffdc0: 3fff6cc4 3fff5bd4 00000000 4021ec20
3ffffdd0: 3fff22c4 3fff5bd4 3fff5bd4 4021ec44
3ffffde0: 3ffebc8e 00000004 3fff0de4 4020f425
3ffffdf0: 3fff6c64 40100793 40218774 4021ec3c
3ffffe00: 3ffebc8e 00000004 3fff0de4 40217d35
3ffffe10: 3ffeb365 00000004 3fff0de4 4020f848
3ffffe20: 40101b45 3ffeedc8 3fff0de4 4020e909
3ffffe30: 3fff617c 0077cff5 4020d9a0 40217d10
3ffffe40: 3ffebbe0 00000000 00000000 4010068c
3ffffe50: 00000004 0077cff5 40102116 00000100
3ffffe60: 3fff0f51 3fff0ee4 3ffebbe0 00000001
3ffffe70: 00000001 00007fff 000000ec 3fff0e38
3ffffe80: 00000001 3fff362c 3fff0de4 4020e93c
3ffffe90: 3fffc278 40101eb0 3fff0de4 40206be8
3ffffea0: 3fff6df4 3fff6df8 3fff6df4 4023801d
3ffffeb0: 3fff2d0c 3fff2d18 00000006 3fff28b0
3ffffec0: 3fff6df4 3fff28b8 3fff28b4 40206c3b
3ffffed0: 3fff6df4 3fff28b8 3fff28b4 4023e8a4
3ffffee0: 00000004 1701a8c0 00000018 00000004
3ffffef0: 00000018 00000000 3fff35e4 40107658
3fffff00: 40230000 00000000 3ffec2d4 3fff2d10
3fffff10: 3ffebc66 3fff2d18 3fff362c 4023bc95
3fffff20: 3fff27d0 3fff6134 3fff6134 3fff03f0
3fffff30: 00000000 3fff362c 0000001c 3fff6134
3fffff40: 3ffebc58 00000000 3fff362c 4023b089
3fffff50: 0301a8c0 00000062 00000000 0000002b
3fffff60: 00000002 0000001a 4022aed7 3ffeedc8
3fffff70: 3ffebc30 3fffdcc0 3ffeb3b0 3ffeb3b0
3fffff80: 4022ae4a 3ffeedc8 00000000 3fff35ec
3fffff90: 3fffdc80 00000000 3fff362c 40233dfb
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
[SETTINGS] EEPROM size: 4096 bytes
[SETTINGS] Settings size: 1295 bytes

[INIT] ESPURNA 1.12.0
[INIT] [email protected]
[INIT] http://tinkerman.cat

[INIT] CPU chip ID: 0xCED810
[INIT] CPU frequency: 80 MHz
[INIT] SDK version: 1.5.3(aec24ac9)
[INIT] Core version: 2_3_0
[INIT] Core revision:

[INIT] Flash chip ID: 0x1640E0
[INIT] Flash speed: 40000000 Hz
[INIT] Flash mode: DIO

[INIT] Flash sector size: 4096 bytes
[INIT] Flash size (CHIP): 4194304 bytes
[INIT] Flash size (SDK): 4194304 bytes / 1024 sectors
[INIT] Firmware size: 484992 bytes / 119 sectors
[INIT] OTA size: 2658304 bytes / 649 sectors
[INIT] SPIFFS size: 0 bytes / 0 sectors
[INIT] EEPROM size: 4096 bytes / 1 sectors
[INIT] Empty space: 16384 bytes / 4 sectors

[INIT] BOARD: WEMOS_D1_MINI_RELAYSHIELD
[INIT] SUPPORT: ALEXA DEBUG_SERIAL DEBUG_TELNET DOMOTICZ HOMEASSISTANT I2C INFLUXDB MDNS NTP SCHEDULER SENSOR TELNET TERMINAL THINGSPEAK WEB
[INIT] SENSORS: SHT3X_I2C

[INIT] Last reset reason: Software/System restart
[INIT] Free heap: 27584 bytes
[INIT] Power: 2777 mV
[INIT] Power saving delay value: 10 ms

[TELNET] Listening on port 23
[WEBSERVER] Webserver running on port 80
[RELAY] Retrieving mask: 1
[RELAY] Relay #0 boot mode 0
[RELAY] #0 set to OFF
[RELAY] Number of relays: 1
[BUTTON] Number of buttons: 1
[LED] Number of leds: 1
[MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[I2C] Using GPIO4 for SDA and GPIO5 for SCL
[I2C] Device found at address 0x45
[FAUXMO] Enabled
[FAUXMO] Device 'ESP_SYP_MAR' added as #0
[THINGSPEAK] Async ENABLED, SSL DISABLED
[I2C] Address 0x45 locked
[SENSOR] SHT3X @ I2C (0x45)
[SENSOR] -> temperature:0
[SENSOR] -> humidity:0
[MAIN] Uptime: 0 seconds
[MAIN] Free heap: 21352 bytes
[MAIN] Power: 2780 mV
[MAIN] Time: Not set
[WIFI] Connecting to BSSID: FF:3F:43:04:00:00 CH: 00, RSSI: 0, SEC: OPEN, SSID: Hol_2.4GHz
[RELAY] Saving mask: 0
[FAUXMO] UDP server started
[WIFI] MODE STA -------------------------------------
[WIFI] SSID Hol_2.4GHz
[WIFI] IP 192.168.1.23
[WIFI] MAC 18:FE:34:CE:D8:10
[WIFI] GW 192.168.1.1
[WIFI] DNS 192.168.1.1
[WIFI] MASK 255.255.255.0
[WIFI] HOST ESP_SYP_MAR
[WIFI] BSSID 30:B5:C2:62:1D:05
[WIFI] CH 6
[WIFI] RSSI -59
[WIFI] ----------------------------------------------
[MDNS] OK
[MQTT] MQTT brokers found: 0
[NTP] Error: NTP server not reachable
[MQTT] Connecting to broker at 192.168.1.3:1883
[MQTT] Client ID: ESPURNA_CED810
[MQTT] QoS: 0
[MQTT] Retain flag: 1
[MQTT] Will topic: ESP_SYP_MAR/status
[MQTT] Connected!
[MQTT] Unsubscribing to # (PID 1)
[MQTT] Subscribing to ESP_SYP_MAR/relay/+/set (PID 2)
[MQTT] Subscribing to ESP_SYP_MAR/led/+/set (PID 3)
[MQTT] Subscribing to ESP_SYP_MAR/action/set (PID 4)
[MQTT] Sending ESP_SYP_MAR/app => ESPURNA (PID 1)
[MQTT] Sending ESP_SYP_MAR/version => 1.12.0 (PID 1)
[MQTT] Sending ESP_SYP_MAR/host => ESP_SYP_MAR (PID 1)
[MQTT] Sending ESP_SYP_MAR/ip => 192.168.1.23 (PID 1)
[MQTT] Sending ESP_SYP_MAR/mac => 18:FE:34:CE:D8:10 (PID 1)
[MQTT] Sending ESP_SYP_MAR/rssi => -57 (PID 1)
[MQTT] Sending ESP_SYP_MAR/uptime => 7 (PID 1)
[MQTT] Sending ESP_SYP_MAR/datetime => Not set (PID 1)
[MQTT] Sending ESP_SYP_MAR/freeheap => 20776 (PID 1)
[MQTT] Sending ESP_SYP_MAR/relay/0 => 0 (PID 1)
[MQTT] Sending ESP_SYP_MAR/vcc => 2776 (PID 1)
[MQTT] Sending ESP_SYP_MAR/status => 1 (PID 1)
[MAIN] Time: Not set
[INFLUXDB] Sending to server.lan:8086

Exception (9):
epc1=0x40104814 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: sys
sp: 3ffff830 end: 3fffffb0 offset: 01a0

stack>>>
3ffff9d0: 40237bc0 00000165 3fff3cd4 40237bcc
3ffff9e0: 40104a40 002573e3 3fff2220 00000000
3ffff9f0: 3ffef7a0 3fff2220 3fff0f88 3fff3cd4
3ffffa00: 00000000 002572ab 40203758 00000001
3ffffa10: 3fff2220 00001f96 3fff3cd4 40207600
3ffffa20: 3ffffa40 3fff345c 3fff0f88 402078f2
3ffffa30: 3fff39f4 3fff3cd4 4020726c 4020771c
3ffffa40: 3fff3ad8 00000000 00000000 00001f96
3ffffa50: 3ffe86c0 3fff3cd4 3ffffb70 4022686d
3ffffa60: 00000000 00000000 00000000 00000000
3ffffa70: 00000000 00000000 00000000 00000000
3ffffa80: 7446c9c2 a9f364e5 9396300e 3ffffb20
3ffffa90: 3ffffb50 4010749c 3fff3a94 00000008
3ffffaa0: 3fff10e4 0000002f 3ffffaff 40217378
3ffffab0: 4000b5f9 00000008 00000038 00000030
3ffffac0: 3fff10e4 00000008 3ffffad0 40201928 <
3ffffad0: 54514d5b 53205d54 69646e65 3ffffb70
3ffffae0: 3ffffba0 4010749c 3fff345c 3ffffb80
3ffffaf0: 3ffffbb0 4010749c 3fff3a94 00000008
3ffffb00: 3fff10e4 0000002e 3ffffb5e 40217378
3ffffb10: 3fff10e4 00000008 3ffffb20 0000002f <
3ffffb20: 3fff10e4 00000008 3ffffb30 40201928 <
3ffffb30: 54514d5b 53205d54 69646e65 4520676e
3ffffb40: 535f5053 4d5f5059 732f5241 3ffffbe0
3ffffb50: 3ffffc10 4010749c 3fff3aac 00000008
3ffffb60: 3fff10e4 00000014 3ffffba4 40217378
3ffffb70: 00000000 00000000 00000000 00000015
3ffffb80: 3fff10e4 00000008 3ffffb90 40201928 <
3ffffb90: 49414d5b 54205d4e 3a656d69 746f4e20
3ffffba0: 74657320 3fff000a 00000000 4010053d
3ffffbb0: 3fff0de4 00000030 3fff3a94 3fff22c4
3ffffbc0: 00000010 3ffffc90 00000000 4010053d
3ffffbd0: 3ffffc10 3ffffbe0 00000008 402021a8
3ffffbe0: 3ffe86a0 00000007 00000007 3ffe8f40
3ffffbf0: 00000010 3ffffc90 3ffffc90 402021a8
3ffffc00: 3ffffc50 00000001 3ffffc90 402021f7
3ffffc10: 3ffe92bc 00000016 3ffffc90 4020222d
3ffffc20: 40231afe 3ffe8f40 3fff3a94 3ffe92bc
3ffffc30: 4023295b 54205d4e 3fff3ac4 0000000f
3ffffc40: 0000000a 4020541c 3ffffc90 402024a0
3ffffc50: 3ffe8f40 3fff3a94 3fff3a94 3ffe92bc
3ffffc60: 40204ca8 00000007 3ffffc90 3ffe8f40
3ffffc70: 3ffe92bc 3fff3a94 3ffe8f40 40226a6d
3ffffc80: 3ffe8f40 00000007 00005128 40226ec2
3ffffc90: 3fff3a94 0000000f 00000001 3ffffd00
3ffffca0: 3fff22c4 00000179 00000179 4010020c
3ffffcb0: 00000001 00000036 3fff3a94 4010068c
3ffffcc0: 00000001 00000036 3fff3a94 4021a1e2
3ffffcd0: 54514d5b 53205d54 63736275 69626972
3ffffce0: 7420676e 7325206f 49502820 64252044
3ffffcf0: 3f000a29 00000016 3fff0de4 4020e25c
3ffffd00: 3ffffd20 3ffffd10 00000004 40202100
3ffffd10: 3fff22c4 000000b2 000000b2 4010020c
3ffffd20: 00000001 3fff0d98 3ffffd68 4010068c
3ffffd30: 3fff3a7c 3fff0de4 3fff345c 40202148
3ffffd40: 00000000 3fff0d98 3ffe8844 4021a49d
3ffffd50: 00000000 00000000 00000000 00000000
3ffffd60: 00000000 00000000 00000000 00000000
3ffffd70: 00000000 40257e1c 00000003 3fff3a7c
3ffffd80: 00000001 3fff0d98 00000000 40226f72
3ffffd90: 00000001 3fff0d98 00000001 3fff3a7c
3ffffda0: 00000001 3fff0d98 00000004 40227a5c
3ffffdb0: 3fff3a7c 3fff0de4 3ffe8b74 4021ebc2
3ffffdc0: 3fff3a7c 3fff5f24 00000000 4021ec20
3ffffdd0: 3fff22c4 3fff5f24 3fff5f24 4021ec44
3ffffde0: 3ffed59e 00000004 3fff0de4 4020f425
3ffffdf0: 3fff3cfc 40100793 40218774 4021ec3c
3ffffe00: 3ffed59e 00000004 3fff0de4 40217d35
3ffffe10: 3ffeb365 00000004 3fff0de4 4020f848
3ffffe20: 40101b45 3ffeedc8 3fff0de4 4020e909
3ffffe30: 3fff3a24 007746a0 4020d9a0 40217d10
3ffffe40: 3ffebc10 00000000 00000000 00000002
3ffffe50: 00000004 007746a0 40102116 00000100
3ffffe60: 3fff0f51 3fff0ee4 3ffebc10 00000001
3ffffe70: 00000001 00007fff 00000168 3fff0e38
3ffffe80: 00000001 3fff3a0c 3fff0de4 4020e93c
3ffffe90: 3fffc278 40101eb0 3fff0de4 40206be8
3ffffea0: 3fff393c 3fff3a7c 3fff3ad8 4023801d
3ffffeb0: 3fff2d0c 3fff2d18 00000006 3fff28b0
3ffffec0: 3fff393c 3fff28b8 3fff28b4 40206c3b
3ffffed0: 3fff393c 3fff28b8 3fff28b4 4023e8a4
3ffffee0: 00000004 1701a8c0 00000018 00000004
3ffffef0: 00000018 00000000 3ffeb400 40107658
3fffff00: 40230000 00000000 3ffed5a0 3fff2d10
3fffff10: 3ffed576 3fff2d18 3fff3a0c 4023bc95
3fffff20: 3fff27d0 3fff636c 3fff636c 3fff03f0
3fffff30: 00000000 3fff3a0c 0000001c 3fff636c
3fffff40: 3ffed568 00000000 3fff3a0c 4023b089
3fffff50: 0301a8c0 00000062 00000000 0000002c
3fffff60: 00000002 0000001a 4022aed7 3ffeedc8
3fffff70: 3ffed540 3fffdcc0 3ffeb408 3ffeb408
3fffff80: 4022ae4a 3ffeedc8 00000000 3fff63dc
3fffff90: 3fffdc80 00000000 3fff3a0c 40233dfb
3fffffa0: 40000f49 3fffdab0 3fffdab0 40000f49
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
[SETTINGS] EEPROM size: 4096 bytes
[SETTINGS] Settings size: 1295 bytes

@xoseperez
Copy link
Owner Author

@fork04 The problem seems to be the idbSend calls in the heartbeat method. It is called from the _mqttCallback in the mqtt.ino module, which is called when MQTT gets connected. Since the current InfluxDB implementation uses a sync client it just chokes in the callback... not a good idea.

Two options here: use a flag to send the heartbeat instead of doing it from the callback (easy and safer, should do it anyway) or rework the influxDB client to be async (harder but a good idea). So I would eventually do both but will start with the flag thing to prevent the crash.

@xoseperez
Copy link
Owner Author

Fixed the callback in the dev branch: commit a662083. @fork04 Can you test it?

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


Thank you for the investigation, testing in progress :)

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


I can`t build dev 8488e7d because issue #445

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


After many compilation attempts on windows I decided to go on virtualized Debian 9 and finally, I have stable build enviroment :) After 2h testing of newly builded 1.12.2B it seems be ok. Tomorrow I will deploy 1.12.2B on 5-6 devices for further tests.

@xoseperez
Copy link
Owner Author

Good choice :)
Looking forward to see the results of your tests.

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


I have good news, after 24 hours of testing everything is ok !
espurna.png

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


it`s fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant