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

Multi-level Rule Trigger Crashes Device #8757

Closed
10 of 15 tasks
meingraham opened this issue Jun 22, 2020 · 15 comments
Closed
10 of 15 tasks

Multi-level Rule Trigger Crashes Device #8757

meingraham opened this issue Jun 22, 2020 · 15 comments
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@meingraham
Copy link
Collaborator

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.
Tasmota reboots when a rule triggers that uses a multi-level JSON trigger.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in the docs
  • Searched the problem in the forum
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): Sonoff Basic
  • Tasmota binary firmware version number used: 8.3.1.6 tasmota.bin
    • Pre-compiled
    • Self-compiled
      • IDE / Compiler used: _____
  • Flashing tools used: OTA migration
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:

{"GPIO0":{"17":"Button1"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"21":"Relay1"},"GPIO13":{"56":"Led1i"},"GPIO14":{"0":"None"},"GPIO15":{"0":"None"},"GPIO16":{"0":"None"}}
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:

{"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":44,"Free":467,"Rules":"ON StatusNET#IPAddress DO Var1 %value% ENDON"}
{"Rule2":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
{"Rule3":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}
  • Provide the output of this command: Status 0:
  STATUS 0 output here:

STATUS = {"Status":{"Module":1,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"sonoff-lr_chairs","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":0,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/tasmota.bin","RestartReason":"Exception","Uptime":"0T01:11:58","StartupUTC":"2020-06-22T13:28:08","Sleep":50,"CfgHolder":4617,"BootCount":6,"BCResetTime":"2020-06-22T01:27:13","SaveCount":30,"SaveAddress":"F6000"}}
STATUS2 = {"StatusFWR":{"Version":"8.3.1.6(428b6dd-tasmota)","BuildDateTime":"2020-06-21T22:02:15","Boot":31,"Core":"2_7_1","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"340/699"}}
STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["mySSID",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008108","2805C8000100060000005A00000000000000","000000C8","00006000"]}}
STATUS4 = {"StatusMEM":{"ProgramSize":591,"Free":412,"Heap":23,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"14405E","FlashFrequency":40,"FlashMode":3,"Features":["00000809","8FDAE797","043683A1","000000CD","010013C0","C000F981","00004024"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37","Sensors":"1,2,3,4,5,6"}}
STATUS5 = {"StatusNET":{"Hostname":"myTasmota-1234","IPAddress":"192.168.1.123","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.1.1","Mac":"12:34:56:78:90:AB","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
STATUS6 = {"StatusMQT":{"MqttHost":"openhabianpi","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_7890AB","MqttUser":"openhabian","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30}}
STATUS7 = {"StatusTIM":{"UTC":"2020-06-22T14:40:06","Local":"2020-06-22T10:40:06","StartDST":"2020-03-08T02:00:00","EndDST":"2020-11-01T02:00:00","Timezone":99,"Sunrise":"early","Sunset":"late"}}
STATUS10 = {"StatusSNS":{"Time":"2020-06-22T10:40:06"}}
STATUS11 = {"StatusSTS":{"Time":"2020-06-22T10:40:06","Uptime":"0T01:11:58","UptimeSec":4318,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"OFF","Wifi":{"AP":1,"SSId":"mySSID","BSSId":"CD:EF:12:34:56:78","Channel":6,"RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:09"}}}
STATUS12 = {"StatusSTK":{"Exception":9,"Reason":"Exception","EPC":["4024d265","00000000","00000000"],"EXCVADDR":"4027db1d","DEPC":"00000000","CallChain":["4027db12","4024d004","40000f49","40000f49","40000e19","40105a39","40105a3f","4010000d","402674a8","40267459","4024c5b9","40101cf5","40101cf5","40245a6e","402141fc","40216d94","401019d8","40101c77","402459c5","402459e4","402173ba","4024a410","4024ce1a","4027db11","4027db11","40101090","40102ab1","40102680","4010591b","40104af6","40104f67"]}}
  • Provide the output of the Console log output when you experience your issue; if applicable:
    (Please use weblog 4 for more debug information)
  Console output here:


TO REPRODUCE

Steps to reproduce the behavior:

Rule1 ON StatusNET#IPAddress DO Var1 %value% ENDON

Rule1

When Status 5 is executed,

CMD: Status 5
MQT: stat/myTasmota/STATUS5 = {"StatusNET":{"Hostname":"myTasmota-1234","IPAddress":"192.168.1.21","Gateway":"192.168.1.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.1.1","Mac":"12:34:56:78","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}

Tasmota reboots.

I also tried STATUS5#StatusNET#IPAddress. In this case it doesn't reboot but the rule also does not trigger. So I think this trigger is not correctly specified.

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.
Return the value of the specified trigger in Var1 and not restart.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@sfromis
Copy link
Contributor

sfromis commented Jun 22, 2020

After the restart, on Version 8.3.1.3(2b327c9-tasmota)-2_7_1 2020-06-12T18:01:09 I see:
{"RestartReason":{"Exception":0,"Reason":"Exception","EPC":["4027d52b","00000000","00000000"],"EXCVADDR":"4027d535","DEPC":"00000000","CallChain":["4027d529","4027d52a","4024cb08","40000e19","40105a35","40105a3b","4010000d","40266f8c","40266f3d","4010108c","401061d5","4000050c","40248db4","40248db4","40101cf1","40245576","402140bc","40216c60","401019d4","40101c73","402454cd","402454ec","40217282","40249f10","4024c91e","4027d529","4027d529","4010108c","40102aad","4010267c","40105917"]}}
And the rule was disabled.

@arendst
Copy link
Owner

arendst commented Jun 22, 2020

Exception 0 is normally a power issue.
Exception 9 is an alignment issue either caused by puya flash or bad compile option. There have been made some changes to the alignment recently to save flash space. Disabling this compile option might solve your exception 9 issue.

Other than that I cannot reproduce as mine just keeps on running:

18:03:36 CMD: rule1
18:03:36 SRC: Serial
18:03:36 CMD: Group 0, Index 1, Command "RULE", Data ""
18:03:36 MQT: stat/wemos4/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":44,"Free":467,"Rules":"ON StatusNET#IPAddress DO Var1 %value% ENDON"}
18:03:42 CMD: status 5
18:03:42 SRC: Serial
18:03:42 CMD: Group 0, Index 1, Command "STATUS", Data "5"
18:03:42 MQT: stat/wemos4/STATUS5 = {"StatusNET":{"Hostname":"wemos4","IPAddress":"192.168.2.223","Gateway":"192.168.2.254","Subnetmask":"255.255.255.0","DNSServer":"192.168.2.27","Mac":"5C:CF:7F:83:BB:10","Webserver":2,"WifiConfig":5,"WifiPower":17.0}}
18:03:42 RUL: STATUSNET#IPADDRESS performs "Var1 192.168.2.223"
18:03:42 SRC: Rule
18:03:42 CMD: Group 0, Index 1, Command "VAR", Data "192.168.2.223"
18:03:42 MQT: stat/wemos4/RESULT = {"Var1":"192.168.2.223"}

@meingraham
Copy link
Collaborator Author

Mine is a Sonoff Basic that I flashed long ago with 6.x and migrated recently by Reset 6, flashing 7.2, Reset 6, and then 8.1 via file upload (with intermediate minimal for each), Reset 6 again. Then updating to 8.3.1.6 via web OTA, then restoring the configuration manually.

I was using it today as a testing device. But it normally runs in my house on a lamp and has been in service for almost 2 years.

Without the rule active, I can send Status 5 with no issue. In fact, my openHAB does this once a day to all my devices to capture network information. The crash only occurs when the rule is enabled... so when the StatusSNS triggers the rule.

@sfromis - what kind of device are you using? And how was it flashed?

@sfromis
Copy link
Contributor

sfromis commented Jun 22, 2020

My test device was a Sonoff S20, flashed a long time ago, and repeatedly OTA upgraded.

Just did the same test on a NodeMCU, flashed using the builtin USB/serial interface, and also upgraded a few times. Again:
INFO3 = {"RestartReason":{"Exception":9,"Reason":"Exception","EPC":["4024cd69","00000000","00000000"],"EXCVADDR":"4027d535","DEPC":"00000000","CallChain":["4027d52a","4024cb08","40000f49","40000f49","40000e19","40105a35","40105a3b","40238d3c","4010000d","40243f18","402453cc","40246718","40266f8c","40266f3d","4024c0bd","40101cf1","40101cf1","40245576","402140bc","40216c60","401019d4","40101c73","402454cd","402454ec","40217282","40249f10","4024c91e","4010108c","401061d5","4000050c","4027d52a"]}}

Does not seem like a power issue is among the more likely explanations.
Used a precompiled build Version 8.3.1.3(2b327c9-tasmota)-2_7_1 Ok options?
Flash Chip Id: 0x16405E (not sure how to verify Puya or not)

@sfromis
Copy link
Contributor

sfromis commented Jun 22, 2020

The logo on the flash chip of the S20 looks like "XTX", id 0x14405E
Also fails on a H801, flash chip id 0x1440EF

@meingraham
Copy link
Collaborator Author

Same flash chip ID on my Sonoff Basic.

@arendst
Copy link
Owner

arendst commented Jun 22, 2020

Just reproduced on a sonoff basic too ending in exception 0. Must be a power issue while scanning the rule. Nice issue!

@meingraham
Copy link
Collaborator Author

Also, the crash is immediate. I turned on WebLog 4 and then entered Status 5. The command is not echoed and there is no log output. I even had a second browser window open to the Console to monitor the output. Nothing until the restart messages began logging in the window,

@sfromis
Copy link
Contributor

sfromis commented Jun 22, 2020

Here's what I see with SerialLog 4 on the NodeMCU:

18:49:38 SRC: WebConsole from 192.168.86.39
18:49:38 CMD: Group 0, Index 1, Command "STATUS", Data "5"
18:49:38 MQT: t155nmcu/stat/STATUS5 = {"StatusNET":{"Hostname":"t155nmcu","IPAddress":"192.168.86.155","Gateway":"192.168.86.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.86.1","Mac":"11:22:33:44:55:66","Webserver":2,"WifiConfig":4,"WifiPower":17.0}}
18:49:38 RUL: STATUSNET#IPADDRESS performs "Var1 192.168.86.155"
18:49:38 SRC: Rule
18:49:38 CMD: Group 0, Index 1, Command "VAR", Data "192.168.86.155"
18:49:38 MQT: t155nmcu/stat/VAR = {"Var1":"192.168.86.155"}

Exception (9):
epc1=0x4024cd69 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4027d535 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffedb0 end: 3fffffb0 offset: 0190
3fffef40:  00000000 4027d52a 3fffeff0 4024cb08  
3fffef50:  40000f49 40000f49 3fffdab0 40000f49  
3fffef60:  40000e19 00000002 0030209c 00000000  
3fffef70:  00000000 aa55aa55 000000ed 40105a35  
3fffef80:  40105a3b 0009359c 00000000 0c5e2446  
3fffef90:  4010000d ad745fb2 f0d12a64 b15556f7  
3fffefa0:  40266f8c 3fffef3c 40266f3d 3ffffd68  
3fffefb0:  3ffff0c0 3ffff0b0 0000000c 3ffe834c  
3fffefc0:  feefeffe 00000001 00000000 feefeffe  
3fffefd0:  00003210 feefeffe feefeffe ffffffff  
3fffefe0:  3ffff5a8 3ffe834c 00000003 4024c0bd  
3fffeff0:  3ffff0ed 00000020 00000001 ffff0208  
3ffff000:  3ffff0ec 00000002 feefeffe 00000000  
3ffff010:  3fff350c 00000020 00000000 40101cf1  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe 00000000 40101cf1  
3ffff040:  feefeffe feefeffe feefeffe 00000000  
3ffff050:  00000000 3ffff14d 3ffff5a8 40245576  
3ffff060:  feefeffe 00000000 3ffff5b4 3ffff140  
3ffff070:  3ffff0a0 3ffff148 3ffff140 402140bc  
3ffff080:  feefeffe feefeffe feefeffe 3ffff140  
3ffff090:  3ffff148 3ffff584 3ffff580 40216c60  
3ffff0a0:  00000009 3ffff14d 0000000c 3ffff610  
3ffff0b0:  000031e8 0000063d 0000063d 401019d4  
3ffff0c0:  00000000 00000009 3ffff580 00000000  
3ffff0d0:  00000000 3ffff130 00000020 40101c73  
3ffff0e0:  0000000a 3ffff584 3ffff5a8 ffffffec  
3ffff0f0:  7fffffff 3ffff590 3ffff5b4 402454cd  
3ffff100:  3ffff580 3ffff130 00000000 402454ec  
3ffff110:  3ffff580 3ffff130 00000000 40217282  
3ffff120:  40249f10 3ffff130 00000400 0000004c  
3ffff130:  3ffff120 3ffff16c 31524156 feefef00  
3ffff140:  3ffff120 3ffff15c 41544144 32393100  
3ffff150:  3836312e 2e36382e 00353531 00000000  
3ffff160:  3ffff148 00000002 3ffff14d 00000000  
3ffff170:  3ffff138 00000007 3ffff140 feefeffe  
3ffff180:  feefeffe feefeffe feefeffe feefeffe  
3ffff190:  feefeffe feefeffe feefeffe feefeffe  
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe  

3ffff1b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1c0:  feefeffe feefeffe feefeffe 00000001  
3ffff1d0:  00000000 00000001 3ffff2b0 4024c91e  
3ffff1e0:  feefeffe 4027d529 feefeffe feefeffe  
3ffff1f0:  feefeffe feefeffe feefeffe 4027d529  

3ffff200:  00000000 4027d52a 3ffff2b0 4024cb08  
3ffff210:  feefeffe feefeffe feefeffe feefeffe  
3ffff220:  feefeffe 00000001 fe3020fe feefeffe  
3ffff230:  feefeffe feefeffe feefeffe feefeffe  
3ffff240:  feefeffe feefeffe feefeffe feefeffe  
3ffff250:  feefeffe feefeffe feefeffe feefeffe  
3ffff260:  feefeffe feefeffe feefeffe feefeffe  
3ffff270:  3ffff380 3ffff370 0000000c 3ffe834c  
3ffff280:  40102aad 00000001 00000000 4010267c  
3ffff290:  00002a90 40105917 3ffecd20 ffffffff  
3ffff2a0:  00000002 00000000 00000010 00000000  
3ffff2b0:  00000002 00000000 00000010 00000000  
3ffff2c0:  00001898 00000002 feefeffe 00000000  
3ffff2d0:  00000000 80000000 00000000 0000001b  
3ffff2e0:  00001000 00000010 00001000 00000000  
3ffff2f0:  3ffff450 00000000 3ffff450 00000000  
3ffff300:  3ffff460 00000000 3ffff460 4024c91e  
3ffff310:  00000003 3ffff403 0000000a 00000000  
3ffff320:  00000003 00000000 0000000a 00000032  
3ffff330:  3ffff460 00000032 3ffff460 4024c91e  
3ffff340:  00000000 3fff132e 3ffff370 0000001c  
3ffff350:  00003000 3ffff5d7 00003000 00000000  
3ffff360:  3ffff4c0 00000000 3ffff4c0 4024c91e  
3ffff370:  00000032 3ffff463 00000010 00000002  
3ffff380:  00000000 00000002 3ffff460 00000032  
3ffff390:  3ffff4c0 00000032 3ffff4c0 4024c91e  
3ffff3a0:  3ffff420 3fff132e 3ffff3d0 3ffe8a4a  
3ffff3b0:  00000000 3ffe8a4c 3ffff460 4024c854  
3ffff3c0:  3ffff4c0 3fff132e 3ffff420 4024d380  

3ffff3d0:  00000032 0000003d 00302073 00000001  
3ffff3e0:  00000000 00000001 3ffff4c0 4024c91e  
3ffff3f0:  3ffff463 40289e1b 00000000 00000000  
3ffff400:  00fff560 00000000 00000000 40289e1b  
3ffff410:  00000000 40289e1c 3ffff4c0 4024cb08  
3ffff420:  00000000 00000032 00000000 00000000  
3ffff430:  00000032 00000e88 00302073 4024c91e  
3ffff440:  3ffff640 40287702 00000097 00000000  
3ffff450:  3fff3278 3ffe834c 00000040 4024c0bd  
3ffff460:  0024f54d 4028691e 00000002 ffff0208  
3ffff470:  3ffff510 0000003f 00000000 00000000  
3ffff480:  3ffff590 3ffff580 00000024 3ffe834c  
3ffff490:  00000032 00000001 00000000 4024f944  
3ffff4a0:  3fff5258 3fff524d 00000000 00000024  
3ffff4b0:  00003150 3ffe834c 00000fa0 4024c0bd  
3ffff4c0:  00001c10 00000000 00000117 00000000  
3ffff4d0:  3fff350c 00000030 00000020 00000000  
3ffff4e0:  000031b0 00000010 00000020 40101caa  
3ffff4f0:  3fff350c 00000030 00000000 00000000  
3ffff500:  3fff350c 00000030 00000020 40101caa  
3ffff510:  343a3831 38333a39 00000000 40101cf1  
3ffff520:  6d6e3535 732f7563 00000000 40101cf1  
3ffff530:  00000000 00000000 00000000 00000000  
3ffff540:  00000000 00000000 00000000 00000000  
3ffff550:  00000000 00000000 00000000 00000000  
3ffff560:  00000000 00000000 00000000 00000000  
3ffff570:  00000000 00000000 00000000 00000000  
3ffff580:  54415400 454e5355 80ff0054 4024560a  
3ffff590:  54415400 454e5355 80000054 3ffff600  
3ffff5a0:  00003118 00000623 00000623 401019d4  
3ffff5b0:  80000022 3fff6b00 3ffff610 3ffff610  
3ffff5c0:  0000002c 00000000 00000020 40101c73  
3ffff5d0:  0000002f 00000009 00000000 000000ff  
3ffff5e0:  0000000c 3ffff580 3ffff670 402454cd  
3ffff5f0:  0000002c 00000000 0000270f 402454ec  
3ffff600:  0000002c 00000000 0000270f 4022243b  
3ffff610:  45524200 00004b41 8054514d 00000aa8  
3ffff620:  00000000 00000aa3 00000000 00000000  
3ffff630:  00000005 3ffff6d7 00000003 00000019  
3ffff640:  3fff6b00 0022002f 80fff6e8 3fff5500  
3ffff650:  000c000f 80ff1e98 3fff6b00 0013001f  
3ffff660:  000030e0 0000061c 0000061c 401019d4  
3ffff670:  3fff6a00 0000002f 8000000c 0000001c  
3ffff680:  3fff2330 00000000 00000020 40101c73  

3ffff690:  00000000 00000001 3ffff6e8 00000026  
3ffff6a0:  00000016 3fff6abc 3ffff6e8 402454cd  
3ffff6b0:  40286b33 3ffff6e8 00000003 402454ec  
3ffff6c0:  3fff2330 00000000 00000000 402224fe  
3ffff6d0:  00000000 56fef6ea 80005241 44227b00  
3ffff6e0:  22617461 8027003a 3fff6a00 0022002f  
3ffff6f0:  8027e2d4 00000008 3ffff6f0 40205f96  
3ffff700:  00000018 0000000a 4027ba74 4022251c  
3ffff710:  4027d4c8 00000020 00000010 40222a2b  
3ffff720:  3ffff6d9 00000000 00000010 4020e824  
3ffff730:  00000010 00000024 00000010 00000001  
3ffff740:  00000001 3ffff861 3ffff871 4020e84c  
3ffff750:  00000001 3ffff861 3ffff871 40221e13  
3ffff760:  646e6d63 3531742f 636d6e35 665f6375  
3ffff770:  00002f62 00000000 0000000c 402441c2  
3ffff780:  3ffe8a46 38333a39 3ffff760 3ffff790  
3ffff790:  00000031 00000026 44415049 3ffff880  
3ffff7a0:  3ffff880 00000000 00000003 40217c10  
3ffff7b0:  3ffff820 3ffff810 00000008 00353531  
3ffff7c0:  343a3831 38333a39 00000020 3ffff8d0  
3ffff7d0:  0000000a 00000525 3ffff830 4024c184  
3ffff7e0:  3ffff800 3ffff7f0 0000000c 3ffff880  
3ffff7f0:  3ffff880 56000000 74007261 72656d00  
3ffff800:  006e0000 00000000 00000000 3f000000  
3ffff810:  3ffff864 00000013 3ffff840 40282afa  
3ffff820:  0000000e 00000000 00000000 000000c0  
3ffff830:  3ffff7f7 00000000 3ffff8b0 4021bbad  
3ffff840:  000021d0 0000043a 0000043a 401019d4  
3ffff850:  3ffff880 3ffff874 3ffff8b4 3ffff8d0  
3ffff860:  00001758 000002eb 000002eb 401019d4  
3ffff870:  5241562f 3fff0000 3ffff8d0 3ffff8d0  
3ffff880:  0000002c 00000000 00000020 40101c73  
3ffff890:  0000002f 3ffff8c2 0000270f 402454ec  
3ffff8a0:  00000026 00000000 3ffff930 402454cd  
3ffff8b0:  0000002c 00000000 0000270f 402454ec  
3ffff8c0:  0000002c 00000000 0000270f 4022243b  
3ffff8d0:  4e555300 25544553 80540000 37313300  
3ffff8e0:  00254300 80003837 00204600 00000000  
3ffff8f0:  80000001 3fff5b00 000c000f 80000000  
3ffff900:  3fff6300 00db00df 80fff9a8 3fff6400  
3ffff910:  0013001f 80ff0035 3fff5300 0013001f  
3ffff920:  000028c0 00000518 00000518 401019d4  
3ffff930:  3fff5100 0000002f 80310000 0000001c  
3ffff940:  3fff2330 00000001 00000020 40101c73  
3ffff950:  00000001 3ffff8d0 3ffff9a8 00000014  
3ffff960:  00000010 000000db 3ffff9a8 402454cd  
3ffff970:  00000018 3ffff9a8 00000003 402454ec  
3ffff980:  3fff2330 00000000 00000000 402224fe  
3ffff990:  3ffffa00 53fff9f0 55544154 40003553  
3ffff9a0:  00000011 4024a350 3fff6200 00db00df  
3ffff9b0:  80001c10 00000382 00000382 401019d4  
3ffff9c0:  00000018 0000000a 4027ba74 4022251c  
3ffff9d0:  00000002 00000004 00000020 40222a2b  
3ffff9e0:  3ffff99d 3ffff9f0 00000004 4020e824  
3ffff9f0:  303a3438 3fff1d32 3ffffbec 3fff5134  
3ffffa00:  00000002 00000004 00000000 4020e84c  
3ffffa10:  3fff3056 3fff1f30 3ffffb50 4022388c  
3ffffa20:  3fff5334 00000002 00000004 3ffffbb0  
3ffffa30:  00000000 00000031 00000000 00000000  
3ffffa40:  00000031 0000003c 3f302073 00000001  
3ffffa50:  00000000 00000001 3ffffb30 4024c91e  
3ffffa60:  3ffffad3 40289e2b 00000000 00000001  
3ffffa70:  00fffba0 00000001 3ffffba0 40289e2b  
3ffffa80:  00000000 40289e2c 00000000 4024cb08  
3ffffa90:  3ffffc00 3ffffbd0 00000010 3ffe834c  
3ffffaa0:  00000031 00000002 00000000 4024d380  
3ffffab0:  00000001 a0000000 00000084 00000013  
3ffffac0:  00000000 00000013 3ffffba0 4024c91e  
3ffffad0:  3ffffbbc 40289d14 00000003 ffff0208  
3ffffae0:  3ffffb80 0000003f 00000000 40289d14  
3ffffaf0:  00000000 40289d27 3ffffba0 4024cb08  
3ffffb00:  00000002 00000001 00000000 00000000  
3ffffb10:  00000001 00000013 3f302073 00000001  
3ffffb20:  00000000 3ffe834c 0000000a 4024c0bd  
3ffffb30:  3ffffbbc 00000000 0a0d2235 40248161  
3ffffb40:  3ffffbbc 00000008 00000003 4024c100  
3ffffb50:  3ffffc00 3ffffbd0 00000008 0000003c  
3ffffb60:  3ffffc90 3ffffc80 00000004 3ffe834c  
3ffffb70:  00000001 00000013 00000000 402441b8  
3ffffb80:  343a3831 38333a39 444d4320 00000001  
3ffffb90:  00000000 3ffe834c 00000412 4024c0bd  
3ffffba0:  3fff15fd 20646e61 000003fe ffff0208  
3ffffbb0:  302e3700 00000400 800d2235 3fff5300  
3ffffbc0:  0011001f 80fffbd0 3fff5100 000c000f  
3ffffbd0:  80fffc70 3fff5b00 000d000f 80ff132e  
3ffffbe0:  3fff4e00 000c000f 8000000c 3fff5500  
3ffffbf0:  000e000f 80000001 4024a310 0156a8c0  
3ffffc00:  4024a310 00ffffff 4024a310 0156a8c0  
3ffffc10:  4024a310 9b56a8c0 3ffffdc1 4024c100  
3ffffc20:  00000005 00000000 00000005 40248161  
3ffffc30:  343a3831 38333a39 00000001 3fff5334  
3ffffc40:  3ffffcf0 3ffffcc0 00000008 4024c184  
3ffffc50:  3fff5bac 3fff4e4c 3fff55ec 402813a0  
3ffffc60:  00000000 4bc6a7f0 00011488 3ffffc80  
3ffffc70:  40281248 40281384 3fff1e98 40203492  
3ffffc80:  4028123c 66664f00 40101506 3ced9168  
3ffffc90:  00000000 3ffffdb1 3ffffdc1 00000001  
3ffffca0:  00000000 3ffffdb1 3ffffdc1 40221dea  
3ffffcb0:  646e6d63 3531742f 636d6e35 665f6375  
3ffffcc0:  3f002f62 00000010 3ffffd20 3fff132e  
3ffffcd0:  00000000 00000000 0000000c 402441b8  
3ffffce0:  3ffe8a46 38333a39 3ffffcc0 3ffffcf0  
3ffffcf0:  00000031 00000026 0000000a 3ffffe10  
3ffffd00:  00000001 3ffffe1c 00000003 40217c10  
3ffffd10:  3ffffd80 3ffffd70 00000008 3ffffe10  
3ffffd20:  343a3831 38333a39 00000020 40101c73  
3ffffd30:  00001c10 00000382 00000382 401019d4  
3ffffd40:  3ffffdd8 5324a350 75746174 00000073  
3ffffd50:  00000000 4bc6a7f0 000114b1 00000b68  
3ffffd60:  00000000 00000000 00000000 ffffffff  
3ffffd70:  000114b1 00000b68 40246a54 3fffefa0  
3ffffd80:  00000000 00000002 3ffffddc 4024796a  

3ffffd90:  000114b1 ffffffff 3fff5b74 40237bba  
3ffffda0:  0000012c 3fff3abc 3ffffddc 402454cd  
3ffffdb0:  3ffffe10 00000007 3ffe834c 3ffffe10  
3ffffdc0:  000000c8 00000001 3fff0054 40238189  
3ffffdd0:  3f003200 0000005f 8000002f 40231f00  
3ffffde0:  4024a0a0 00000000 00001388 4024bc24  
3ffffdf0:  3fff3ae0 3fff5b74 00000009 4024b4d8  
3ffffe00:  00000001 00000021 3fff3abc 40232aea  
3ffffe10:  3f003333 3fff3ae0 8000000a 74617473  
3ffffe20:  35207375 88fffe00 00000000 40245e30  
3ffffe30:  3fff3b6c 00000002 3ffffe60 402454cd  
3ffffe40:  3ffffe60 3fff3abc 00000001 40211e64  
3ffffe50:  00000001 00000001 00000001 40234a44  
3ffffe60:  3f003200 3ffffec0 80fffea0 40211e64  
3ffffe70:  00000001 40248cc8 3fff454c 40248c6a  
3ffffe80:  3ffffec0 3fff3afc 3fff454c 401000e1  
3ffffe90:  3fff454c 3fff3afc 3fff454c 40211e9c  
3ffffea0:  00736300 8072a82d 80410000 00000000  
3ffffeb0:  3fff454c 3fff3afc 3fff3abc 402354ae  
3ffffec0:  0073632f 3fff1f30 83feff2c 3fff5e00  
3ffffed0:  0000007f 80003263 0001147e 3fff33c4  
3ffffee0:  3fff3afc 00000000 4bc6a7f0 00000001  
3ffffef0:  00000001 3fff454c 40101506 6353f7ce  
3fffff00:  00000000 3fff5b74 3fff3abc 3fff33c4  
3fffff10:  00000001 3fff3ae0 3fff3abc 402355c7  
3fffff20:  4024a0a0 00000000 00001388 00000000  
3fffff30:  00000000 3fff5b74 3fff34d4 00000000  
3fffff40:  00000005 00000000 00000005 40235666  
3fffff50:  00000000 00000000 4bc6a7f0 4023568c  
3fffff60:  007a1200 55b85312 40101506 39db22d0  
3fffff70:  00000000 00000030 00000031 4020e875  
3fffff80:  3fffdad0 00000000 0001147e 4022faf6  
3fffff90:  3fffdad0 00000000 3fff3384 3fff33c4  
3fffffa0:  3fffdad0 00000000 3fff3384 40246b78  
<<<stack<<<

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

load 0x4010f000, len 3456, room 16 
tail 0
chksum 0x84
csum 0x84
va5432625
~ld
00:00:00 CFG: Loaded from flash at F4, Count 39

@ascillato2 ascillato2 added the bug Type - Confirmated Bug label Jun 22, 2020
@arendst
Copy link
Owner

arendst commented Jun 22, 2020

Great fun! In addition to exception 9 I now also see Hardware Watchdogs on both sonoff and wemos.

20:45:11 CMD: status 5
20:45:11 SRC: WebConsole from 192.168.2.1
20:45:11 CMD: Group 0, Index 1, Command "STATUS", Data "5"
20:45:11 MQT: stat/wemos4/STATUS5 = {"StatusNET":{"Hostname":"wemos4","IPAddress":"192.168.2.223","Gateway":"192.168.2.254","Subnetmask":"255.255.255.0","DNSServer":"192.168.2.27","Mac":"5C:CF:7F:83:BB:10","Webserver":2,"WifiConfig":5,"WifiPower":17.0}}
20:45:11 RUL: STATUSNET#IPADDRESS performs "Var1 192.168.2.223"
20:45:11 SRC: Rule
20:45:11 CMD: Group 0, Index 1, Command "VAR", Data "192.168.2.223"
20:45:11 MQT: stat/wemos4/RESULT = {"Var1":"192.168.2.223"}

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

wdt reset
load 0x4010f000, len 3456, room 16 
tail 0
chksum 0x84
csum 0x84
v52b3e5b7
~ld
00:00:00 CFG: Loaded from flash at FA, Count 574

My my my how did we get here?

@meingraham
Copy link
Collaborator Author

Interesting that the rule does what's intended (per both of your logs) and then falls off a cliff.

I wonder if the string (the 4 octet period delimited value) assigned to the Var has anything to do with the behavior? I'm just grasping at straws obviously.

@arendst
Copy link
Owner

arendst commented Jun 22, 2020

Any straw is welcome. Personally I think it has someting to do with recently introduced possibility to have a rule trigger on a status line.

Investigating...

arendst added a commit that referenced this issue Jun 22, 2020
Fix rules related exception or watchdog by adding a rules mutex solving possible rule loops as in case of Var/Mem/Add/Sub/Mult and Scale (#8757)
@arendst
Copy link
Owner

arendst commented Jun 22, 2020

I think I've solved it. Give it a try!

@arendst arendst added the fixed Result - The work on the issue has ended label Jun 22, 2020
@sfromis
Copy link
Contributor

sfromis commented Jun 22, 2020

My NodeMCU no longer crashed on 8.3.1.6(610f1ce-tasmota) 👍

@meingraham
Copy link
Collaborator Author

My Sonoff Basic on 8.3.1.6(610f1ce-tasmota) works as expected.

Thanks for the quick repair ;-)

Mike

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

4 participants