Chromium can't be loaded in some cases

Using Ubuntu 19.10 Eoan with snapd (2.39.2+19.10ubuntu1) and chromium 75

  • chromium always load slowly
  • after some system upgrades (gcc/python/gvfs ?) chromium load silently die
  • then the saved passwords are all lost

Initially reported on https://ubuntuforums.org/showthread.php?t=2422675, where uptodate comments are sent.

your last point is discussed in

Thanks for starting this new thread @dino99. As points #1 and #3 are already discussed elsewhere, let’s use this thread to discuss point #2 specifically. Would you mind pasting the logs from your original ubuntuforums.org thread here? Thanks!

Here are logs from the beginning of loading issue:
(note that initially chromium was a deb, then got the snap transition for chromium 75)
snap 2.39.2+19.10ubuntu1
snapd 2.39.2+19.10ubuntu1
series 16
ubuntu 19.10
kernel 5.2.0-8-generic
Intel® HD Graphics 530 (Skylake GT2)

  • first issue:
    chromium_chromium.desktop[1736]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_8RyedF//dev: No such file or directory

  • been loaded after two cold boots:

juil. 11 17:15:15 oem-desktop audit[783]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromium" pid=783 comm="apparmor_parser"
juil. 11 17:15:15 oem-desktop audit[788]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromedriver" pid=788 comm="apparmor_parser"
juil. 11 17:15:15 oem-desktop audit[789]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap-update-ns.chromium" pid=789 comm="apparmor_parser"
juil. 11 17:15:14 oem-desktop systemd[1]: Mounted Mount unit for chromium, revision 784.
juil. 11 17:15:14 oem-desktop systemd[1]: Mounted Mount unit for chromium, revision 787.
juil. 11 17:15:21 oem-desktop snapd[973]: storehelpers.go:441: cannot refresh: snap has no updates available: "chromium", "core", "core18", "gtk-common-themes", "snapd"
juil. 11 17:15:37 oem-desktop dbus-daemon[1585]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.secrets" pid=2293 label="snap.chromium.chromium" peer_pid=1571 peer_label="unconfined"
juil. 11 17:15:40 oem-desktop audit[958]: USER_AVC pid=958 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=2060 label="snap.chromium.chromium"
juil. 11 17:15:40 oem-desktop kernel: audit: type=1107 audit(1562858140.207:38): pid=958 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=2060 label="snap.chromium.chromium"
juil. 11 17:15:40 oem-desktop dbus-daemon[1585]: [session uid=1000 pid=1585] Activating service name='io.snapcraft.Settings' requested by ':1.79' (uid=1000 pid=2337 comm="dbus-send --print-reply=literal --session --dest=i" label="snap.chromium.chromium (enforce)")
juil. 11 17:15:41 oem-desktop chromium_chromium.desktop[1764]: [2320:2320:0711/171541.228231:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
juil. 11 17:15:41 oem-desktop chromium_chromium.desktop[1764]: [2320:2320:0711/171541.847035:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command```

- load broken again:
```oem@oem-desktop:~$ journalctl -b | grep chromium
juil. 13 09:50:17 oem-desktop audit[719]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromium" pid=719 comm="apparmor_parser"
juil. 13 09:50:17 oem-desktop audit[724]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromedriver" pid=724 comm="apparmor_parser"
juil. 13 09:50:17 oem-desktop audit[725]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap-update-ns.chromium" pid=725 comm="apparmor_parser"
juil. 13 09:50:17 oem-desktop systemd[1]: Mounted Mount unit for chromium, revision 787.
juil. 13 09:50:39 oem-desktop chromium_chromium.desktop[1729]: Importing existing chromium profile from /home/oem/.config/chromium (version 74.0.3729.169)
juil. 13 09:50:41 oem-desktop chromium_chromium.desktop[1729]: Import done in 2.514 s
juil. 13 09:50:41 oem-desktop dbus-daemon[1561]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.secrets" pid=2290 label="snap.chromium.chromium" peer_pid=1547 peer_label="unconfined"
juil. 13 09:50:44 oem-desktop audit[967]: USER_AVC pid=967 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=2038 label="snap.chromium.chromium"
juil. 13 09:50:44 oem-desktop kernel: audit: type=1107 audit(1563004244.355:38): pid=967 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=2038 label="snap.chromium.chromium"
juil. 13 09:50:44 oem-desktop dbus-daemon[1561]: [session uid=1000 pid=1561] Activating service name='io.snapcraft.Settings' requested by ':1.78' (uid=1000 pid=2333 comm="dbus-send --print-reply=literal --session --dest=i" label="snap.chromium.chromium (enforce)")
juil. 13 09:50:45 oem-desktop chromium_chromium.desktop[1729]: [2317:2317:0713/095045.383962:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
juil. 13 09:50:46 oem-desktop chromium_chromium.desktop[1729]: [2317:2317:0713/095046.037956:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: [1:1:0713/095057.794085:ERROR:native_extension_bindings_syst em.cc(607)] Failed to create API on Chrome object.
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: [1:1:0713/095057.796046:ERROR:native_extension_bindings_syst em.cc(607)] Failed to create API on Chrome object.
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-desktop-menu
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-icon-resource
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-icon-resource
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-icon-resource
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-icon-resource
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: LaunchProcess: failed to execvp:
juil. 13 09:50:57 oem-desktop chromium_chromium.desktop[1729]: xdg-desktop-menu
juil. 13 09:51:07 oem-desktop chromium_chromium.desktop[1729]: [1:1:0713/095107.607682:ERROR:native_extension_bindings_syst em.cc(607)] Failed to create API on Chrome object.
juil. 13 09:51:07 oem-desktop chromium_chromium.desktop[1729]: [1:1:0713/095107.611250:ERROR:native_extension_bindings_syst em.cc(607)] Failed to create API on Chrome object.```

- logged  with a normal chromium load:
```oem@oem-desktop:~$ journalctl -b | grep chromium
juil. 15 05:40:18 oem-desktop systemd[1]: Mounted Mount unit for chromium, revision 784.
juil. 15 05:40:18 oem-desktop systemd[1]: Mounted Mount unit for chromium, revision 787.
juil. 15 05:40:18 oem-desktop audit[651]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromium" pid=651 comm="apparmor_parser"
juil. 15 05:40:18 oem-desktop audit[658]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.chromium.chromedriver" pid=658 comm="apparmor_parser"
juil. 15 05:40:18 oem-desktop audit[659]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap-update-ns.chromium" pid=659 comm="apparmor_parser"
juil. 15 05:40:24 oem-desktop snapd[987]: storehelpers.go:441: cannot refresh: snap has no updates available: "chromium", "core", "core18", "gtk-common-themes", "snapd"
juil. 15 05:44:39 oem-desktop dbus-daemon[1600]: apparmor="DENIED" operation="dbus_method_call" bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name="org.freedesktop.secrets" pid=4614 label="snap.chromium.chromium" peer_pid=1586 peer_label="unconfined"
juil. 15 05:44:42 oem-desktop audit[932]: USER_AVC pid=932 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=4501 label="snap.chromium.chromium"
juil. 15 05:44:42 oem-desktop kernel: audit: type=1107 audit(1563162282.355:38): pid=932 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=4501 label="snap.chromium.chromium"
juil. 15 05:44:42 oem-desktop dbus-daemon[1600]: [session uid=1000 pid=1600] Activating service name='io.snapcraft.Settings' requested by ':1.83' (uid=1000 pid=4660 comm="dbus-send --print-reply=literal --session --dest=i" label="snap.chromium.chromium (enforce)")
juil. 15 05:44:43 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/054443.390235:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
juil. 15 05:44:43 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/054443.977331:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 15 06:32:34 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/063234.799512:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 15 06:32:48 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/063248.535542:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 15 06:33:46 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/063346.099964:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 15 06:34:09 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/063409.056553:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
juil. 15 06:34:36 oem-desktop dbus-daemon[1600]: apparmor="DENIED" operation="dbus_bind" bus="session" name="org.mpris.MediaPlayer2.chromium.instance4501 " mask="bind" pid=4501 label="snap.chromium.chromium"
juil. 15 06:34:36 oem-desktop chromium_chromium.desktop[1778]: [4501:4702:0715/063436.237435:ERROR:bus.cc(554)] Failed to get the ownership of org.mpris.MediaPlayer2.chromium.instance4501: Connection ":1.96" is not allowed to own the service "org.mpris.MediaPlayer2.chromium.instance4501" due to AppArmor policy
juil. 15 06:56:08 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/065608.800719:ERROR:gles2_cmd_decoder.cc(18461)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
juil. 15 06:56:08 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/065608.801360:ERROR:gles2_cmd_decoder.cc(18461)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
juil. 15 06:56:08 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/065608.801480:ERROR:gles2_cmd_decoder.cc(10734)] [.DisplayCompositor]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
juil. 15 06:56:08 oem-desktop chromium_chromium.desktop[1778]: [4643:4643:0715/065608.801509:ERROR:gles2_cmd_decoder.cc(10734)] [.DisplayCompositor]RENDER WARNING: texture bound to texture unit 2 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.```

could you please edit your post and put any pasted code/logs between three backticks so it gets actually readable ?

also, what is the exact output of snap version and do you use any proprietary driver for your graphics card (i.e. nvidia)