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

Device Crash after alot cmnd Requests #1793

Closed
reloxx13 opened this issue Feb 4, 2018 · 4 comments
Closed

Device Crash after alot cmnd Requests #1793

reloxx13 opened this issue Feb 4, 2018 · 4 comments
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@reloxx13
Copy link
Contributor

reloxx13 commented Feb 4, 2018

Heya,

since 5.11.1i (maybe before, but not with stable 5.11.1) the device is crashing over ~115 request with
http://SonoffIP/cm?cmnd=Status%200

It does not matter how fast you do those requests, its always crashing after that amount of requests.

i reproduce this with just spaming ctrl+r.

i noticed this by sonweb with a refrshtime of 15sec its crashing the devices after 1-2h.

Restart Reason says only "Software Watchdog".

i tried to reduce sleep from 150ms to 50ms but no change.

Heya,

since 5.11.1i (maybe before, but not with stable 5.11.1) the device is crashing over ~115 request with
http://SonoffIP/cm?cmnd=Status%200

It does not matter how fast you do those requests, its always crashing after that amount of requests.

i reproduce this with just spaming ctrl+r.

i noticed this by sonweb with a refrshtime of 15sec its crashing the devices after 1-2h.

Restart Reason says only "Software Watchdog".

i tried to reduce sleep from 150ms to 50ms but no change.

{
"Status": {
"Module": 1,
"FriendlyName": "sOnOff-1",
"Topic": "sonoff",
"ButtonTopic": "0",
"Power": 1,
"PowerOnState": 3,
"LedState": 1,
"SaveData": 1,
"SaveState": 1,
"ButtonRetain": 0,
"PowerRetain": 0
},
"StatusPRM": {
"Baudrate": 115200,
"GroupTopic": "sonoffs",
"OtaUrl": "http://192.168.178.XX:XX/data/firmwares/sonoff-minimal.bin",
"Uptime": 0,
"Sleep": 50,
"BootCount": 13,
"SaveCount": 23,
"SaveAddress": "FA000"
},
"StatusFWR": {
"Version": "5.11.1i",
"BuildDateTime": "2018.02.04 18:43:21",
"Boot": 31,
"Core": "2_4_0",
"SDK": "2.1.0(deb1901)"
},
"StatusLOG": {
"SerialLog": 0,
"WebLog": 4,
"SysLog": 0,
"LogHost": "domus1",
"LogPort": 514,
"SSId1": "XXX",
"SSId2": "XXX",
"TelePeriod": 300,
"SetOption": "00000001"
},
"StatusMEM": {
"ProgramSize": 457,
"Free": 544,
"Heap": 23,
"ProgramFlashSize": 1024,
"FlashSize": 1024,
"FlashMode": 3
},
"StatusNET": {
"Hostname": "sOnOff-1",
"IPAddress": "192.168.178.XX",
"Gateway": "192.168.178.1",
"Subnetmask": "255.255.255.0",
"DNSServer": "192.168.178.1",
"Mac": "2C:3A:E8:XX:XX:XX",
"Webserver": 2,
"WifiConfig": 4
},
"StatusTIM": {
"UTC": "Sun Feb 04 19:35:18 2018",
"Local": "Sun Feb 04 20:35:18 2018",
"StartDST": "Sun Mar 25 02:00:00 2018",
"EndDST": "Sun Oct 28 03:00:00 2018",
"Timezone": 1
},
"StatusSNS": {
"Time": "2018.02.04 20:35:18",
"Switch1": "ON"
},
"StatusSTS": {
"Time": "2018.02.04 20:35:18",
"Uptime": 0,
"Vcc": 3.496,
"POWER": "ON",
"Wifi": {
"AP": 1,
"SSId": "XX",
"RSSI": 100,
"APMac": "34:31:C4:XX:XX:XX"
}
}
}

@curzon01
Copy link
Contributor

curzon01 commented Feb 5, 2018

Try the same with same version you faulty testet but compile it using lib 2.3.0.

@reloxx13
Copy link
Contributor Author

reloxx13 commented Feb 5, 2018

5.11.1e working fine with 2.40 (20h runtime now).

@arendst
Copy link
Owner

arendst commented Feb 6, 2018

Pls try 5.11.1i with 2.3.0 too.

Edit: No need. I found the problem. Love Chrome Developer Tools. Testing...

