Hi Michael,

I've changed my image a few times since the last crash, too.  But, it's occurred again.  Here's what I get.  Interestingly, it only seems to happen when the ovms module is in the car, not sitting on my desk.  So, perhaps a timing issue introduced by the processor load of CAN traffic?  This crash was a web fetch, but it also occurred when I telnet'd into the module, about a half dozen characters into typing a command.  At that time, the HUD was running, too.  (The command was intended to turn off ext12v power, in order to disable it.)  I didn't capture that crash's console traffic, but the symptoms and timing seemed about the same.  There's a several second delay between the 200 error and the crash.

I (147503) webserver: HTTP GET /shell
I (154423) wifi: bcn_timout,ap_probe_send_start
I (156923) wifi: ap_probe_send over, resett wifi status to disassoc
I (156923) wifi: state: run -> init (1)
I (156923) wifi: n:6 0, o:6 0, ap:6 2, sta:6 0, prof:6
I (156933) netmanager: Interface priority is pp3 (10.170.146.142/255.255.255.255 gateway 10.64.64.64)
I (156933) netmanager: WIFI client down (with MODEM up): reconfigured for MODEM priority
I (156933) time: Network was reconfigured: restarting SNTP client
I (156933) ovms-server-v2: Network was reconfigured: disconnect, and reconnect in 10 seconds
I (156933) ovms-server-v2: Status: Network was reconfigured: disconnect, and reconnect in 10 seconds
I (156943) esp32wifi: STA disconnected with reason 200
I (157363) ovms-server-v2: Status: Disconnected
I (176423) ovms-server-v2: Connection is tmc.openvehicles.com:6867 ROADSTER_834
I (176423) ovms-server-v2: Status: Connecting...Guru Meditation Error: Core  1 panic'ed (StoreProhibited)
. Exception was unhandled.
Core 1 register dump:
PC      : 0x400f8ae2  PS      : 0x00060230  A0      : 0x800f8c84  A1      : 0x3ffeb080 
A2      : 0x3fff6b40  A3      : 0x3fffc888  A4      : 0x00000001  A5      : 0x00000000 
A6      : 0x00000014  A7      : 0x3ffb10b8  A8      : 0x000000a2  A9      : 0x3ffeb060 
A10     : 0x3ffeb080  A11     : 0x00000040  A12     : 0x3f40cbfc  A13     : 0xb5420000 
A14     : 0x73ffc000  A15     : 0x00000000  SAR     : 0x00000001  EXCCAUSE: 0x0000001d 
EXCVADDR: 0x0000000a  LBEG    : 0x40147b54  LEND    : 0x40147b73  LCOUNT  : 0x00000000 

Backtrace: 0x400f8ae2:0x3ffeb080 0x400f8c81:0x3ffeb0b0 0x400f6b0b:0x3ffeb0f0 0x400f6dce:0x3ffeb120 0x400f80ad:0x3ffeb150 0x400f8359:0x3ffeb190 0x400f4b39:0x3ffeb1e0 0x400e7346:0x3ffeb200 0x400e7385:0x3ffeb250

Rebooting...



greg@linux-0rpb:~/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3> ~/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-addr2line -pfiaC -e build/ovms3.elf 0x400f8ae2:0x3ffeb080 0x400f8c81:0x3ffeb0b0 0x400f6b0b:0x3ffeb0f0 0x400f6dce:0x3ffeb120 0x400f80ad:0x3ffeb150 0x400f8359:0x3ffeb190 0x400f4b39:0x3ffeb1e0 0x400e7346:0x3ffeb200 0x400e7385:0x3ffeb250
0x400f8ae2: mg_send_dns_query at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f8c81: mg_resolve_async_eh at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f6b0b: mg_call at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f6dce: mg_if_connect_cb at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f80ad: mg_mgr_handle_conn at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f8359: mg_socket_if_poll at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400f4b39: mg_mgr_poll at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/mongoose/mongoose/mongoose.c:11373
0x400e7346: OvmsNetManager::MongooseTask() at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_netmanager.cpp:382
0x400e7385: MongooseRawTask(void*) at /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_netmanager.cpp:370
greg@linux-0rpb:~/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3>

