cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 5.0 under Linux

Pawe? Jab?o?ski
Associate II

Hello,

I installed new STM32CubeMX 5.0.0 on my computer under Ubuntu 18.04. After start, program doesn't response. When I run it via terminal, I have some warns and error. Below I attached logs from terminal. After the last line of this log, I don't have even program GUI. Does anyone had problem like that?

Thanks in advice

Paweł

2018-11-24 19:33:27,745 [INFO] MicroXplorer:486 - Detected Java Version = 11.0.1
2018-11-24 19:33:27,751 [INFO] ApplicationProperties:181 - Using Application install path: /home/pawel/STM32CubeMX
2018-11-24 19:33:27,762 [INFO] DbMcusXml:68 - Set database path to: /home/pawel/STM32CubeMX//db//mcu/
2018-11-24 19:33:27,767 [INFO] DbBoardsPdsc:54 - Set plugin database path to: /home/pawel/STM32CubeMX//db//plugins/boardmanager/
2018-11-24 19:33:27,768 [INFO] DbMcus:262 - Set plugin images path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/images/
2018-11-24 19:33:27,768 [INFO] DbBoards:224 - Set plugin images path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/images/
2018-11-24 19:33:27,770 [INFO] APIGFXSelector:72 - Set database path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/mcu/
2018-11-24 19:33:27,773 [INFO] DbMcusAds:72 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:27,774 [INFO] DbMcusDocs:90 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:27,776 [INFO] DbMcusJson:58 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:27,778 [INFO] DbBoardsDocs:82 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:27,779 [INFO] DbBoardsJson:51 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:27,798 [INFO] CrossReferenceDbSqlite:197 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,016 [INFO] RulesReader:53 - Compatibility file has been processed (127 Rules)
2018-11-24 19:33:28,074 [INFO] STM32CubeMX:31 - Starting STM32CubeMX
2018-11-24 19:33:28,504 [INFO] MainPanel:139 - HeapMemory: 134217728
2018-11-24 19:33:28,673 [INFO] DbMcusXml:68 - Set database path to: /home/pawel/STM32CubeMX//db//mcu/
2018-11-24 19:33:28,673 [INFO] DbBoardsPdsc:54 - Set plugin database path to: /home/pawel/STM32CubeMX//db//plugins/boardmanager/
2018-11-24 19:33:28,674 [INFO] DbMcus:262 - Set plugin images path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/images/
2018-11-24 19:33:28,674 [INFO] DbBoards:224 - Set plugin images path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/images/
2018-11-24 19:33:28,675 [INFO] APIGFXSelector:72 - Set database path to: /home/pawel/STM32CubeMX//db//plugins/mcufinder/mcu/
2018-11-24 19:33:28,675 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,676 [INFO] DbMcusAds:72 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,676 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,677 [INFO] DbMcusDocs:90 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,677 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,678 [INFO] DbMcusJson:58 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,678 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,678 [INFO] DbBoardsDocs:82 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,679 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,679 [INFO] DbBoardsJson:51 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,680 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,680 [WARN] DbFile:31 - Overriding database path with different value: /home/pawel/.stmcufinder/plugins/mcufinder/ => /home/pawel/.stmcufinder/plugins/mcufinder
2018-11-24 19:33:28,680 [INFO] CrossReferenceDbSqlite:197 - Set database path to: /home/pawel/.stmcufinder/plugins/mcufinder//mcu/
2018-11-24 19:33:28,703 [INFO] ApplicationProperties:181 - Using Application install path: /home/pawel/STM32CubeMX
2018-11-24 19:33:28,706 [INFO] PluginManage:167 - Search for loadable plugins [exclusion list=]
2018-11-24 19:33:28,707 [INFO] PluginManage:289 - Check plugin projectmanager
2018-11-24 19:33:28,824 [INFO] PluginManage:339 - Loaded plugin projectmanager (category:projectmanager,tabindex:3)
2018-11-24 19:33:28,825 [INFO] PluginManage:289 - Check plugin filemanager
2018-11-24 19:33:28,885 [INFO] PluginManage:339 - Loaded plugin filemanager (category:base,tabindex:10)
2018-11-24 19:33:28,885 [INFO] PluginManage:289 - Check plugin tools
2018-11-24 19:33:28,888 [INFO] PluginManage:339 - Loaded plugin tools (category:base,tabindex:5)
2018-11-24 19:33:28,888 [INFO] PluginManage:289 - Check plugin ipmanager
2018-11-24 19:33:28,897 [INFO] PluginManage:339 - Loaded plugin ipmanager (category:base,tabindex:5)
2018-11-24 19:33:28,897 [INFO] PluginManage:289 - Check plugin clock
2018-11-24 19:33:28,906 [INFO] PluginManage:339 - Loaded plugin clock (category:base,tabindex:2)
2018-11-24 19:33:28,907 [INFO] PluginManage:289 - Check plugin updater
2018-11-24 19:33:28,925 [INFO] PluginManage:339 - Loaded plugin updater (category:base,tabindex:12)
2018-11-24 19:33:28,926 [INFO] PluginManage:289 - Check plugin pinoutandconfiguration
2018-11-24 19:33:28,933 [INFO] PluginManage:339 - Loaded plugin pinoutandconfiguration (category:base,tabindex:1)
2018-11-24 19:33:28,933 [INFO] PluginManage:289 - Check plugin thirdparty
2018-11-24 19:33:28,946 [INFO] ThirdPartyDb:293 - Open Third Party DataBase File (/home/pawel/.stm32cubemx/plugins/thirdparty/db/thirdparties_db.xml) : 0 ms. number of Sw pack : 0
2018-11-24 19:33:28,954 [INFO] PluginManage:339 - Loaded plugin thirdparty (category:base,tabindex:-1)
2018-11-24 19:33:28,954 [INFO] PluginManage:289 - Check plugin power
2018-11-24 19:33:28,993 [INFO] PluginManage:339 - Loaded plugin power (category:power,tabindex:4)
2018-11-24 19:33:28,993 [INFO] PluginManage:289 - Check plugin pinoutconfig
2018-11-24 19:33:29,036 [INFO] PluginManage:339 - Loaded plugin pinoutconfig (category:base,tabindex:0)
2018-11-24 19:33:29,037 [INFO] PluginManage:289 - Check plugin analytics
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/home/pawel/STM32CubeMX/plugins/analytics.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2018-11-24 19:33:29,284 [INFO] UserProfileFactory:23 - /com/st/library/analyticscore
2018-11-24 19:33:29,287 [INFO] UserProfileFactory:25 - 4c813135_154f_412c_8980_4024633db7d4
2018-11-24 19:33:29,297 [INFO] AnalyticsPlugin:146 - Accepted Software Licenses: Error : could not load the licence version !
2018-11-24 19:33:29,298 [INFO] AnalyticsPlugin:148 - Accepted CMSIS Pack Licenses: 
2018-11-24 19:33:29,298 [INFO] AnalyticsPlugin:150 - Accepted Firmware Licenses: 
2018-11-24 19:33:29,298 [INFO] PluginManage:339 - Loaded plugin analytics (category:tool,tabindex:-1)
2018-11-24 19:34:13,954 [ERROR] IntegrityCheckThread:90 - Cannot obtain updater plugin
2018-11-24 19:34:13,955 [INFO] IntegrityCheckThread:94 - End integrity checks thread
2018-11-24 19:34:13,955 [INFO] ThirdPartyDb:263 - Close Third Party DataBase File (/home/pawel/.stm32cubemx/plugins/thirdparty/db/thirdparties_db.xml)

