Empty dropdown menus

I installed standard-notes on focal (X11) and jammy beta (X11 and Wayland), and couldn’t reproduce the issue. In both systems I see dbus and application error messages in the terminal at start time related to migration of backup files, theme parsing and secret service, but menu content seems to appear as expected (see screenshot below).

Versions on jammy:

claudio@jammy:~$ snap version
snap    2.55.2+22.04.1
snapd   2.55.2+22.04.1
series  16
ubuntu  22.04
kernel  5.15.0-25-generic

Versions on focal:

$ snap version
snap    2.55.2+git248.ga4da44a
snapd   2.55.2+git248.ga4da44a
series  16
ubuntu  20.04
kernel  5.13.0-22-generic

Are you using any nonstandard configuration on your system, or is there any special procedure we can follow to reproduce the problem?

I think it has something to do with my hardware. The problem already existed without any configuration. I have a Ubuntu VM on the same system without the problem.

what graphics cards and what drivers are in use on these systems ?

Lenovo ThinkPad E14 Gen3 (20Y7003XGE) with AMD Radeon RX Vega 8 (Ryzen 4000)

I did not change any drivers.

$ lshw -c video

*-display                 
       description: VGA compatible controller
       product: Lucienne
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:04:00.0
       version: c1
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
       configuration: driver=amdgpu latency=0
       resources: iomemory:40-3f iomemory:40-3f irq:42 memory:460000000-46fffffff memory:470000000-4701fffff ioport:1000(size=256) memory:fd300000-fd37ffff

$ modinfo amdgpu

filename:       /lib/modules/5.13.0-39-generic/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko
license:        GPL and additional rights
description:    AMD GPU
author:         AMD linux driver team

I hope these informations help.

Are the faulty systems pre-installed with Ubuntu, or did you install them using the iso?

I used the ISO downloaded from there: https://ubuntu.com/download/desktop

@facundobatista Could you try to reproduce this problem in your AMD-based Thinkpad? I don’t think it’s related to this specific platform, but I’ve seen strange things happen before.

I tried beekeeper-studio.

Installation and run:

11:43:56|facundo@camdeonita:~$ sudo snap install beekeeper-studio
[sudo] contraseña para facundo:
Se ha instalado beekeeper-studio 3.3.8 por Beekeeper Studio (matthew-rathbone)
11:44:55|facundo@camdeonita:~$ beekeeper-studio
11:45:51.819                     › initializing background
Gtk-Message: 11:45:52.558: Failed to load module "colorreload-gtk-module"
Gtk-Message: 11:45:52.559: Failed to load module "window-decorations-gtk-module"
running migrations
/usr/share/libdrm/amdgpu.ids: No such file or directory

(beekeeper-studio-bin:2372823): dbind-WARNING **: 11:45:56.152: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gMuXMZ61m0: No such file or directory

If I try the File, View or Help options, they are ok. But the Edit menu is totally blank:

blank-edit

System info

$ snap version
snap    2.54.4
snapd   2.54.4
series  16
ubuntu  21.10
kernel  5.13.0-39-generic

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish

$ uname -a
Linux camdeonita 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ env | grep DESKTOP
DESKTOP_SESSION=plasma
XDG_SESSION_DESKTOP=KDE
XDG_CURRENT_DESKTOP=KDE

$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Renoir
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: /dev/fb0
       version: d1
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
       configuration: depth=32 driver=amdgpu latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:80-7f iomemory:80-7f irq:78 memory:860000000-86fffffff memory:870000000-8701fffff ioport:1000(size=256) memory:fd300000-fd37ffff

So, as strange as it might sound, this seems to happen only (or more frequently) on AMD machines. I tested it in a Ryzen 3 4350G system running impish with Gnome on X11 and some menus are indeed empty:

Screenshot from 2022-04-12 18-45-43

$ uname -a
Linux peashooter 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

# lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Renoir
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:07:00.0
       version: da
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list
       configuration: driver=amdgpu latency=0
       resources: irq:24 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:e000(size=256) memory:fcc00000-fcc7ffff memory:c0000-dffff

this was my suspicion (and why i asked about the graphics driver above) …

while i always thought the amdgpu.ids warning would be harmless, i wonder if it actually is not and we need to do something in the opengl interface handling to pull/bind that file into the snap namespace from the host.

on my laptop: Ryzen 4650U, Wayland, Fedora 36 beta

if I change monitor scaling to 200% (without fractional), the menu is no longer empty

Keep monitor scaling at 100%, change font scaling to 1.3, the menu is no longer empty.

Like @sebastianjacobs said: all apps that have problem are electron

1 Like

Interesting, some dropdowns work perfectly fine now with changed scaling options in Ubuntu or the electron snap itself. But other dropdowns that have worked before, don’t work with these changed options.

I’m having the same issue on a HP Pavilion desktop with AMD Ryzen 7 5700G.

I first noticed the issue with Beekeeper Studio, mainly because it has so many of these menus. What I have found is that if I keep clicking on things and tell it to “wait” when the application is not responding, eventually, it will populate all of the menus and function normally.

I have also noticed the issue with slack (also electron,) mainly on the right-click menus, which I hardly ever use, so it’s not really a big deal.

$ snap version
snap    2.56.2
snapd   2.56.2
series  16
ubuntu  22.04
kernel  5.15.0-33-generic

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

$ uname -a
Linux compy386 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:34:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ env | grep DESKTOP
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
DESKTOP_SESSION=ubuntu
XDG_SESSION_DESKTOP=ubuntu
XDG_CURRENT_DESKTOP=ubuntu:GNOME

$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Cezanne
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:0c:00.0
       logical name: /dev/fb0
       version: c8
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=2560,1440
       resources: irq:30 memory:d0000000-dfffffff memory:e0000000-e01fffff ioport:f000(size=256) memory:fca00000-fca7ffff
1 Like

I followed the instructions here to unsquash beekeeper-studio and edit the snap.yaml to add a layout. AMD OSS graphics drivers missing access to amdgpu.ids file

I used the layout as described in this firefox bug. https://bugzilla.mozilla.org/show_bug.cgi?id=1710326#c4

layout:
  /usr/share/libdrm:
    bind: $SNAP/gnome-platform/usr/share/libdrm

I am no longer getting the message about missing amdgpu.ids, but it did not change the behavior of the menus in the application.

Just tested it again with the newest Ubuntu version.

Looks like Canonical don’t care or they don’t know how to fix this. They are completely focused on the snaps they are publishing (Firefox and Steam). Meanwhile on a lot of systems third-party snaps (such as Bitwarden, Beekeeper Studio, Insomnia, Standard Notes, …) are broken.

why would a newer ubuntu version fix anything in the electron shipped in the snaps ?

it is obviously something that’s going wrong between electron and amdgpu and likely only a re-build of the snaps against a fixed/newer electron (if that exists yet) would fix the issue here …

Is this a fact? There could also be something going wrong between snap and amdgpu…

I mean it works on Flatpaks and Deb packages…

using the exact same electron versions as the snaps ?

https://answers.microsoft.com/en-us/skype/forum/all/skype-desktop-879095-manjaro-linux-dropdown-menus/c6738905-b59e-4f80-9bc8-7c116c0504c3