Chromium flatpak reliably crashes xdg-desktop-portal

Bug #1951685 reported by Malte S. Stretz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdg-desktop-portal (Ubuntu)
New
Undecided
Unassigned

Bug Description

For a while now I am facing the issue that Chromium installed via Flatpak after a minute or so stops working with a puzzling error ERR_NO_SUPPORTED_PROXIES. I guess this is due to the Proxy feature of the desktop portal because now I noticed that the portal is actually crashing shortly after I started Chromium and/or started browsing.

According to the stack trace this happens in get_one_app_state so I think this bug was fixed in version 1.7.0 with this patch: https://github.com/flatpak/xdg-desktop-portal/commit/a0b641f1230016e8ed9a291c70d4dd226429dda4

Could that fix please be backported to 1.6.0/focal?

           PID: 15467 (xdg-desktop-por)
           UID: 1000 (xxx)
           GID: 1000 (xxx)
        Signal: 11 (SEGV)
     Timestamp: Sat 2021-11-20 16:55:00 CET (4min 23s ago)
  Command Line: /usr/libexec/xdg-desktop-portal
    Executable: /usr/libexec/xdg-desktop-portal
 Control Group: /user.slice/user-1000.slice/user@1000.service/xdg-desktop-portal.service
          Unit: user@1000.service
     User Unit: xdg-desktop-portal.service
         Slice: user-1000.slice
     Owner UID: 1000 (xxx)
       Boot ID: 1841d625a5354885a778e18a20b48103
    Machine ID: 30e0f491ec7847428bc900251dc271af
      Hostname: xxx
       Storage: /var/lib/systemd/coredump/core.xdg-desktop-por.1000.1841d625a5354885a778e18a20b48103.15467.1637423700000000000000.lz4
       Message: Process 15467 (xdg-desktop-por) of user 1000 dumped core.

                Stack trace of thread 15505:
                #0 0x00007f5990c485f4 g_str_hash (libglib-2.0.so.0 + 0x405f4)
                #1 0x00007f5990c4773c g_hash_table_lookup (libglib-2.0.so.0 + 0x3f73c)
                #2 0x00005646137cf282 get_one_app_state (xdg-desktop-portal + 0x30282)
                #3 0x00005646137cf778 background_monitor (xdg-desktop-portal + 0x30778)
                #4 0x00007f5990c83ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5 0x00007f5990bee609 start_thread (libpthread.so.0 + 0x9609)
                #6 0x00007f5990b15293 __clone (libc.so.6 + 0x122293)

                Stack trace of thread 15470:
                #0 0x00007f5990b08aff __GI___poll (libc.so.6 + 0x115aff)
                #1 0x00007f5990c5a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2 0x00007f5990c5a4a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)
                #3 0x00007f5990c5a4f1 n/a (libglib-2.0.so.0 + 0x524f1)
                #4 0x00007f5990c83ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5 0x00007f5990bee609 start_thread (libpthread.so.0 + 0x9609)
                #6 0x00007f5990b15293 __clone (libc.so.6 + 0x122293)

                Stack trace of thread 15475:
                #0 0x00007f5990b08aff __GI___poll (libc.so.6 + 0x115aff)
                #1 0x00007f5990c5a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2 0x00007f5990c5a4a3 g_main_context_iteration (libglib-2.0.so.0 + 0x524a3)
                #3 0x00007f598e5f099d n/a (libdconfsettings.so + 0xa99d)
                #4 0x00007f5990c83ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5 0x00007f5990bee609 start_thread (libpthread.so.0 + 0x9609)
                #6 0x00007f5990b15293 __clone (libc.so.6 + 0x122293)

                Stack trace of thread 15467:
                #0 0x00007f5990b08aff __GI___poll (libc.so.6 + 0x115aff)
                #1 0x00007f5990c5a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2 0x00007f5990c5a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3 0x00005646137bb7e8 main (xdg-desktop-portal + 0x1c7e8)
                #4 0x00007f5990a1a0b3 __libc_start_main (libc.so.6 + 0x270b3)
                #5 0x00005646137bb94e _start (xdg-desktop-portal + 0x1c94e)

                Stack trace of thread 15471:
                #0 0x00007f5990b08aff __GI___poll (libc.so.6 + 0x115aff)
                #1 0x00007f5990c5a36e n/a (libglib-2.0.so.0 + 0x5236e)
                #2 0x00007f5990c5a6f3 g_main_loop_run (libglib-2.0.so.0 + 0x526f3)
                #3 0x00007f5990eaff8a n/a (libgio-2.0.so.0 + 0x11ef8a)
                #4 0x00007f5990c83ad1 n/a (libglib-2.0.so.0 + 0x7bad1)
                #5 0x00007f5990bee609 start_thread (libpthread.so.0 + 0x9609)
                #6 0x00007f5990b15293 __clone (libc.so.6 + 0x122293)

xdg-desktop-portal:
  Installed: 1.6.0-1
  Candidate: 1.6.0-1
  Version table:
 *** 1.6.0-1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Distributor ID: Neon
Description: KDE neon User - Plasma 25th Anniversary Edition
Release: 20.04
Codename: focal

Tags: focal
Revision history for this message
Malte S. Stretz (mss) wrote :

This is indeed fixed at least in version 1.8.1-1~flatpak1~20.04 as installed from the official PPA.

Revision history for this message
michael zylla (gollum-z) wrote (last edit ):

Hi,

the problem occurs again with Flatpak 1.14.4: UngoogledChromium refuses to load any content after a short period of time.

Installed browser version: com.github.Eloston.UngoogledChromium 114.0.5735.106
OS: Ubuntu 20.04.6 LTS (Focal Fossa)
Desktop: Gnome 3.36.9

[edit]
I updated xdg-desktop-portal from version 1.6.0-1ubuntu2 to version 1.14.3-1~flatpak1~20.04
and now everything is fine!

:-)

[/edit]

Best regards
Michael

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.