60 REPLIES 60
KE1
Associate

The same issue on Ubuntu 16.04 (Java Version = 1.8.0_191):

"[ERROR] IntegrityCheckThread:90 - Cannot obtain updater plugin" and 2 running threads with 100% load: "java -jar STM32CubeMX"

Ubuntu 18.04 (Java Version = 10.0.2) - working fine.

Worked for me too, thanks for the tip Marco!

Debian 9, Oracle Java 10.

I also removed these config files, not sure if it made a difference:

~/.stm32cubemx

~/.stm32cubeup

~/.stmcube

~/.stmcufinder

No way. I deleted cfg dirs and installed again from scratch but it just stop at

Close Third Party DataBase File (/root/.stm32cubemx/plugins/thirdparty/db/thirdparties_db.xml)

and CPU usage goes up to 100%.

I tried to install Oracle Java but it seems there is a problem with bionic package. But still other people succeeded to make it work with OpenJDK so java version shouldn't be the issue.

zoompig
Associate II

Same here as well. Ubuntu bionic 18.04.1 LTS x86_64. Java "10.0.2"

Using sudo to run the install script does not seem to make any difference.

I just filed a case directing support to the posts in this thread.

I've tried all available openjdk version in Debian. Still no change.

If anyone is more comfortable with java this is what jstack says:

