[Ovmsdev] One more WiFi mode off crash

Michael Balzer dexter at expeedo.de
Wed Jan 17 01:07:13 HKT 2018


Greg,

note my note ;) on the earlier fix: there are still lots of simple esp asserts in the Wifi driver.

The standard esp check just panics if the assertion fails, we basically should replace all calls to it by graceful error handling.

Regards,
Michael


Am 16.01.2018 um 01:15 schrieb Greg D:
> I managed to get another WiFi related crash...  As before, this was an
> attempt to turn it off right after the system starts (just before the first
> scan completed with the usual "incorrect scan type" message), but doing so
> at that time doesn't always seem to cause the crash.
>
> This is on the old 2.1 environment, if that matters.
>
> Greg
>
>
> OVMS > wifi mode off
> Stopping wifi station...
> ESP_ERROR_CHECK failed: esp_err_t 0x3002 at 0x400d8e2d
> 0x400d8e2d:
> _ZN9esp32wifi12EventTimer10ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPv
> at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/./esp32wifi.cpp:453
> (discriminator 1)
>
> file:
> "/home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/./esp32wifi.cpp"
> line 453
> func: void esp32wifi::EventTimer10(std::__cxx11::string, void*)
> expression: esp_wifi_scan_start(&scanConf, false)
>
> Backtrace: 0x40088a70:0x3ffc9380 0x40088ded:0x3ffc93a0
> 0x400d8e2d:0x3ffc93c0 0x400da3f8:0x3ffc9400 0x40104a59:0x3ffc9440
> 0x40104cb2:0x3ffc9470 0x4010474d:0x3ffc94c0 0x40104887:0x3ffc9570
> 0x40087df6:0x3ffc9590 0x40087e29:0x3ffc95b0 0x40087f34:0x3ffc95e0
> 0x40088a70: invoke_abort at
> /home/greg/esp/esp-idf/components/esp32/./panic.c:519
>
> 0x40088ded: _esp_error_check_failed at
> /home/greg/esp/esp-idf/components/esp32/./panic.c:531
>
> 0x400d8e2d:
> _ZN9esp32wifi12EventTimer10ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPv
> at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/components/esp32wifi/./esp32wifi.cpp:453
> (discriminator 1)
>
> 0x400da3f8:
> _ZNKSt12_Mem_fn_baseIM9esp32wifiFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvELb1EEclIJS6_S7_EvEEvPS0_DpOT_
> at
> /home/greg/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/functional:600
>  (inlined by)
> _ZNSt5_BindIFSt7_Mem_fnIM9esp32wifiFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvEEPS1_St12_PlaceholderILi1EESD_ILi2EEEE6__callIvJOS7_OS8_EJLj0ELj1ELj2EEEET_OSt5tupleIJDpT0_EESt12_Index_tupleIJXspT1_EEE
> at
> /home/greg/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/functional:1074
>
>  (inlined by)
> _ZNSt5_BindIFSt7_Mem_fnIM9esp32wifiFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvEEPS1_St12_PlaceholderILi1EESD_ILi2EEEEclIJS7_S8_EvEET0_DpOT_
> at
> /home/greg/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/functional:1133
>
>  (inlined by)
> _ZNSt17_Function_handlerIFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvESt5_BindIFSt7_Mem_fnIM9esp32wifiFvS5_S6_EEPSA_St12_PlaceholderILi1EESF_ILi2EEEEE9_M_invokeERKSt9_Any_dataOS5_OS6_
> at
> /home/greg/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/functional:1871
>
>
> 0x40104a59:
> _ZNKSt8functionIFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPvEEclES5_S6_
> at
> /home/greg/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/functional:2271
>
> 0x40104cb2:
> _ZN10OvmsEvents11SignalEventENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPv
> at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_events.cpp:144
>
> 0x4010474d: _ZN12Housekeeping7Ticker1Ev at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_housekeeping.cpp:184
>
> 0x40104887: _Z19HousekeepingTicker1Pv at
> /home/greg/greg/ovms/Open-Vehicle-Monitoring-System-3-master/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/main/./ovms_housekeeping.cpp:57
>
> 0x40087df6: prvProcessExpiredTimer at
> /home/greg/esp/esp-idf/components/freertos/./timers.c:839
>
> 0x40087e29: prvProcessTimerOrBlockTask at
> /home/greg/esp/esp-idf/components/freertos/./timers.c:839
>
> 0x40087f34: prvTimerTask at
> /home/greg/esp/esp-idf/components/freertos/./timers.c:839
>
>
> Rebooting...
>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20180116/4083bc14/attachment.html>


More information about the OvmsDev mailing list