Skip to main content
ADhan.1
Associate
July 28, 2020
Question

How do I fix the "JVM terminated. Exit Code=1" error I get when I run stm32cubeide inside a docker container?

I installed stm32cubeide inside a Ubuntu 20.04 docker container. I also installed 'openjdk-8-jre' on the docker image (not sure if it's needed though). The installation seems to go ok, and I install stm32cubeide to the default location ('/opt/st/stm32cubeide_1.3.0). But when I run the following:

/opt/st/stm32cubeide_1.3.0# ./headless-build.sh -build all -data /app/

I get:

Building All Projects...
Building workspace
Building '/RemoteSystemsTempFiles'
Saving workspace.
Stm32cubeide:
JVM terminated. Exit code=1
/opt/st/stm32cubeide_1.3.0/jre/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.3.0
-Declipse.buildId=Version 1.3.0
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-jar /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
-os linux
-ws gtk
-arch x86_64
-launcher /opt/st/stm32cubeide_1.3.0/stm32cubeide
-name Stm32cubeide
--launcher.library /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426/eclipse_1801.so
-startup /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
--launcher.overrideVmargs
-exitdata 0
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-build all
-data /app/
-vm /opt/st/stm32cubeide_1.3.0/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.3.0
-Declipse.buildId=Version 1.3.0
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m
-jar /opt/st/stm32cubeide_1.3.0//plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar 

and my project doesn't build.

NOTE: I'm currently running docker client on macos, but I also plan on running it on windows.

Any help on how to fix the JVM error is much appreciated!

This topic has been closed for replies.

3 replies

Cartu38 OpenDev
Graduate II
July 28, 2020

According to me your build is failing because : Building '/RemoteSystemsTempFiles'

Such '/RemoteSystemsTempFiles' is not a CDT project ...

You have to get rid first of such folder. May help: https://stackoverflow.com/questions/3627463/what-is-remotesystemstempfiles-in-eclipse

According to me RSE stuff is required ony if playing with STM32MP* devices.

PS: not sure will help but for your info STM32CubeIDE 1.4.0 is available now ...

ADhan.1
ADhan.1Author
Associate
July 28, 2020

Hi Cartu38, thank you for the tip. Unfortunately it did not fix the issue. I will try installing 1.4.0, and see if that helps.

Cartu38 OpenDev
Graduate II
July 28, 2020

Takes care such '/RemoteSystemsTempFiles' folder may be part of your workspace (rely on file system exploration) but not visible from IDE UI.

According your trace at least such will bore you.