ab.12
Associate

Same here. Up to date Manjaro, Java 1.8.0_192.

C'mon ST, what is going on?

turboscrew
Senior III

Java is not my bread and butter but it's just a warning and there are issues even with Java prior to 9.

I'm still getting it and it's working for me after a 'global' reinstall.

I see this:

2018-12-17 11:18:11,120 [INFO] PluginManage:289 - Check plugin analytics

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/plugins/analytics.jar) to field java.util.TreeMap.comparator

WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

2018-12-17 11:18:11,261 [INFO] UserProfileFactory:23 - /com/st/library/analyticscore

Using oracle java 10.0.2 on Debian 9.

seyyah
Associate II

I've same bug.

I use below code for bug report (thanks to @Andreas Bolsch​ )

```sh

strace -f -e trace=open,stat /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX 2>&1 | tee bug.log

```

Our bug log is very long. So I create as Gist file:

https://gist.github.com/seyyah/c5dd16d3651d172c4ef1680e1480e9da

Java version is

```sh

java -XshowSettings:properties -version

Property settings:

  awt.toolkit = sun.awt.X11.XToolkit

  file.encoding = UTF-8

  file.encoding.pkg = sun.io

  file.separator = /

    /lib64

  java.runtime.version = 1.8.0_191-b12

  java.specification.name = Java Platform API Specification

  java.vendor = Oracle Corporation

  java.version = 1.8.0_191

  java.vm.info = mixed mode

  java.vm.name = Java HotSpot(TM) 64-Bit Server VM

  java.vm.specification.name = Java Virtual Machine Specification

  java.vm.specification.vendor = Oracle Corporation

  java.vm.specification.version = 1.8

  java.vm.vendor = Oracle Corporation

  os.arch = amd64

  os.name = Linux

  os.version = 4.18.0-12-generic

    /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar

    /usr/lib/jvm/java-8-oracle/jre/classes

  sun.boot.library.path = /usr/lib/jvm/java-8-oracle/jre/lib/amd64

  sun.cpu.endian = little

  sun.cpu.isalist = 

  sun.desktop = gnome

  sun.io.unicode.encoding = UnicodeLittle

  sun.java.launcher = SUN_STANDARD

  sun.jnu.encoding = UTF-8

  sun.management.compiler = HotSpot 64-Bit Tiered Compilers

  sun.os.patch.level = unknown

  user.country = TR

  user.dir = /home/seyyah

  user.home = /home/seyyah

  user.language = tr

  user.name = seyyah

  user.timezone = 

java version "1.8.0_191"

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

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

```

Ubuntu,

```sh

$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:  Ubuntu 18.10

Release:    18.10

Codename:    cosmic

```