STM32cube ide Hangs opening document in Software Packs Component Selector
- February 3, 2024
- 4 replies
- 4607 views
When I view the information panel after selecting the "X-CUBE-BLE2" -> "Device BLE2_Applications" -> "Application" -> "SensorDemoBLE..." and clicking on the "Documentation: STMicroelectronics X-CUBE-BLE2_GettingStarted..." link, the "Software Packs Component Selector" popup window hangs and cannot be closed. The document is never displayed.
From what I can tell, it is attempting to load "/home/me/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-BLE2/3.3.0/Documentation/STMicroelectronics.X-CUBE-BLE2_GettingStarted.pdf".
I ran the IDE software updates via the "Help" menu yesterday, so I assume it is the latest version. The command line shows it is running "/opt/st/stm32cubeide_1.12.0//plugins/com.st.stm32cube.ide.jre.linux64_3.1.0.202310310920/jre/bin/java" with "-Dosgi.instance.area.default=@user.home/STM32CubeIDE/workspace_1.14.1 -Declipse.buildId=Version 1.14.1"
The "Help" -> "About" shows:
Version: 1.14.1
Build: 20064_20240111_1413 (UTC)
There were other non-java processes running which seemed related using the path "/home/me/.stm32cubeide/.jxbrowser-7.35.1/Chromium/chromium". I terminated them, but the popup window is still not responding.
It appears the java AWT Event thread is hung. The stack trace is:
"AWT-EventQueue-0" #78 prio=6 os_prio=0 cpu=72358.73ms elapsed=88480.05s tid=0x00007fa7606a6a40 nid=0xee82 runnable [0x00007fa7da5ed000]
java.lang.Thread.State: RUNNABLE
at sun.awt.X11.XDesktopPeer.gnome_url_show(java.desktop@17.0.8.1/Native Method)
at sun.awt.X11.XDesktopPeer.launch(java.desktop@17.0.8.1/XDesktopPeer.java:119)
at sun.awt.X11.XDesktopPeer.browse(java.desktop@17.0.8.1/XDesktopPeer.java:108)
at java.awt.Desktop.browse(java.desktop@17.0.8.1/Desktop.java:533)
at com.st.microxplorer.plugins.thirdparty.gui.view.DetailsWarningPanel$CustomLinkModelAction.actionPerformed(DetailsWarningPanel.java:135)
at javax.swing.AbstractButton.fireActionPerformed(java.desktop@17.0.8.1/AbstractButton.java:1972)
at org.jdesktop.swingx.JXHyperlink.fireActionPerformed(JXHyperlink.java:266)
...
at java.awt.EventDispatchThread.pumpEvents(java.desktop@17.0.8.1/EventDispatchThread.java:109)
at java.awt.EventDispatchThread.pumpEvents(java.desktop@17.0.8.1/EventDispatchThread.java:101)
at java.awt.EventDispatchThread.run(java.desktop@17.0.8.1/EventDispatchThread.java:90)
I have included the full thread dump in the attached "stack.txt"
In addition to this hanging, in the "STM32Cube IDE" in the "Information Center" window, on the RHS there are links for "Support & Community", "Standalone STM32 Tools", and "Application Tools". Clicking on any of those does nothing. I assumed it would open the default browser or perhaps in a new tab in the IDE, but nothing happens.
Similarly, clicking on the "STM32 videos" opens the video thumbnails in a new page, but again, nothing happens when clicking on a video.
I can open the file in the OS default application in java via jshell by doing:
$ jshell
jshell> java.awt.Desktop dt = java.awt.Desktop.getDesktop();
jshell> var uri = new java.net.URI( "file:///home/me/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-BLE2/3.3.0/Documentation/STMicroelectronics.X-CUBE-BLE2_GettingStarted.pdf" );
jshell> dt.browse( uri );
So, the functionality is there, but I'm using jshell of java version:
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-122.04, mixed mode, sharing)
I am running on "Ubuntu 22.04.3 LTS"

