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

I can help. And I say this in the most serious, sincere, and non-sarcastic way possible.

Get rid of STM32CubeIDE and any other Eclipse-based IDE. Install VSCode or Geany or literally any other IDE besides Eclipse. Then install and use STM32CubeMX to generate your code to load into the better IDE.

Thanks for your comments @squiggle. It may come to that...

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

I would love to and i am already writing most of my code in vim, but sadly there is no proper debugging support outside of CubeIDE or at least i did not manage to get it to run until now.

My first STM32CubeIDE was version 1.8.x or similar and I've updated it until version 1.11.x with the Linux Arch packet manager. I don´t know if Suse has a repository where STM32CubeIDE is part of it but if so use the packet managed version.

I'm more or less sure that you can use STM32CubeIDE until version 1.11.x. The issues with crashing of the IDE comes wirh version 1.12.x. Version 1.11.x is not very old. In the packet management configuration I've freezed this version until it's clear that a newer version will work with the installed environment like GTK libraries.

I did try V1.10 (the earliest version for STM32WB), but it has the same issue.

I reinstalled V1.8 into a different folder, to test my notes on the process, it worked okay. I changed the permissions on that folder to see if would allow self-update - it did. But the update to V1.12 has the same problem too!!!

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
AKoch.6
Associate

Seems to be same issue:

community.st.com/s/question/0D53W00002FDNNJSA5/can-no-longer-create-a-new-workspace-stm32cubeide-1121

AKoch.6
Associate

Marcelo Jimenez Shellscript (fix_stm32cubeide) worked for me

Thanks @AKoch.6, "fix_stm32cubeide" fixed it for me too. :grinning_face:

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
ASN.1
Associate

I had the same issue and this line of the error message caught my eye:

SWT WebKitGDBus: error creating DBus server Error binding to address (GUnixSocketAddress): No such file or directory

I looked into the source code of SWT to find out where this error happens. I saw it wants to open a directory named 

/tmp/SWT-GDBusServer

 and throws the error if it doesn't exist. so I manually created this directory and to my surprise it fixed the issue.

mkdir '/tmp/SWT-GDBusServer'

thank you so much, creating the missing folder

fixed the problem i can now succesfully launch the last version !

the fix was surprisingly really easy