cancel
Showing results for 
Search instead for 
Did you mean: 

Error trying to launch STM32CubeIDE on linux!

RBamf.1
Associate III

I have installed the STM32CubeIDE 1.12.0 from the STM32 official website onto my Arch Linux laptop but when i try to launch it, it closes and reports an error after the splash screen.

I have searched on pacman (the arch package manager) for stm32cubeide too, but they are having the same error too. See the comments section on https://aur.archlinux.org/packages/stm32cubeide

Here is the error:

[ri@r Desktop]$ /opt/st/stm32cubeide_1.12.0/stm32cubeide_wayland
SWT WebKitGDBus: error creating DBus server Error binding to address (GUnixSocketAddress): No such file or directory
SWT WebKit: error initializing DBus server, dBusServer == 0
 
(STM32CubeIDE:9473): GLib-GIO-CRITICAL **: 16:40:15.499: g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd88683ed16, pid=9473, tid=9474
#
# JRE version: OpenJDK Runtime Environment Temurin-11.0.17+8 (11.0.17+8) (build 11.0.17+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (11.0.17+8, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libswt-gtk-4950r5.so+0x3ed16]  Java_org_eclipse_swt_internal_C_strlen+0xf
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/richard/Desktop/core.9473)
#
# An error report file with more information is saved as:
# /home/r/Desktop/hs_err_pid9473.log
Compiled method (nm)    9481 5616     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007fd917d3c190,0x00007fd917d3c530] = 928
 relocation     [0x00007fd917d3c308,0x00007fd917d3c338] = 48
 main code      [0x00007fd917d3c340,0x00007fd917d3c528] = 488
 oops           [0x00007fd917d3c528,0x00007fd917d3c530] = 8
Compiled method (nm)    9486 5616     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007fd917d3c190,0x00007fd917d3c530] = 928
 relocation     [0x00007fd917d3c308,0x00007fd917d3c338] = 48
 main code      [0x00007fd917d3c340,0x00007fd917d3c528] = 488
 oops           [0x00007fd917d3c528,0x00007fd917d3c530] = 8
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

And the error report file is attached below.

40 REPLIES 40
MKanc.1
Associate III

I have same problem with latest arch linux. A software shouldn't decide my linux distro.

Seems like we have to wait for update. Proposed solution as running "stm32cubeide_wayland" did not worked for me.

Flatpak, snap and AppImage are kinds of a sandbox where STM32CubeMX runs in. This has advantages and also disadvantages. But the left main question is , do I really need the newest version?

https://www.st.com/resource/en/release_note/rn0114-stm32cubeide-release-v1120-stmicroelectronics.pdf

You should NEVER manually upgrade the essential (g)libc. Let always the installer do this. I've several years ago manually updated the glibc and the whole system was suddenly unusable. Two days ago the glibc was updated on my pc, no issues so far, except that I expect an issue if I want to run STM32CubeMX 1.12.0. :grinning_face:

Certainly if we are not using last generation MCUs we can continue using STM32CUBEIDE from previous versions.

And that's what I did, I uninstalled version 12 and I stayed at 1.11.2

BRoy.1
Associate

This worked for me (Ubuntu Lunar (dev) :(

$ sudo apt install libwebkitgtk-6.0-4

The distro included libwebkit2gtk, but not libwebkitgtk by default

CClau.1
Associate

maybe a glib2 bug:

bugzilla.redhat.com/show_bug.cgi?id=2169622

open opensuse tumbleweed, all versions are broken from 1.7.0 on (1.6.1 being the last one that still works)

CClau.1
Associate

this can be worked around by switching the browser implementation for eclipse. Just add:

-Dorg.eclipse.swt.browser.DefaultType=chromium

to the end of stm32cubeide.ini

You may need to install ~/.swt/lib/linux/x86_64/chromium-3071/libcef.so (I just copied it from my zoom install) and then you can use it again!

Sadly rolling back to 1.11 does not fix the issue for me, i tried 1.11.0 and 1.11.2, getting the exact same issue.

jea74
Associate III

same problem with opensuse tumbleweet, the work around above from CClau.1 does not work...

Tried to put libcef.so in several locations but it does not work (/usr/lib, ect.), same problem

Tried -Dorg.eclipse.swt.browser.DefaultType=opera or firefox does not work...

After you have copied a library to the system library directories like /lib, /usr/lib, ... you have to run as root 'ldconfig' once or reboot.

ldconfig creates the necessary symbolic links which are pointing to the new library so that an application can find it.