[Ovmsdev] v3 hardware disconnecting from v2 server
Mark Webb-Johnson
mark at webb-johnson.net
Wed Jan 31 13:28:41 HKT 2018
Something weird going on here:
> 0x401222ee: OvmsMetrics::DeregisterListener(char const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_metrics.cpp:299
My line 299 of ovms_metrics.cpp is the ending curly brace on OvmsMetrics::InitFloat. A good 20+ lines above DeregisterListener (which starts at line 319).
Can you send me your ovms_metrics.cpp and sdkconfig?
Regards, Mark.
> On 31 Jan 2018, at 1:20 PM, Greg D. <gregd2350 at gmail.com> wrote:
>
> Crashes here, without fail (2 out of 2 tries). Latest bits from
> Master. I had log level set to verbose.
>
> Greg
>
> OVMS > server v2 status
> OVMS V2 login successful, and crypto channel established
> OVMS > server v2 stop
> Stopping OVMS Server V2 connection (oscv2)
> Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
> . Exception was unhandled.
> Register dump:
> PC : 0x401222ee PS : 0x00060830 A0 : 0x8014dac3
> A1 : 0x3ffdf310
> 0x401222ee: OvmsMetrics::DeregisterListener(char const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_metrics.cpp:299
>
> A2 : 0x3ffe9474 A3 : 0x3f417638 A4 : 0x3ffe3fe8
> A5 : 0x951ac700
> A6 : 0x3ffe88ec A7 : 0x3ffe88ec A8 : 0x80122305
> A9 : 0x3ffdf2f0
> A10 : 0x3ffe92bc A11 : 0x3ffe92e8 A12 : 0x3ffdf330
> A13 : 0x3ffae8d8
> A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000008
> EXCCAUSE: 0x0000001c
> EXCVADDR: 0x951ac704 LBEG : 0x400014fd LEND : 0x4000150d
> LCOUNT : 0xfffffff5
>
> Backtrace: 0x401222ee:0x3ffdf310 0x4014dac0:0x3ffdf340
> 0x4014db62:0x3ffdf380 0x4014d0df:0x3ffdf3a0 0x401273d6:0x3ffdf3c0
> 0x401274c9:0x3ffdf3f0 0x401274bb:0x3ffdf420 0x401274bb:0x3ffdf450
> 0x401274f1:0x3ffdf480 0x4011e894:0x3ffdf4a0 0x40129af5:0x3ffdf4c0
> 0x40129b5c:0x3ffdf520 0x4011e90b:0x3ffdf560 0x4011e922:0x3ffdf580
> 0x40128855:0x3ffdf5a0 0x40124ac5:0x3ffdf5d0 0x40124cbd:0x3ffdf600
> 0x401286fd:0x3ffdf620 0x4012870c:0x3ffdf640 0x4011ddbd:0x3ffdf660
> 0x401222ee: OvmsMetrics::DeregisterListener(char const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_metrics.cpp:299
>
> 0x4014dac0: OvmsServerV2::~OvmsServerV2() at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/ovms_server_v2/src/ovms_server_v2.cpp:1616
>
> 0x4014db62: OvmsServerV2::~OvmsServerV2() at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/ovms_server_v2/src/ovms_server_v2.cpp:1625
>
> 0x4014d0df: ovmsv2_stop(int, OvmsWriter*, OvmsCommand*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/ovms_server_v2/src/ovms_server_v2.cpp:1659
> (discriminator 1)
>
> 0x401273d6: OvmsCommand::Execute(int, OvmsWriter*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_command.cpp:83
>
> 0x401274c9: OvmsCommand::Execute(int, OvmsWriter*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_command.cpp:83
>
> 0x401274bb: OvmsCommand::Execute(int, OvmsWriter*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_command.cpp:83
>
> 0x401274bb: OvmsCommand::Execute(int, OvmsWriter*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_command.cpp:83
>
> 0x401274f1: OvmsCommandApp::Execute(int, OvmsWriter*, int, char const*
> const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_command.cpp:83
>
> 0x4011e894: Execute(microrl*, int, char const* const*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_shell.cpp:47
>
> 0x40129af5: new_line_handler at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/microrl/./microrl.c:620
>
> 0x40129b5c: microrl_insert_char at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/microrl/./microrl.c:668
>
> 0x4011e90b: OvmsShell::ProcessChar(char) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_shell.cpp:70
>
> 0x4011e922: OvmsShell::ProcessChars(char const*, int) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_shell.cpp:77
> (discriminator 2)
>
> 0x40128855: ConsoleAsync::HandleDeviceEvent(void*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./console_async.cpp:169
>
> 0x40124ac5: OvmsConsole::Poll(unsigned int, void*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_console.cpp:150
>
> 0x40124cbd: OvmsConsole::Service() at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_console.cpp:130
> (discriminator 1)
>
> 0x401286fd: ConsoleAsync::Service() at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./console_async.cpp:80
>
> 0x4012870c: non-virtual thunk to ConsoleAsync::Service() at ??:?
>
> 0x4011ddbd: TaskBase::Task(void*) at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./task_base.cpp:156
>
>
> Rebooting...
>
>
>
> Mark Webb-Johnson wrote:
>>
>>> Stopping the v2 server causes a panic even when it has connected
>>> right after boot. The below stack trace is from current master.
>>> Looking at the code where it panics, it seems like the
>>> MetricCallbackList is corrupted somehow.
>>
>> Trying to repeat this, but can’t. Here is what I get:
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
More information about the OvmsDev
mailing list