<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Derek,<br>
<br>
this may be the kind of watchdog trigger currently left on my
mystery list.<br>
<br>
The crash debug info (you can also check "boot" for this) tells you
the watchdog was triggered by the DukTape task, and the event system
had been processing the "ticker.1" event scripts for 59 seconds.<br>
<br>
That may be caused either by a bug in your script leading to a loop,
or (more likely) by another, higher priority task running a busy
loop and eating all available CPU cycles.<br>
<br>
Please check your script for a potential loop, but I've seen similar
crashes without event scripts on my module. I.e. no event scripts
installed, but watchdog triggered during a ticker.1 handling in the
EventScript function -- that lead me to think that may be a bug in
the filesystem layer, as the function always scans the script
directories. But the WDT also gets triggered while the scripting
system is in another context.<br>
<br>
That's why I currently think this must be some networking related
issue.<br>
<br>
DukTape runs at priority level 3 on core 1. Higher priority tasks on
core 1 are:<br>
<ul>
<li>OVMS Console (pri 5)<br>
</li>
<li>OVMS NetMan (pri 5)</li>
<li>OVMS Events (pri 8 -- unlikely, as waiting for DukTape here)</li>
<li>OVMS Vehicle (pri 10, vehicle CAN processing)</li>
<li>tiT (LwIP, pri 18)</li>
<li>ipc1 (system core IPC, pri 24)<br>
</li>
</ul>
<br>
I currently run a test build on my module having the OVMS Events
task running at pri=19. That's a wild guess we may need to react to
some network event to stop the LwIP task from busy looping. The
system event handler is placed at pri=20 so would normally get CPU
time prior to the LwIP task. No issues with that test build up to
now, but has only been running for three days now, so not conclusive
as a counter measure.<br>
<br>
As you see this issue frequently, please try raising the Events task
priority from 8 to 19. That's set in ovms_events.cpp, line 163.<br>
<br>
<tt> xTaskCreatePinnedToCore(EventLaunchTask, "OVMS Events", 8192,
(void*)this, <u><b>19</b></u>, &m_taskid, CORE(1));</tt><br>
<br>
Please report if that helps.<br>
<br>
Thanks & regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 11.08.20 um 12:41 schrieb Derek
Caudwell:<br>
</div>
<blockquote type="cite"
cite="mid:CAKUcfWHjMjqJmGUu1rn4PRbEBootrenvPmUPUSsLfLUzYtmPUg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi all,<br>
</div>
<div><br>
</div>
<div>Firstly, thank you Michael for your patience and help in
getting the static ip changes/framework to a point they could
be incorporated into the master. </div>
<div><br>
</div>
<div>With the edge build I appear to be getting frequent
crashes, am I correct in interpreting from the crash logs that
these are caused by DukTape? I currently have a simple js in <span style="color:rgb(0,0,0);white-space:pre-wrap">/store/events/system.wifi.sta.disconnected/10-test.js to see how js/events engine works.</span></div>
<div>
<pre style="color:rgb(0,0,0);white-space:pre-wrap">2020-08-11 22:02:37 NZST I (178142) ovms-server-v2: Send MP-0 h1,-166,*-OVM-DebugCrash,0,2592000,3.2.014-42-g6c884ce/ota_0/edge (build idf v3.3.2-881-g22d636b Aug 10 2020 00:01:35),23,Crash,12,12,23,0,abort(),0,,0x4008e627 0x4008e8c1 0x400e6edc 0x40083f6a ,6,Task watchdog,ticker.1,EventScript,59,OVMS DukTape</pre>
</div>
<div><br>
</div>
<div><span style="color:rgb(0,0,0);white-space:pre-wrap">2020-08-11 22:07:06 NZST I (21202) ovms-server-v2: Send MP-0 h1,-10,*-OVM-DebugCrash,0,2592000,3.2.014-42-g6c884ce/ota_0/edge (build idf v3.3.2-881-g22d636b Aug 10 2020 00:01:35),25,Crash,12,12,25,0,abort(),0,,0x4008e627 0x4008e8c1 0x400e6edc 0x40083f6a ,6,Task watchdog,ticker.10,EventScript,60,IDLE1|OVMS DukTape</span> </div>
<div><br>
</div>
<div>Kind regards</div>
<div>Derek</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>