Snap GUIs not starting after amdgpu Update - how to debug?

Asked by Tobias Kronthaler

I've got an Lenovo Notebook with a AMD Ryzen 7 PRO 4750U and Ubuntu 20.04.
Recently, I upgraded the amdgpu driver from 20.20 to 21.10, and noticed that after that some snaps no longer (or better, their GUIs don't show, there is no actual crash of the process).

Those are libreoffice and thunderbird. Others, like chromium, slack, vlc work fine.

There are only a few warnings emitted that I don' think are too relevant:
(soffice:5881): Gtk-WARNING **: 20:49:33.261: Theme parsing error: gtk.css:4055:23: 'font-feature-settings' is not a valid property name
thunderbird: Gtk-Message: Failed to load module "canberra-gtk-module"

Obviously reinstalled the snaps, restarted system already, multiple times, and tried edge versions.
I found some people saying that it is due to libdrm missing in the confinement but I used unsquashfs to add it to the metafile of libreoffice with no success.
Others said it is missing a OpenCL config file but an strace showed no attempt to open such a path.

I'm grateful for any ideas how to debug this further / find the cause.

Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Eduardo Rojas Rodríguez (edurojas) said (last edit ):
#2

I just have this problem, did you manege to get a response? maybe a bug report?

I’m on Ubuntu 21.04 Hippo so I did not update any driver it’s just the fresh install of Ubuntu

PS. Other snap Zotero-snap suffers form this problem too

Revision history for this message
Eduardo Rojas Rodríguez (edurojas) said :
#3

Here are some related bug reports

Thunderbird-snap
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1936047

LibreOffice-snap
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1936047

Zotero-sanp
https://github.com/extraymond/zotero-snap/issues/16

It seems that it is related to the fact that when you open any of these snaps more than one process is opened at a time which blocks the GUI to be displayed

Revision history for this message
Jonathan Polak (jpolak) said (last edit ):
#4

I have an idential software AMD machine 4750U rayzen (thinkpad t14s) and an older intel machine both with 21.04 (hippo). My AMD machine has the exact problem you're describing. Zotero-snap doesn't have a gui. Chromium snap has FREEZES when you try to RIGHT-CLICK creating dialog boxes. OBS-STUDIO (both snap and ppa) don't seem to make use of GPU acceleration.

I tried to update the MESA driver to 21.1.4 (from 21.0.1 which ships with ubuntu 21.04) but it appears to not help.

Revision history for this message
Jonathan Polak (jpolak) said :
#5

Do the folks who have AMD hardware have this problem as well:
https://bugs.launchpad.net/mesa/+bug/1931045

Revision history for this message
Tobias Kronthaler (kronthto) said :
#6

Thanks for opening the bug reports and confirming the issue doesn't only affect me here Eduardo.
Maybe this gets some traction into it.

I also encountered an issue in an Electron app bundled as Snap (pretty standard build flow I think), where select/dropdowns would not show, but the remaining UI works: https://github.com/beekeeper-studio/beekeeper-studio/issues/679
Starting with the flag
  snap run beekeeper-studio --disable-gpu
and the issue is gone.

Maybe it can be useful if a minimal-reproducible-example could be as simple as an electron app with a select bundled as Snap (but I didn't try that).

Revision history for this message
Tobias Kronthaler (kronthto) said :
#7

Also I've seen that 21.20 driver was released just a few weeks ago (https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-21-20), I didn' try upgrading yet.

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

@Tobias Kronthaler:

You should visit the two bug reports and press the "Does this bug affect you?" button to confirm the bug reports. Only this will change the bug status from "new" to "confirmed".

Revision history for this message
Eduardo Rojas Rodríguez (edurojas) said :
#9

Hi! All

@Jonathan Polak (jpolak) @Tobias Kronthaler

As @Manfred Hampl say, if you both can, please go to the bugs reports and confirm the bugs. Let see if this issue gets some traction into it. I’m worry about the next point release of Ubuntu 20.04.3 LTS since it’s going to have a kernel upgrade to 5.11 (if I understand correctly) this it’s going to brake a lot of snaps for a lot of people with AMD laptops

Revision history for this message
Jonathan Polak (jpolak) said :
#10

Done.

On Wed, Jul 14, 2021, 08:45 Eduardo Rojas Rodríguez <
<email address hidden>> wrote:

> Question #697307 on Snappy changed:
> https://answers.launchpad.net/snappy/+question/697307
>
> Eduardo Rojas Rodríguez posted a new comment:
> Hi! All
>
> @Jonathan Polak (jpolak) @Tobias Kronthaler
>
> As @Manfred Hampl say, if you both can, please go to the bugs reports
> and confirm the bugs. Let see if this issue gets some traction into it.
> I’m worry about the next point release of Ubuntu 20.04.3 LTS since it’s
> going to have a kernel upgrade to 5.11 (if I understand correctly) this
> it’s going to brake a lot of snaps for a lot of people with AMD laptops
>
> --
> You received this question notification because you are subscribed to
> the question.
>

Revision history for this message
Eduardo Rojas Rodríguez (edurojas) said :
#11

LibreOffice snap seems to be fixed in the newer version with LO 7.2

Can you help with this problem?

Provide an answer of your own, or ask Tobias Kronthaler for more information if necessary.

To post a message you must log in.