forin遍历,解决Collection <__NSArrayM: 0x7ffa5261aa70> was mutated while being enumerated崩溃的问题

本文介绍了在Swift中使用不同方式遍历集合时的注意事项及优化方法。当需要在遍历过程中修改集合元素时,直接使用for-in循环可能会导致运行时错误。文章推荐使用enumerateObjectsUsingBlock方法,并展示了如何通过*stop参数来控制遍历过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


仅仅只是对值得遍历,个人感觉用forin更有效率。


在使用forin进行遍历循环,修改其中的值时,会报错误:

Collection <__NSArrayM: 0x7ffa5261aa70> was mutated while being enumerated


这时候就可以使用:

enumerateObjectsUsingBlock



这里*stop就可以在你需要的时候终止遍历,很方便


ycz@ycz-VMware-Virtual-Platform:~$ gz sim [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1304] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): OpenGL 3.3 is not supported. Please update your graphics card drivers. in GL3PlusRenderSystem::initialiseContext at ./RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 3434) [GUI] [Err] [Ogre2RenderEngine.cc:1312] Unable to create the rendering window after [11] attempts. [GUI] [Err] [Ogre2RenderEngine.cc:1194] Failed to create dummy render window. [GUI] [Err] [Ogre2RenderEngine.cc:1195] Please see the troubleshooting page for possible fixes: https://gazebosim.org/docs/fortress/troubleshooting Stack trace (most recent call last): #31 Object "/lib/x86_64-linux-gnu/libgz-sim8-gui.so.8", at 0x7983a8277610, in gz::sim::v8::gui::runGui(int&, char**, char const*, char const*, int, char const*, char const*) #30 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6edf3e7, in QCoreApplication::exec() #29 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6ed6a7a, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) #28 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6f35278, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) #27 Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7983a5d13a62, in g_main_context_iteration #26 Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7983a5d73736, in #25 Object "/lib/x86_64-linux-gnu/libglib-2.0.so.0", at 0x7983a5d145c4, in #24 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6f35c0e, in #23 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6edb94a, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) #22 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6ed8117, in QCoreApplication::notifyInternal2(QObject*, QEvent*) #21 Object "/lib/x86_64-linux-gnu/libQt5Widgets.so.5", at 0x7983a656bd44, in QApplicationPrivate::notify_helper(QObject*, QEvent*) #20 Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7983a6f06342, in QObject::event(QEvent*) #19 Object "/usr/lib/x86_64-linux-gnu/gz-gui-8/plugins/libMinimalScene.so", at 0x798394400504, in gz::gui::plugins::RenderWindowItem::Ready() #18 Object "/usr/lib/x86_64-linux-gnu/gz-gui-8/plugins/libMinimalScene.so", at 0x798394400194, in gz::gui::plugins::RenderThread::Initialize[abi:cxx11]() #17 Object "/usr/lib/x86_64-linux-gnu/gz-gui-8/plugins/libMinimalScene.so", at 0x79839440ea8f, in gz::gui::plugins::RenderThreadRhiOpenGL::Initialize[abi:cxx11]() #16 Object "/usr/lib/x86_64-linux-gnu/gz-gui-8/plugins/libMinimalScene.so", at 0x798394404898, in gz::gui::plugins::GzRenderer::Initialize[abi:cxx11](gz::gui::plugins::RenderThreadRhi&) #15 Object "/lib/x86_64-linux-gnu/libgz-rendering8.so.8", at 0x798394379012, in gz::rendering::v8::RenderEngineManager::Engine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) #14 Object "/lib/x86_64-linux-gnu/libgz-rendering8.so.8", at 0x798394378d64, in gz::rendering::v8::RenderEngineManagerPrivate::Engine(EngineInfo, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) #13 Object "/lib/x86_64-linux-gnu/libgz-rendering8.so.8", at 0x7983943814cf, in gz::rendering::v8::BaseRenderEngine::Init() #12 Object "/usr/lib/x86_64-linux-gnu/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x798358ffa5f6, in gz::rendering::v8::Ogre2RenderEngine::InitImpl() #11 Object "/usr/lib/x86_64-linux-gnu/gz-rendering-8/engine-plugins/libgz-rendering-ogre2.so", at 0x798358ffd2ab, in gz::rendering::v8::Ogre2RenderEngine::InitAttempt() #10 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358aff7cf, in Ogre::ResourceGroupManager::initialiseAllResourceGroups(bool) #9 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b0cf97, in Ogre::ResourceGroupManager::parseResourceGroupScripts(Ogre::ResourceGroupManager::ResourceGroup*) #8 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b4c861, in Ogre::ScriptCompilerManager::parseScript(Ogre::SharedPtr<Ogre::DataStream>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) #7 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b43f69, in Ogre::ScriptCompiler::compile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) #6 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b43c52, in Ogre::ScriptCompiler::compile(Ogre::SharedPtr<std::__cxx11::list<Ogre::SharedPtr<Ogre::ConcreteNode>, Ogre::STLAllocator<Ogre::SharedPtr<Ogre::ConcreteNode>, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) #5 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b546aa, in Ogre::MaterialTranslator::translate(Ogre::ScriptCompiler*, Ogre::SharedPtr<Ogre::AbstractNode> const&) #4 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b5599f, in Ogre::TechniqueTranslator::translate(Ogre::ScriptCompiler*, Ogre::SharedPtr<Ogre::AbstractNode> const&) #3 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358b5b64b, in Ogre::PassTranslator::translate(Ogre::ScriptCompiler*, Ogre::SharedPtr<Ogre::AbstractNode> const&) #2 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358bcd576, in Ogre::Technique::createPass() #1 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x798358ac5aff, in Ogre::Pass::Pass(Ogre::Technique*, unsigned short) #0 Object "/usr/lib/x86_64-linux-gnu/OGRE-2.3/libOgreNextMain.so.2.3.1", at 0x7983589f24a6, in Ogre::Hlms::createDatablock(Ogre::IdString, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Ogre::HlmsMacroblock const&, Ogre::HlmsBlendblock const&, std::vector<std::pair<Ogre::IdString, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::STLAllocator<std::pair<Ogre::IdString, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) 段错误 (地址没有映射到对象 [0x220])
06-25
<error> <unique>0x00000000005760B0</unique> <tid>1</tid> <kind>Leak_DefinitelyLost</kind> <xwhat> <text>32 bytes in 1 blocks are lost in loss record 1167725 of 1387445 (#5726384)</text> <leakedbytes>32</leakedbytes> <leakedblocks>1</leakedblocks> </xwhat> <stack> <frame> <fn>malloc</fn> </frame> <frame> <ip>0x00007FFA1663F24B</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\libstdc++-6.dll</obj> <fn>_Znwy</fn> </frame> <frame> <ip>0x000000006891BFF4</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\Qt5Core.dll</obj> <fn>_ZN12QEasingCurveC1ENS_4TypeE</fn> </frame> <frame> <ip>0x000000006888B336</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\Qt5Core.dll</obj> <fn>_ZN17QVariantAnimation12valueChangedERK8QVariant</fn> </frame> <frame> <ip>0x000000006888FF53</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\Qt5Core.dll</obj> <fn>_ZN18QPropertyAnimationC1EP7QObjectRK10QByteArrayS1_</fn> </frame> <frame> <ip>0x000000000ACF8558</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuWidgets.dll</obj> <fn>_ZN14TjuWidgetTitle11setFloatingEb</fn> </frame> <frame> <ip>0x000000000AD44218</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuWidgets.dll</obj> <fn>_ZN14TjuWidgetTitle11setFloatingEb</fn> </frame> <frame> <ip>0x000000000AE7B470</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuWidgets.dll</obj> <fn>_ZN11TjuECEngine21TjuS57MilitaryManagerC1EP7QWidget</fn> </frame> <frame> <ip>0x000000000042EE9B</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuMain.exe</obj> </frame> <frame> <ip>0x00000000004165CE</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuMain.exe</obj> </frame> <frame> <ip>0x00000000008BF0DF</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuMain.exe</obj> </frame> <frame> <ip>0x00000000004013C6</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuMain.exe</obj> </frame> <frame> <ip>0x00000000004014CA</ip> <obj>E:\q5142\qt5pro\TjuECS_QT5\bin\win\TjuMain.exe</obj> </frame> </stack> </error>
07-04
I (361) main_task: Calling app_main() I (371) pp: pp rom version: 9387209 I (371) net80211: net80211 rom version: 9387209 I (381) wifi:wifi driver task: 3fca30b0, prio:23, stack:6656, core=0 I (381) wifi:wifi firmware version: 79fa3f41ba I (381) wifi:wifi certification version: v7.0 I (381) wifi:config NVS flash: enabled I (391) wifi:config nano formatting: disabled I (391) wifi:Init data frame dynamic rx buffer num: 32 I (401) wifi:Init static rx mgmt buffer num: 5 I (401) wifi:Init management short buffer num: 32 I (401) wifi:Init dynamic tx buffer num: 32 I (411) wifi:Init static tx FG buffer num: 2 I (411) wifi:Init static rx buffer size: 1600 I (421) wifi:Init static rx buffer num: 10 I (421) wifi:Init dynamic rx buffer num: 32 I (421) wifi_init: rx ba win: 6 I (431) wifi_init: accept mbox: 6 I (431) wifi_init: tcpip mbox: 32 I (431) wifi_init: udp mbox: 6 I (441) wifi_init: tcp mbox: 6 I (441) wifi_init: tcp tx win: 5760 I (441) wifi_init: tcp rx win: 5760 I (451) wifi_init: tcp mss: 1440 I (451) wifi_init: WiFi IRAM OP enabled I (451) wifi_init: WiFi RX IRAM OP enabled I (461) phy_init: phy_version 1200,2b7123f9,Feb 18 2025,15:22:21 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Core 0 register dump: MEPC : 0x4209e22c RA : 0x4209de30 SP : 0x3fca2de0 GP : 0x3fc92000 --- 0x4209e22c: txcal_gain_check at ??:? --- 0x4209de30: rom1_bt_get_tx_gain_new at ??:? TP : 0x3fca30a0 T0 : 0x000000f0 T1 : 0x3fc92bc0 T2 : 0x00000042 S0/FP : 0x0000000c S1 : 0x00000000 A0 : 0xffffff68 A1 : 0xffffffe0 A2 : 0x3fc92cca A3 : 0xffe00000 A4 : 0xffffffec A5 : 0xffffffc0 A6 : 0x3fc92ba6 A7 : 0x0000000e S2 : 0x0000ffa0 S3 : 0x3fc92b50 S4 : 0x3fc92ba6 S5 : 0x3fc92cda S6 : 0x3fc92cca S7 : 0x00000000 S8 : 0x3fc9a000 S9 : 0xffffffc8 S10 : 0x00000018 S11 : 0x3fc94000 T3 : 0x0000000e T4 : 0xffffff68 T5 : 0xffffffa0 T6 : 0x0000000c MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x0000001b --- 0x40380001: _vector_table at E:/espidf/v5.4.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 3fca2de0: 0x00000006 0x3fc92b30 0x3fc92ca9 0x3fc92ca9 0x3fc92b98 0xffffff68 0xffffffa0 0x0000000c 3fca2e00: 0x00000002 0x0000004f 0x00cdf000 0x0000ffec 0x3fcdf934 0x3fce0000 0x01000100 0x00000000 3fca2e20: 0x3fcdf934 0x3fce0000 0x3ff1b000 0x3fce0000 0x00000000 0x3c0dab38 0x3fc99f50 0x00000000 3fca2e40: 0x3fca9958 0x3fc93000 0x3fc93000 0x4209e136 0xffffffa0 0x00000003 0x00000000 0x00000000 --- 0x4209e136: rom1_bt_set_tx_gain at ??:? 3fca2e60: 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209e188 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209ac72 --- 0x4209e188: bt_tx_gain_init at ??:? --- 0x4209ac72: bb_init at ??:? 3fca2e80: 0x3fca9958 0x00000000 0x3fc92b30 0x4209adc6 0x00ea0100 0x00ff0100 0x00eb0100 0x01010101 --- 0x4209adc6: register_chipv7_phy at ??:? 3fca2ea0: 0x00ed0101 0x00ff00ff 0x00f00100 0x010100ff 0x00f10100 0x01000101 0x00fa0101 0x00fe0103 3fca2ec0: 0x00fb0101 0x00f50100 0x00fb0101 0x00fa00fc 0x00000079 0x0cc90a8f 0x00000000 0x04090077 3fca2ee0: 0x070c1100 0x09010b0b 0x0908020a 0x4200c502 0x52520002 0x484c4c50 0x4648484c 0x4446464a --- 0x4200c502: nvs_get_u32 at E:/espidf/v5.4.1/esp-idf/components/nvs_flash/src/nvs_api.cpp:487 3fca2f00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f60: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fce0000 0x3fce0000 0x3fce0000 0x00000000 3fca2f80: 0x3c0d2000 0x3fca9958 0x00000000 0x42076b1e 0x00000000 0x00000000 0x3fca0e60 0x3fc99f58 --- 0x42076b1e: esp_phy_load_cal_and_init at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:889 3fca2fa0: 0x3fc9a000 0x00000000 0x97b0cd34 0x0000dc59 0x00000000 0x00000000 0x3fce0000 0x3fc9883c 3fca2fc0: 0x3fc9a000 0x3fc9a000 0x00000001 0x42076bf6 0x00000000 0x3fc99000 0x3fce0000 0x420b0cc2 --- 0x42076bf6: esp_phy_enable at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:301 --- 0x420b0cc2: esp_phy_enable_wrapper at E:/espidf/v5.4.1/esp-idf/components/esp_wifi/esp32c3/esp_adapter.c:564 3fca2fe0: 0x00000000 0x3fc99000 0x00000000 0x4205c4c6 0x3fc9883c 0x3fca30b0 0x3fca0e60 0x00000001 --- 0x4205c4c6: wifi_hw_start at ??:? 3fca3000: 0x3fc9883c 0x00000003 0x00000000 0x4205ce12 0x3fce0000 0x3fce0000 0x3fc98c70 0x3ff1b5a8 --- 0x4205ce12: wifi_start_process at ??:? 3fca3020: 0x3fc9883c 0xffffffff 0x3fca993c 0x4205b058 0x00000000 0x3fcdf918 0x3fce0000 0x4004094c --- 0x4205b058: ieee80211_ioctl_process at ??:? --- 0x4004094c: ppRxFragmentProc in ROM 3fca3040: 0x00000000 0x00000000 0x00000006 0x3fca993c 0x00000000 0x00000000 0x00000000 0x00000000 3fca3060: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3080: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 3fca30a0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x3fca2cc0 0x00000000 0x3fc9495c 0x3fc9495c 3fca30c0: 0x3fca30b0 0x3fc94954 0x00000002 0x3fca0fbc 0x3fca0fbc 0x3fca30b0 0x00000000 0x00000017 3fca30e0: 0x3fca16ac 0x69666977 0x00000000 0x00000000 0x00000000 0x3fca30a0 0x00000017 0x00000001 3fca3100: 0x00000000 0x00000000 0x00000000 0x3fc9aa50 0x3fc9aab8 0x3fc9ab20 0x00000000 0x00000000 3fca3120: 0x00000001 0x00000000 0x00000000 0x00000000 0x42004694 0x00000000 0x00000000 0x00000000 --- 0x42004694: esp_cleanup_r at E:/espidf/v5.4.1/esp-idf/components/newlib/newlib_init.c:43 3fca3140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: e1814a13e Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x403807f4 --- 0x403807f4: esp_restart_noos at E:/espidf/v5.4.1/esp-idf/components/esp_system/port/soc/esp32c3/system_internal.c:112 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1574 load:0x403cc710,len:0xc30 load:0x403ce710,len:0x2f64 entry 0x403cc71a I (24) boot: ESP-IDF v5.4.1 2nd stage bootloader I (24) boot: compile time Jun 26 2025 16:31:34 I (24) boot: chip revision: v0.4 I (25) boot: efuse block revision: v1.3 I (27) boot.esp32c3: SPI Speed : 80MHz I (31) boot.esp32c3: SPI Mode : DIO I (35) boot.esp32c3: SPI Flash Size : 2MB I (39) boot: Enabling RNG early entropy source... I (43) boot: Partition Table: I (46) boot: ## Label Usage Type ST Offset Length I (52) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (59) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (65) boot: 2 factory factory app 00 00 00010000 00100000 I (72) boot: End of partition table I (75) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=21af0h (137968) map I (105) esp_image: segment 1: paddr=00031b18 vaddr=3fc91800 size=02dd8h ( 11736) load I (107) esp_image: segment 2: paddr=000348f8 vaddr=40380000 size=0b720h ( 46880) load I (117) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=b1a14h (727572) map I (233) esp_image: segment 4: paddr=000f1a3c vaddr=4038b720 size=06068h ( 24680) load I (239) esp_image: segment 5: paddr=000f7aac vaddr=50000200 size=0001ch ( 28) load I (245) boot: Loaded app from partition at offset 0x10000 I (245) boot: Disabling RNG early entropy source... I (259) cpu_start: Unicore app I (267) cpu_start: Pro cpu start user code I (267) cpu_start: cpu freq: 160000000 Hz I (268) app_init: Application information: I (268) app_init: Project name: internal_communication I (272) app_init: App version: 1 I (276) app_init: Compile time: Jun 26 2025 16:31:14 I (281) app_init: ELF file SHA256: e1814a13e... I (285) app_init: ESP-IDF: v5.4.1 I (289) efuse_init: Min chip rev: v0.3 I (293) efuse_init: Max chip rev: v1.99 I (297) efuse_init: Chip rev: v0.4 I (301) heap_init: Initializing. RAM available for dynamic allocation: I (307) heap_init: At 3FC9A410 len 00025BF0 (150 KiB): RAM I (312) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM I (318) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM I (324) heap_init: At 5000021C len 00001DCC (7 KiB): RTCRAM I (330) spi_flash: detected chip: generic I (333) spi_flash: flash io: dio W (336) spi_flash: DetectEd size(8192k) larger than the size in the binary image header(2048k). I (361) main_task: Calling app_main() I (371) pp: pp rom version: 9387209 I (371) net80211: net80211 rom version: 9387209 I (381) wifi:wifi driver task: 3fca30b0, prio:23, stack:6656, core=0 I (381) wifi:wifi firmware version: 79fa3f41ba I (381) wifi:wifi certification version: v7.0 I (381) wifi:config NVS flash: enabled I (391) wifi:config nano formatting: disabled I (391) wifi:Init data frame dynamic rx buffer num: 32 I (401) wifi:Init static rx mgmt buffer num: 5 I (401) wifi:Init management short buffer num: 32 I (401) wifi:Init dynamic tx buffer num: 32 I (411) wifi:Init static tx FG buffer num: 2 I (411) wifi:Init static rx buffer size: 1600 I (421) wifi:Init static rx buffer num: 10 I (421) wifi:Init dynamic rx buffer num: 32 I (421) wifi_init: rx ba win: 6 I (431) wifi_init: accept mbox: 6 I (431) wifi_init: tcpip mbox: 32 I (431) wifi_init: udp mbox: 6 I (441) wifi_init: tcp mbox: 6 I (441) wifi_init: tcp tx win: 5760 I (441) wifi_init: tcp rx win: 5760 I (451) wifi_init: tcp mss: 1440 I (451) wifi_init: WiFi IRAM OP enabled I (451) wifi_init: WiFi RX IRAM OP enabled I (461) phy_init: phy_version 1200,2b7123f9,Feb 18 2025,15:22:21 Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. Core 0 register dump: MEPC : 0x4209e22c RA : 0x4209de30 SP : 0x3fca2de0 GP : 0x3fc92000 --- 0x4209e22c: txcal_gain_check at ??:? --- 0x4209de30: rom1_bt_get_tx_gain_new at ??:? TP : 0x3fca30a0 T0 : 0x000000f0 T1 : 0x3fc92bc0 T2 : 0x00000042 S0/FP : 0x0000000c S1 : 0x00000000 A0 : 0xffffff68 A1 : 0xffffffe0 A2 : 0x3fc92cca A3 : 0xffe00000 A4 : 0xffffffec A5 : 0xffffffc0 A6 : 0x3fc92ba6 A7 : 0x0000000e S2 : 0x0000ffa0 S3 : 0x3fc92b50 S4 : 0x3fc92ba6 S5 : 0x3fc92cda S6 : 0x3fc92cca S7 : 0x00000000 S8 : 0x3fc9a000 S9 : 0xffffffc8 S10 : 0x00000018 S11 : 0x3fc94000 T3 : 0x0000000e T4 : 0xffffff68 T5 : 0xffffffa0 T6 : 0x0000000c MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x0000001b --- 0x40380001: _vector_table at E:/espidf/v5.4.1/esp-idf/components/riscv/vectors_intc.S:54 MHARTID : 0x00000000 Stack memory: 3fca2de0: 0x00000006 0x3fc92b30 0x3fc92ca9 0x3fc92ca9 0x3fc92b98 0xffffff68 0xffffffa0 0x0000000c 3fca2e00: 0x00000002 0x0000004f 0x00cdf000 0x0000ffec 0x3fcdf934 0x3fce0000 0x01000100 0x00000000 3fca2e20: 0x3fcdf934 0x3fce0000 0x3ff1b000 0x3fce0000 0x00000000 0x3c0dab38 0x3fc99f50 0x00000000 3fca2e40: 0x3fca9958 0x3fc93000 0x3fc93000 0x4209e136 0xffffffa0 0x00000003 0x00000000 0x00000000 --- 0x4209e136: rom1_bt_set_tx_gain at ??:? 3fca2e60: 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209e188 0x3fca9958 0x3fc99f50 0x3fc92b30 0x4209ac72 --- 0x4209e188: bt_tx_gain_init at ??:? --- 0x4209ac72: bb_init at ??:? 3fca2e80: 0x3fca9958 0x00000000 0x3fc92b30 0x4209adc6 0x00ea0100 0x00ff0100 0x00eb0100 0x01010101 --- 0x4209adc6: register_chipv7_phy at ??:? 3fca2ea0: 0x00ed0101 0x00ff00ff 0x00f00100 0x010100ff 0x00f10100 0x01000101 0x00fa0101 0x00fe0103 3fca2ec0: 0x00fb0101 0x00f50100 0x00fb0101 0x00fa00fc 0x00000079 0x0cc90a8f 0x00000000 0x04090077 3fca2ee0: 0x070c1100 0x09010b0b 0x0908020a 0x4200c502 0x52520002 0x484c4c50 0x4648484c 0x4446464a --- 0x4200c502: nvs_get_u32 at E:/espidf/v5.4.1/esp-idf/components/nvs_flash/src/nvs_api.cpp:487 3fca2f00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca2f60: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fce0000 0x3fce0000 0x3fce0000 0x00000000 3fca2f80: 0x3c0d2000 0x3fca9958 0x00000000 0x42076b1e 0x00000000 0x00000000 0x3fca0e60 0x3fc99f58 --- 0x42076b1e: esp_phy_load_cal_and_init at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:889 3fca2fa0: 0x3fc9a000 0x00000000 0x97b0cd34 0x0000dc59 0x00000000 0x00000000 0x3fce0000 0x3fc9883c 3fca2fc0: 0x3fc9a000 0x3fc9a000 0x00000001 0x42076bf6 0x00000000 0x3fc99000 0x3fce0000 0x420b0cc2 --- 0x42076bf6: esp_phy_enable at E:/espidf/v5.4.1/esp-idf/components/esp_phy/src/phy_init.c:301 --- 0x420b0cc2: esp_phy_enable_wrapper at E:/espidf/v5.4.1/esp-idf/components/esp_wifi/esp32c3/esp_adapter.c:564 3fca2fe0: 0x00000000 0x3fc99000 0x00000000 0x4205c4c6 0x3fc9883c 0x3fca30b0 0x3fca0e60 0x00000001 --- 0x4205c4c6: wifi_hw_start at ??:? 3fca3000: 0x3fc9883c 0x00000003 0x00000000 0x4205ce12 0x3fce0000 0x3fce0000 0x3fc98c70 0x3ff1b5a8 --- 0x4205ce12: wifi_start_process at ??:? 3fca3020: 0x3fc9883c 0xffffffff 0x3fca993c 0x4205b058 0x00000000 0x3fcdf918 0x3fce0000 0x4004094c --- 0x4205b058: ieee80211_ioctl_process at ??:? --- 0x4004094c: ppRxFragmentProc in ROM 3fca3040: 0x00000000 0x00000000 0x00000006 0x3fca993c 0x00000000 0x00000000 0x00000000 0x00000000 3fca3060: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3080: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 3fca30a0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000150 0x3fca2cc0 0x00000000 0x3fc9495c 0x3fc9495c 3fca30c0: 0x3fca30b0 0x3fc94954 0x00000002 0x3fca0fbc 0x3fca0fbc 0x3fca30b0 0x00000000 0x00000017 3fca30e0: 0x3fca16ac 0x69666977 0x00000000 0x00000000 0x00000000 0x3fca30a0 0x00000017 0x00000001 3fca3100: 0x00000000 0x00000000 0x00000000 0x3fc9aa50 0x3fc9aab8 0x3fc9ab20 0x00000000 0x00000000 3fca3120: 0x00000001 0x00000000 0x00000000 0x00000000 0x42004694 0x00000000 0x00000000 0x00000000 --- 0x42004694: esp_cleanup_r at E:/espidf/v5.4.1/esp-idf/components/newlib/newlib_init.c:43 3fca3140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca3180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 3fca31c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 ELF file SHA256: e1814a13e Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x403807f4 --- 0x403807f4: esp_restart_noos at E:/espidf/v5.4.1/esp-idf/components/esp_system/port/soc/esp32c3/system_internal.c:112 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5820,len:0x1574 load:0x403cc710,len:0xc30 load:0x403ce710,len:0x2f64 entry 0x403cc71a I (24) boot: ESP-IDF v5.4.1 2nd stage bootloader I (24) boot: compile time Jun 26 2025 16:31:34 I (24) boot: chip revision: v0.4 I (25) boot: efuse block revision: v1.3 I (27) boot.esp32c3: SPI Speed : 80MHz I (31) boot.esp32c3: SPI Mode : DIO I (35) boot.esp32c3: SPI Flash Size : 2MB I (39) boot: Enabling RNG early entropy source... I (43) boot: Partition Table: I (46) boot: ## Label Usage Type ST Offset Length I (52) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (59) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (65) boot: 2 factory factory app 00 00 00010000 00100000 I (72) boot: End of partition table I (75) esp_image: segment 0: paddr=00010020 vaddr=3c0c0020 size=21af0h (137968) map I (105) esp_image: segment 1: paddr=00031b18 vaddr=3fc91800 size=02dd8h ( 11736) load I (107) esp_image: segment 2: paddr=000348f8 vaddr=40380000 size=0b720h ( 46880) load I (117) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=b1a14h (727572) map I (233) esp_image: segment 4: paddr=000f1a3c vaddr=4038b720 size=06068h ( 24680) load I (239) esp_image: segment 5: paddr=000f7aac vaddr=50000200 size=0001ch ( 28) load I (245) boot: Loaded app from partition at offset 0x10000 I (245) boot: Disabling RNG early entropy source... I (259) cpu_start: Unicore app I (267) cpu_start: Pro cpu start user code I (267) cpu_start: cpu freq: 160000000 Hz I (268) app_init: Application information: I (268) app_init: Project name: internal_communication I (272) app_init: App version: 1 I (276) app_init: Compile time: Jun 26 2025 16:31:14 I (281) app_init: ELF file SHA256: e1814a13e... I (285) app_init: ESP-IDF: v5.4.1 I (289) efuse_init: Min chip rev: v0.3 I (293) efuse_init: Max chip rev: v1.99 I (297) efuse_init: Chip rev: v0.4 I (301) heap_init: Initializing. RAM available for dynamic allocation: I (307) heap_init: At 3FC9A410 len 00025BF0 (150 KiB): RAM I (312) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM I (318) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM I (324) heap_init: At 5000021C len 00001DCC (7 KiB): RTCRAM I (330) spi_flash: detected chip: generic I (333) spi_flash: flash io: dio W (336) spi_flash: DetectEd size(8192k) larger than the size in the binary image header(2048k).
06-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值