cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX CRASHES on Ubuntu 18.04

Michael Uman
Associate II

Hello,

I have been using STM32CubeMX on Windows until today. I just realized that there is a MAJOR bug in the existing release (don't know how long it has existed).

This is the output I get on failure:

Judging from the stack trace it seems to be a JAVA related bug.

I did some digging around and it seems that a setting in the project I am loading affects this bug.

ProjectManager.AskForMigrate=true

If I save the project after this it sets this setting to false, but the next time I load it it will fail with the above errorlog.

If anyone has any tips on how to resolve this I'd love to hear it. For the time being manually resetting the project setting is a work around.

STM, please resolve this issue. If I can provide more information I will.

Java : openjdk-8-jre

java version "1.8.0_211"

Java(TM) SE Runtime Environment (build 1.8.0_211-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

uname:

Linux spaceinvader-dev 4.18.0-22-generic #23~18.04.1-Ubuntu SMP Thu Jun 6 08:37:25 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

lsb_release:

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 18.04.2 LTS

Release: 18.04

Codename: bionic

STM32CubeMX V5.2.1

I prefer to work in Linux and having to pop out to make changes in Windows is very frustrating.

Thank you,

Michael Uman

Sr Software Engineer

Wunder-Bar / American Bar Control

1 REPLY 1
Michael Uman
Associate II

Sorry but the error log was too big to post here... Here is just the Java stack trace:

2019-06-28 16:04:01,860 [INFO] ApiDbMcu:444 - Load IP Config File for FREERTOS

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 8

at com.st.microxplorer.plugins.projectmanager.gui.ProjectChoiceTab.updateToolChainSelection(ProjectChoiceTab.java:1895)

at com.st.microxplorer.plugins.projectmanager.gui.ProjectChoiceTab.updateSettings(ProjectChoiceTab.java:393)

at com.st.microxplorer.plugins.projectmanager.gui.ProjectSettingsPanel.showDialog(ProjectSettingsPanel.java:104)

at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager.showProjectSettingPanel(MainProjectManager.java:404)

at com.st.microxplorer.plugins.projectmanager.ProjectManagerView.getUI(ProjectManagerView.java:168)

at com.st.microxplorer.maingui.MainPanel.updateViewsTabPane(MainPanel.java:1145)

at com.st.microxplorer.maingui.MainPanel.propertyChange(MainPanel.java:714)

at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)

at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)

at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)

at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:45)

at com.st.microxplorer.mxsystem.MxSystem.completeLoadConfig(MxSystem.java:598)

at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.LoadConfig(OpenFileManager.java:281)

at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.loadConfigurationFile(OpenFileManager.java:198)

at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userLoadConfig(MainFileManager.java:249)

at com.st.microxplorer.plugins.filemanager.FileManagerView.getSpecificTask(FileManagerView.java:223)

at com.st.microxplorer.maingui.New_gui_ProjectLinePanel.jButtonLoadConfigurationActionPerformed(New_gui_ProjectLinePanel.java:215)

at com.st.microxplorer.maingui.New_gui_ProjectLinePanel.mouseClicked(New_gui_ProjectLinePanel.java:144)

at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)

at java.awt.Component.processMouseEvent(Component.java:6542)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

at java.awt.Component.processEvent(Component.java:6304)

at java.awt.Container.processEvent(Container.java:2239)

at java.awt.Component.dispatchEventImpl(Component.java:4889)

at java.awt.Container.dispatchEventImpl(Container.java:2297)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)

at java.awt.Container.dispatchEventImpl(Container.java:2283)

at java.awt.Window.dispatchEventImpl(Window.java:2746)

at java.awt.Component.dispatchEvent(Component.java:4711)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)

at java.awt.EventQueue.access$500(EventQueue.java:97)

at java.awt.EventQueue$3.run(EventQueue.java:709)

at java.awt.EventQueue$3.run(EventQueue.java:703)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

at java.awt.EventQueue$4.run(EventQueue.java:733)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)