Hope this helps,

Greg


Michael Balzer wrote:
Greg,

I just realized your crash like my latest one also had that STA disconnect reason 200 entry. So maybe that's not memory related.

I can't get a usable addr2line output from your backtrace, I think my .elf file is too different from yours (lots of excluded components here).

Can you provide that using your build?

Thanks,
Michael


Am 27.03.2018 um 04:23 schrieb Greg D.:
Hi folks,

The module has been sitting on my desk, simply minding its own business.  During dinner I thought I'd poke at the webserver a bit, connecting to the module via the home wifi network (i.e. not the AP side).  That's usually pretty reliable.  Wasn't this time...

The "failed to allocate socket" message suggests the crash was a down-stream result of being out of memory, but posting here to verify that.  Wonder if the error's recovery is possible, or do we simply need the extra memory so it doesn't happen in the first place.

Greg


I (81600417) housekeeping: Local time: Tue Mar 27 00:39:37 2018
I (81692297) webserver: HTTP GET /
I (81692327) webserver: HTTP GET /assets/style.css
I (81692337) webserver: HTTP GET /assets/script.js
I (81692337) webserver: HTTP GET /apple-touch-icon.png
I (81693477) webserver: HTTP GET /home
I (81693477) webserver: HTTP GET /apple-touch-icon.png
I (81710387) webserver: HTTP GET /
I (81710427) webserver: HTTP GET /assets/style.css
I (81710577) webserver: HTTP GET /home
I (81716207) webserver: HTTP GET /status
W (81716357) net: Error: Failed to allocate socket
I (81722557) wifi: bcn_timout,ap_probe_send_start
I (81725057) wifi: ap_probe_send over, resett wifi status to disassoc
I (81725067) wifi: state: run -> init (1)
I (81725067) wifi: n:6 0, o:6 0, ap:6 2, sta:6 0, prof:6
I (81725067) netmanager: Interface priority is pp3 (10.170.146.142/255.255.255.255 gateway 10.64.64.64)
I (81725067) netmanager: WIFI client down (with MODEM up): reconfigured for MODEM priority
I (81725067) time: Network was reconfigured: restarting SNTP client
I (81725077) ovms-server-v2: Network was reconfigured: disconnect, and reconnect in 10 seconds
I (81725077) ovms-server-v2: Status: Network was reconfigured: disconnect, and reconnect in 10 seconds
I (81725077) esp32wifi: STA disconnected with reason 200
I (81725127) ovms-server-v2: Status: Disconnected
I (81744417) ovms-server-v2: Connection is tmc.openvehicles.com:6867 ROADSTER_834
I (81744417) ovms-server-v2: Status: Connecting...
OVMS> Guru Meditation Error: Core  1 panic'ed (StoreProhibited)
. Exception was unhandled.
Core 1 register dump:
PC      : 0x400f8a9a  PS      : 0x00060a30  A0      : 0x800f8c3c  A1      : 0x3ffeafa0 
A2      : 0x3fffb1d4  A3      : 0x3fffbd04  A4      : 0x00000001  A5      : 0x00000000 
A6      : 0x00000014  A7      : 0x3ffb10b8  A8      : 0x000000a2  A9      : 0x3ffeaf80 
A10     : 0x3ffeafa0  A11     : 0x00000040  A12     : 0x3f40cb7c  A13     : 0x8c860000 
A14     : 0x16f35000  A15     : 0x00000000  SAR     : 0x00000001  EXCCAUSE: 0x0000001d 
EXCVADDR: 0x0000000a  LBEG    : 0x40147a40  LEND    : 0x40147a5f  LCOUNT  : 0x00000000 

Backtrace: 0x400f8a9a:0x3ffeafa0 0x400f8c39:0x3ffeafd0 0x400f6ac3:0x3ffeb010 0x400f6d86:0x3ffeb040 0x400f8065:0x3ffeb070 0x400f8311:0x3ffeb0b0 0x400f4af1:0x3ffeb100 0x400e735a:0x3ffeb120 0x400e7399:0x3ffeb170

Rebooting..

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26


_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev