<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Perhaps set to 4096, then stress the system. SSH, webserver, etc.<div class=""><br class=""></div><div class="">Then, have a look at ‘module tasks’ and see the maximum it got to.</div><div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2 Mar 2018, at 2:00 PM, Greg D. <<a href="mailto:gregd2350@gmail.com" class="">gregd2350@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    Yeah, stack size is 2560.  Tried bumping it to 4k, and that fixed
    it.  Backing down, it seems like just bumping it from 2560 to 2816
    is sufficient to prevent the crash.<br class="">
    <br class="">
    What value should I set it to?<br class="">
    <br class="">
    Greg<br class="">
    <br class="">
    <br class="">
    <div class="moz-cite-prefix">Mark Webb-Johnson wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:2D4CECFE-58E7-4422-9943-6DCC18751834@webb-johnson.net" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
      I think that is the TCP/IP task.
      Maybe CONFIG_TCPIP_TASK_STACK_SIZE?
      <div class=""><br class="">
      </div>
      <div class="">Have a look in menuconfig and see what you have
        those stack sizes set to (/STACK to show them all). A ‘module
        tasks’ can show you the current running values. My tiT is
        3072bytes in size (but max level is 696 bytes).</div>
      <div class=""><br class="">
      </div>
      <blockquote style="margin: 0 0 0 40px; border: none; padding:
        0px;" class="">
        <div class="">CONFIG_TCPIP_TASK_STACK_SIZE=2560</div>
      </blockquote>
      <div class=""><br class="">
      </div>
      <div class="">Regards, Mark<br class="">
        <div class=""><br class="">
          <blockquote type="cite" class="">
            <div class="">On 2 Mar 2018, at 12:55 PM, Greg D. <<a href="mailto:gregd2350@gmail.com" class="" moz-do-not-send="true">gregd2350@gmail.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">Hi folks,<br class="">
                <br class="">
                I just updated to the latest (7 commits), and am having
                trouble with a<br class="">
                stack overflow in a task named "tiT".  Not sure if
                that's real, or if<br class="">
                the task name has been corrupted.<br class="">
                <br class="">
                My startup script enables both simcom and wifi.  Turning
                off wifi<br class="">
                doesn't prevent the crash.  Turning off simcom does (I
                get all the way<br class="">
                to the server connecting), so it's apparently somehow
                related to the<br class="">
                modem and ppp stack.<br class="">
                <br class="">
                Thoughts?<br class="">
                <br class="">
                Greg<br class="">
                <br class="">
                <br class="">
                W (10404) wifi: incorrect scan type: 1073533448<br class="">
                I (11404) simcom: State timeout, transition to 2<br class="">
                I (11404) simcom: State: Enter PoweringOn state<br class="">
                I (11404) simcom: Power Cycle<br class="">
                I (11894) housekeeping: System considered stable, auto
                init re-enabled<br class="">
                I (17034) simcom: State: Enter PoweredOn state<br class="">
                I (36404) simcom: State: Enter MuxStart state<br class="">
                I (36404) gsm-mux: Start MUX<br class="">
                I (36414) gsm-mux: Channel #0 is open<br class="">
                I (36424) gsm-mux: Channel #1 is open<br class="">
                I (36424) gsm-mux: Channel #2 is open<br class="">
                I (36434) gsm-mux: Channel #3 is open<br class="">
                I (36434) gsm-mux: Channel #4 is open<br class="">
                I (37404) simcom: State: Enter NetWait state<br class="">
                I (47484) simcom: CREG Network Registration:
                RegisteredRoaming<br class="">
                I (48404) simcom: State: Enter NetStart state<br class="">
                I (49494) simcom: PPP Connection is ready to start<br class="">
                I (50404) simcom: State: Enter NetMode state<br class="">
                I (50404) gsm-ppp: Initialising...<br class="">
                W (50404) wifi: incorrect scan type: 1073533448<br class="">
                OVMS > ***ERROR*** A stack overflow in task tiT has
                been detected.<br class="">
                abort() was called at PC 0x4008f024 on core 1<br class="">
                0x4008f024: vApplicationStackOverflowHook at<br class="">
                /home/greg/esp/esp-idf/components/esp32/./panic.c:648<br class="">
                <br class="">
                <br class="">
                Backtrace: 0x4008ee34:0x3ffca170 0x4008f00b:0x3ffca190<br class="">
                0x4008f024:0x3ffca1b0 0x4008b52c:0x3ffca1d0
                0x4008d534:0x3ffca1f0<br class="">
                0x4008d4ea:0x3ffb15dc<br class="">
                0x4008ee34: invoke_abort at<br class="">
                /home/greg/esp/esp-idf/components/esp32/./panic.c:648<br class="">
                <br class="">
                0x4008f00b: abort at
                /home/greg/esp/esp-idf/components/esp32/./panic.c:648<br class="">
                <br class="">
                0x4008f024: vApplicationStackOverflowHook at<br class="">
                /home/greg/esp/esp-idf/components/esp32/./panic.c:648<br class="">
                <br class="">
                0x4008b52c: vTaskSwitchContext at<br class="">
/home/greg/esp/esp-idf/components/freertos/./tasks.c:4837<br class="">
                <br class="">
                0x4008d534: _frxt_dispatch at<br class="">
/home/greg/esp/esp-idf/components/freertos/./portasm.S:406<br class="">
                <br class="">
                0x4008d4ea: _frxt_int_exit at<br class="">
/home/greg/esp/esp-idf/components/freertos/./portasm.S:206<br class="">
                <br class="">
                <br class="">
                Rebooting...<br class="">
                <br class="">
                _______________________________________________<br class="">
                OvmsDev mailing list<br class="">
                <a href="mailto:OvmsDev@lists.teslaclub.hk" class="" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br class="">
                <a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>