Question
Cube IDE 1.12.1 codegenerator crashing (stm32cube.common.mx_6.8.1.202304191431)
- July 12, 2023
- 3 replies
- 1502 views
Hi,
I have a cube ide project that has started to consistently crash the codegenerator module whenever I try to reopen the .ioc file. It displays the usual dialogs about rendering interface then nothing happens. At the console I can see the backtrace of the crash:
java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.get(Optional.java:148)
at com.st.microxplorer.codegenerator.CodeGenerator.sortFunctionList(CodeGenerator.java:7386)
at com.st.microxplorer.codegenerator.CodeGenerator.getAllFunctionList(CodeGenerator.java:7495)
at com.st.microxplorer.plugins.projectmanager.gui.CodeGenSorting.updateSettings(CodeGenSorting.java:827)
at com.st.microxplorer.plugins.projectmanager.gui.ProjectSettingsPanel.UpdateDialog(ProjectSettingsPanel.java:247)
at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager.loadConfig(MainProjectManager.java:588)
at com.st.stm32cube.common.mx.editor.CubeMxEditor.setProjectSettings(CubeMxEditor.java:1342)
at com.st.stm32cube.common.mx.editor.CubeMxEditor.getMxTabbedPaneInstance(CubeMxEditor.java:1198)
at com.st.stm32cube.common.mx.editor.CubeMxEditor$12$1.createSwingComponent(CubeMxEditor.java:1071)
at com.st.stm32cube.common.mx.oss.core.awtswtbridge.EmbeddedSwingComposite.doComponentCreation(EmbeddedSwingComposite.java:492)
at com.st.stm32cube.common.mx.oss.core.awtswtbridge.EmbeddedSwingComposite$4.run(EmbeddedSwingComposite.java:291)
at com.st.stm32cube.common.mx.oss.core.awtswtbridge.AwtEnvironment$2.run(AwtEnvironment.java:166)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
I have been able to reproduce the crash in a different computer by copying the entire project. I think the .ioc file might be enough to reproduce it so i'm attaching it here, but I may provide the full project if needed.
Thanks!
