Chromium Crashes When Triggering File Dialog

Bug #1918578 reported by Eray Erdin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I've installed Chromium via Snap. Chromium seems to crash any time it triggers a native file dialog. This can be replicated by doing "Save file as", "Save image as" or simply doing CTRL+O to open a local web page.

I've launched it from the terminal to see if it has any prints. Here's what I've got *before* the crash:

```plain
/home/erayerdin/snap/chromium/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/erayerdin/snap/chromium/common/.cache/gio-modules/libdconfsettings.so
/home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiognomeproxy.so
/home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiolibproxy.so
/home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/erayerdin/snap/chromium/common/.cache/gio-modules/libgiognutls.so
Gtk-Message: 08:07:49.139: Failed to load module "appmenu-gtk-module"

(chrome:6811): Gtk-WARNING **: 08:07:52.019: /snap/chromium/1514/gnome-platform/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so: cannot open shared object file: No such file or directory

(chrome:6811): Gtk-WARNING **: 08:07:52.019: Loading IM context type 'ibus' failed

(chrome:6811): Gtk-WARNING **: 08:07:57.896: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
```

Here's what I've got *when* it crashed:

```plain
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/chromium/1506/data-dir/icons/Adwaita/16x16/status/image-missing.png: Unable to load image-loading module: /snap/chromium/1514/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/chromium/1514/gnome-platform/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
Aborted (core dumped)
```

What is the issue here? How can I resolve this?

***

# Environment

 - Kubuntu 20.04.2
 - Chromium 89.0.4389.72 (Official Build) snap (64-bit)

Revision history for this message
Eray Erdin (erayerdin) wrote :

Seems like image-missing.png is missing and since Chromium is in a confined environment and they manage the dependencies, the issue cannot seem to be resolved. At least this is what I understood from the error message.

Revision history for this message
Eray Erdin (erayerdin) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Can you please share the output of the following commands?

    snap list

    snap connections chromium

Changed in chromium-browser (Ubuntu):
status: New → Incomplete
Revision history for this message
Eray Erdin (erayerdin) wrote :
Download full text (4.9 KiB)

$ snap list

chromium 89.0.4389.72 1506 latest/stable canonical✓ -
chromium-ffmpeg 0.1 17 latest/stable canonical✓ -
code fd6f3bce 58 latest/stable vscode✓ classic
core 16-2.49 10859 latest/stable canonical✓ core
core18 20210128 1988 latest/stable canonical✓ base
core20 20201210 904 latest/stable canonical✓ base
deezer-unofficial-player 1.1.8 11 latest/stable pqpminetto -
discord 0.0.13 121 latest/stable snapcrafters -
drawio 14.4.3 103 latest/stable jgraph✓ -
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 145 latest/stable canonical✓ -
gtk-common-themes 0.1-50-gf7627e4 1514 latest/stable canonical✓ -
intellij-idea-community 2020.3.3 286 latest/stable jetbrains✓ classic
kotlin 1.4.31 57 latest/stable jetbrains✓ classic
lxd 4.12 19766 latest/stable canonical✓ -
multipass 1.6.2 3436 latest/stable canonical✓ -
opera 74.0.3911.160 112 latest/stable opera-software✓ -
ppsspp-emu 1.11 4 latest/stable nightmayr -
ruffle-unofficial x23 latest/edge - devmode,try,broken
rustup 1.23.1 617 latest/stable dsilvers classic
snapcraft 4.5.4 6120 latest/stable/… canonical✓ classic

$ snap connections chromium

Interface Plug Slot Notes
audio-playback chromium:audio-playback - -
audio-record chromium:audio-record - -
bluez chromium:bluez - -
browser-support chromium:browser-sandbox - -
camera chromium:camera - -
content chromium:gnome-3-28-1804 - -
content chromium:gtk-3-themes - -
content chromium:icon-themes - -
content chromium:sound-themes - -
cups-control chromium:cups-control - -
desktop chromium:desktop - -
desktop-legacy chromium:desktop-legacy - -
gsettings chromium:gsettings ...

Read more...

Revision history for this message
Olivier Tilloy (osomon) wrote :

Huh, there's something wrong with the connections, all the plugs appear to be disconnected. I don't think the app should even start in this situation.

Can you try removing and re-installing the snap, then check whether the "snap connections chromium" command lists plugs as being connected to slots? At the very least the following plugs should be connected:

  chromium:browser-sandbox
  chromium:gnome-3-28-1804
  chromium:desktop
  chromium:network
  chromium:x11

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for chromium-browser (Ubuntu) because there has been no activity for 60 days.]

Changed in chromium-browser (Ubuntu):
status: Incomplete → Expired
Revision history for this message
AlexB (halexjb) wrote :

I have uninstalled and reinstalled Chromium snap.

Running Chromium via the terminal gives
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Gtk-Message: 10:49:24.464: Failed to load module "xapp-gtk3-module"

(chrome:30543): dbind-WARNING **: 10:49:24.578: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-BrZcGTnIin: No such file or directory
si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
[30654:30654:0604/104924.648476:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

I'm using Ubuntu 21.04 with the Unity desktop package.

Changed in chromium-browser (Ubuntu):
status: Expired → Confirmed
status: Confirmed → Incomplete
Revision history for this message
AlexB (halexjb) wrote :

Actually, I believe this is a different bug, so will open a separate issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for chromium-browser (Ubuntu) because there has been no activity for 60 days.]

Changed in chromium-browser (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.