arendst added a commit that referenced this issue Feb 6, 2018
Fix Software Watchdog restart around log roll-over (#1793)
@arendst arendst added bug Type - Confirmated Bug fixed Result - The work on the issue has ended labels Feb 6, 2018
@reloxx13
Copy link
Contributor Author

reloxx13 commented Feb 7, 2018

7h uptime, confirm fixed 👍

@reloxx13 reloxx13 closed this as completed Feb 7, 2018
arendst added a commit that referenced this issue Feb 9, 2018
5.12.0 20180209
* Change library PubSubClient.h define MQTT_MAX_PACKET_SIZE from 512 to
1000 for Home Assistant  support
* Change relation of define MESSZ being dependent on PubSubClient.h
define MQTT_MAX_PACKET_SIZE
* Change command color parameter input checks to less strict for Home
Assistant support
* Change command Ina219Mode into command Sensor13
* Change commands HlwPCal, HlwUCal and HlwICal to PowerCal, VoltageCal
and CurrentCal to be used for both Pow and S31 calibration
* Change commands HlwPSet, HlwUSet and HlwISet to PowerSet, VoltageSet
and CurrentSet to be used for both Pow and S31 calibration
* Change uptime from hour to second resulting in a display of
123T13:45:21 where 123 is days
* Change module name Wemos D1 mini into Generic (#1220)
* Change HTML from width=100% to style=width:100% supporting HTML5
(#1358)
* Change OSWATCH_RESET_TIME (Blocked loop) from 30 to 120 seconds to
allow slow networks (#1556)
* Change WIFI_MANAGER_SEC into WIFI_CONFIG_SEC (#1616)
* Change function pointers code to save code space and memory (#1683)
* Change webserver argument processing gaining 5k code space (#1705)
* Change weblog memory usage (#1730, #1793, #1819)
* Update TasmotaSerial library to 1.1.0
* Update language files Italian (#1594), Dutch (#1723) and Spanish
(#1722)
* Fix Non-English JSON temperature unit attachement
* Fix Arilux RF induced exception by moving interrupt handler to iram on
non ESP8266/Arduino lib v2.3.0
* Fix truncated command names and wrong response for DomoticzSwitchIdx
(#1571)
* Fix %-sign issue as printf escape character in Humidity and Sonoff SC
(#1579)
* Fix DS18B20 temperature JSON decimal dot (#1561)
* Fix Energy JSON message (#1621)
* Fix IRSend parameter translation (#1636)
* Fix TSL2561 device detection (#1644, #1825)
* Fix BME680 teleperiod resistance measuring (#1647)
* Fix Energy Monitoring Energy Today and Energy Total reading after
restart (#1648)
* Fix IRReceive Data value (#1663)
* Fix Energy Monitoring Energy Period roll-over (#1688)
* Fix compiler warnings (#1774)
* Fix command PWM response if no PWM channel is configured (#1783)
* Add locale Decimal Separator to Web sensor page
* Add ColorTemperature to light status message
* Add command PowerOnState option 5 which inverts PulseTime and allows
for delayed always on after power on
* Add OtaMagic two step Web server OTA upgrade using filename-minimal
image if OTA free space is too small
* Add support for PMS5003 and PMS7003 particle concentration sensor
* Add command SetOption21 1 to allow Energy Monitoring when power is off
on Sonoff Pow and Sonoff S31 (#1420)
* Add Chinese language file (#1551)
* Add French language file (#1561)
* Add Spanish language file (#1589)
* Add HTTP Allow Cross Origin removed from ESP8266/Arduino lib v2.4.0
(#1572)
* Add Home Assistant MQTT Discovery for switch and light to be enabled
by command SetOption19 1 (#1534) or define
HOME_ASSISTANT_DISCOVERY_ENABLE in user_config.h (#1685)
* Add command State to retrieve device state information (same data as
teleperiod state and status 11 in slightly different JSON format)
* Add optional login to Webserver AP mode (#1587, #1635)
* Add command Sensor15 2 to start MHZ19(B) Zero Point Calibration
(#1643)
* Add support for Sonoff S31 Smart Socket with Power Consumption
Detection (#1626)
* Add command SetOption20 to allow update of Dimmer/Color/Ct without
turning power on (#1719, #1741)
* Add NTP sync time slot based on chip id (#1773)
* Add cursor pointer to web button (#1836)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
Fix Software Watchdog restart around log roll-over (arendst#1793)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

3 participants