STM32CubeIDE user interface freezing in Ubuntu 22.04 Wayland session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 8:04 AM
Hi,
I would like to report that STM32CubeIDE is freezing when running on Wayland session.
The solution I found is to start Ubuntu in a X session.
Best regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 9:06 AM
When does the crash occur? Just after starting or after a while?
I installed the generic linux version and have no problems. There is a startup script named stm32cubeide_wayland with following content:
#!/bin/bash
basedir=$(dirname "$BASH_SOURCE")
export GDK_BACKEND=x11
export GTK_THEME=Adwaita
"$basedir"/stm32cubeide "$@"
The line export GTK_THEME=Adwaita was inserted by me to make the theme work. Give it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 12:02 PM
It is not that the IDE crashes, but it stops updating the window, so it freezes and it is impossible to work with it.
The configuration in which this happens is:
It works fine in X11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 12:05 PM - edited ‎2024-04-02 12:15 PM
Ok, I will try your solution
The STM32CubeIDE uses this shortcut:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 1:34 PM
take a look at the contents of the file that you have marked in the screenshot. It has the same name than the file I mentioned. You can open it in your preferred text editor (e.g. kate). Does it have the export GDK_BACKEND=x11 entry? If not, add it.
After which time the IDE stops working?
Since CubeIDE is based on Eclipse IDE, maybe there is the problem? Could not find information about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-04 1:45 AM
I tried your solution (adding Adwaita theme) but it doesn't work.
The file already contained GDK_BACKEND=x11 theme entry.
STM32CubeIDE stops working randomly normally when I switch the Window back to STM32CubeIDE after working in another window.
I am falling back to X11 and it works flawlessly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 6:49 AM
I've just encountered this problem, today. The answer, for me, was to remove GDK_BACKEND=x11 from /opt/st/stm32cubeide_1.17.0/stm32cubeide_wayland
