Failed to start flatpak document portal service.

Bug #1964930 reported by Mathieu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxml2
New
Unknown
xdg-desktop-portal (Ubuntu)
Triaged
High
Unassigned

Bug Description

Bug desciption: when launching the Calendar app (flatpak version) my system freezes for 2/3 sec, then re-become responsive, then the calendar app launcher like 10 sec after.
All my flatpak apps boot a lot slower than usual.

This bug happened with the recent update to libxml2 (one or two days ago ?).
This is not the first time it happened. See:
https://github.com/flatpak/xdg-desktop-portal-gtk/issues/107#issuecomment-454653039

I don't know where to report this, if this is relates to ubuntu or to the flatpak project. Thanks for looking into this !

Description: Ubuntu 21.10
Release: 21.10

libxml2:
  Installed: 2.9.12+dfsg-4ubuntu0.1
  Candidate: 2.9.12+dfsg-4ubuntu0.1
  Version table:
 *** 2.9.12+dfsg-4ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu impish-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.9.12+dfsg-4 500
        500 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages

flatpak:
  Installed: 1.10.2-3ubuntu0.1
  Candidate: 1.10.2-3ubuntu0.1
  Version table:
 *** 1.10.2-3ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu impish-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     1.10.2-3 500
        500 http://archive.ubuntu.com/ubuntu impish/universe amd64 Packages

systemd:
  Installed: 248.3-1ubuntu8.2
  Candidate: 248.3-1ubuntu8.2
  Version table:
 *** 248.3-1ubuntu8.2 500
        500 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu impish-security/main amd64 Packages
        100 /var/lib/dpkg/status
     248.3-1ubuntu8 500
        500 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages

journalctl -e:
mars 15 11:25:09 mathieu-ThinkPad systemd[3226]: app-gnome-gufw-20889.scope: Deactivated successfully.
mars 15 11:25:13 mathieu-ThinkPad systemd[1]: systemd-timedated.service: Deactivated successfully.
mars 15 11:25:13 mathieu-ThinkPad dbus-daemon[6461]: [session uid=1000 pid=6461] Activating via systemd: service name='org.freedesktop.port>
mars 15 11:25:13 mathieu-ThinkPad systemd[3226]: Starting flatpak document portal service...
mars 15 11:25:14 mathieu-ThinkPad xdg-document-portal[21187]: error: Failed to load db from '/home/mathieu/.local/share/flatpak/db/document>
mars 15 11:25:14 mathieu-ThinkPad systemd[3226]: xdg-document-portal.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
mars 15 11:25:14 mathieu-ThinkPad systemd[3226]: xdg-document-portal.service: Failed with result 'exit-code'.
mars 15 11:25:14 mathieu-ThinkPad systemd[3226]: Failed to start flatpak document portal service.

sudo dmesg:
[ 2380.432314] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[ 2380.445853] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[ 2380.449934] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[ 2513.367108] gnome-calendar[9096]: segfault at 400000016 ip 00007f8e926037a0 sp 00007ffe96506ca8 error 4 in libgobject-2.0.so.0.7000.4[7f8e925db000+31000]
[ 2513.367127] Code: ff fc 03 00 00 77 33 48 c1 ef 02 48 8d 05 b8 4b 02 00 48 8b 3c f8 48 81 fe fc 03 00 00 76 28 48 83 e6 fc 31 c0 48 85 ff 74 33 <f6> 47 16 04 74 05 48 85 f6 75 2d 31 c0 c3 66 90 48 83 e7 fc 48 81
[ 2739.248107] [UFW BLOCK] IN=wlp3s0 OUT= MAC=a8:6d:aa:ef:af:b5:be:0d:fd:89:d3:3b:08:00 SRC=142.250.200.129 DST=192.168.43.18 LEN=40 TOS=0x00 PREC=0x00 TTL=116 ID=0 DF PROTO=TCP SPT=443 DPT=56418 WINDOW=0 RES=0x00 RST URGP=0
[ 4484.828195] gnome-calendar[20663]: segfault at 400000016 ip 00007f4c418207a0 sp 00007ffc815aff58 error 4 in libgobject-2.0.so.0.7000.4[7f4c417f8000+31000]
[ 4484.828209] Code: ff fc 03 00 00 77 33 48 c1 ef 02 48 8d 05 b8 4b 02 00 48 8b 3c f8 48 81 fe fc 03 00 00 76 28 48 83 e6 fc 31 c0 48 85 ff 74 33 <f6> 47 16 04 74 05 48 85 f6 75 2d 31 c0 c3 66 90 48 83 e7 fc 48 81

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: systemd 248.3-1ubuntu8.2
ProcVersionSignature: Ubuntu 5.13.0-35.40-generic 5.13.19
Uname: Linux 5.13.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 15 11:28:05 2022
MachineType: LENOVO 20BXCTO1WW
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.13.0-35-generic root=UUID=cd963331-afa1-4933-8bc2-5e53bb0b1c24 ro quiet splash vt.handoff=7
SourcePackage: systemd
SystemdFailedUnits:
 Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
 Unit \xe2\x97\x8f.service could not be found.
 ------
 Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
 Unit \xe2\x97\x8f.service could not be found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/14/2019
dmi.bios.release: 1.37
dmi.bios.vendor: LENOVO
dmi.bios.version: JBET73WW (1.37 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BXCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50512 STD
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.4
dmi.modalias: dmi:bvnLENOVO:bvrJBET73WW(1.37):bd08/14/2019:br1.37:efr1.4:svnLENOVO:pn20BXCTO1WW:pvrThinkPadT450s:rvnLENOVO:rn20BXCTO1WW:rvrSDK0E50512STD:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20BX_BU_Think_FM_ThinkPadT450s:
dmi.product.family: ThinkPad T450s
dmi.product.name: 20BXCTO1WW
dmi.product.sku: LENOVO_MT_20BX_BU_Think_FM_ThinkPad T450s
dmi.product.version: ThinkPad T450s
dmi.sys.vendor: LENOVO

Revision history for this message
Mathieu (mbousq) wrote :
Mathieu (mbousq)
affects: systemd → libxml2
affects: systemd (Ubuntu) → libxml2 (Ubuntu)
no longer affects: libxml2
Mathieu (mbousq)
description: updated
Changed in libxml2:
status: Unknown → Fix Released
Revision history for this message
Mathieu (mbousq) wrote (last edit ):

I found the culprit, being a 0 byte "documents" file in the flatpak database. I filed an issue in the flatpak github.

https://github.com/flatpak/xdg-desktop-portal/issues/369#issuecomment-1068915444

I still don't know if this relates to libxml2, and if it is worth being investigated how that 0 byte file was created. Thanks for reading.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for reporting it upstream!

affects: libxml2 (Ubuntu) → xdg-desktop-portal (Ubuntu)
Changed in xdg-desktop-portal (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in libxml2:
status: Fix Released → Unknown
Changed in libxml2:
status: Unknown → New
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.