cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer does not run on Fedora 41

remes-mymi
Associate II

Hello,

I have installed a fresh STM32CubeProgrammer on my Fedora 41 Linux system, but I am unable to run it.

After installation, I have tried running it both using the desktop menu entry and from terminal, however it never starts and crashes with the message "assertion 'GDK_IS_X11_DISPLAY (display)' failed"

~ $ cd .local/STM32CubeProgrammer/bin/
~/.local/STM32CubeProgrammer/bin $ ./STM32CubeProgrammer &
[1] 15440
~/.local/STM32CubeProgrammer/bin $
(java:15447): Gdk-CRITICAL **: 09:43:23.450: gdk_x11_display_set_window_scale: assertion 'GDK_IS_X11_DISPLAY (display)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000004, pid=15447, tid=0x00007f80980ff6c0
#
# JRE version: OpenJDK Runtime Environment (8.0_382-b06) (build 1.8.0_382-b06)
# Java VM: OpenJDK 64-Bit Server VM (25.382-b06 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000004
#
# Core dump written. Default location: /home/remes/.local/STM32CubeProgrammer/bin/core or core.15447
#
# An error report file with more information is saved as:
# /home/remes/.local/STM32CubeProgrammer/bin/hs_err_pid15447.log
#
# If you would like to submit a bug report, please visit:
# https://bell-sw.com/support
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./STM32CubeProgrammer: line 5: 15447 Aborted (core dumped) "$DIR"/jre/bin/java -Djdk.gtk.version=2 -jar "$DIR/STM32CubeProgrammerLauncher"

Can you help me resolve the issue?

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @remes-mymi and welcome to the ST Community.

As mentionned on the release note of the last version of the STM32CubeProgrammer, the version supported of Fedora is the Fedora 37:

STTwo32_0-1730710628632.png

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
STTwo-32
ST Employee

Hello @remes-mymi and welcome to the ST Community.

As mentionned on the release note of the last version of the STM32CubeProgrammer, the version supported of Fedora is the Fedora 37:

STTwo32_0-1730710628632.png

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello @STTwo-32, thank you for your answer.

Are there any plans regarding support for Fedora 41? Can I provide any assistance?

In the meantime, I will be using alternative solutions, since I cannot downgrade to Fedora 37.

Fedora 41 is really new. It may come on one of the releases of 2025 (I can't give you an exact release or date).

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

OK, thank you for the update.

FWIW, I was running STM32CubeProgrammer on Fedora 40 previously without any issues.

After more digging and trying to make things work by installing old Java (java-1.8.0-openjdk) I found out that the problem can be resolved by installing the gtk2 package.

Solution:

Install gtk2 package by running "sudo dnf install gtk2".