2023-07-25 06:00 PM - edited 2023-07-25 06:03 PM
I had an unattended script to regenerate and compile the project.
In it, I call CubeMX using this cmd:
java.exe -jar STM32CubeMX.jar -q cubemx_script
These are the contents of cubemx_script:
config load myProject.ioc
project generate
exit
It has worked perfectly for more than a year. With 1.13.0, it no longer works.
I can see this in the CubeMX window:
config load myProject.ioc
2023-07-26 02:48:57,629 [INFO] JxBrowserEngine:151 - Initiate JxBrowser Engine with user profile folder
2023-07-26 02:48:57,670 [INFO] MicroXplorer:468 - Change Database Path :
2023-07-26 02:48:57,671 [INFO] MicroXplorer:498 - Change Database Version : DB.6.0.90
2023-07-26 02:48:57,674 [WARN] ThirdParty:871 - waiting for thirdparty lock release [close project]
2023-07-26 02:48:57,708 [ERROR] JxBrowserEngine:69 - Can't initiate JxBrowser engine com.teamdev.jxbrowser.engine.ChromiumBinariesExtractionException: Failed to extract Chromium binaries into C:\Users\David\.stm32cubemx\.jxbrowser-7.30.2\Chromium
Exception in thread "Thread-2" java.lang.NullPointerException: Cannot invoke "javax.swing.JComponent.setVisible(boolean)" because "this.webAppContainer" is null
at com.st.microxplorer.plugins.userauth.UserAuth.activatePlugin(UserAuth.java:200)
at com.st.microxplorer.maingui.MainFrame.lambda$initialization$0(MainFrame.java:189)
at java.base/java.lang.Thread.run(Thread.java:833)
Not sure why is it trying to extract Chromium binaries or why is it failing.
I'll stay wih 1.12.1 for now.
2023-07-28 08:56 AM
Hello @DavidAlfa
First let me thank you for posting.
I try to compile and regenerate a project with this cmd :
jre\bin\java -jar STM32CubeMX.exe -s C:\Temp\cubemx_script.txt
I just add the path of the project in the script :
config load C:\STM32CubeProjects\myProject\myProject.ioc
project generate
exit
and it worked correctly, keep using 1.13.0 version and try to make sure of the right path of your project.
thank you
Souhaib