Bug 2207986 - flatpak env compat with fedora oci repo / issues when starting via UI (icon selection)
Summary: flatpak env compat with fedora oci repo / issues when starting via UI (icon s...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: wayland
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-17 14:13 UTC by Leon Fauster
Modified: 2023-07-04 14:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-04 13:28:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-157514 0 None None None 2023-05-17 14:14:11 UTC

Description Leon Fauster 2023-05-17 14:13:34 UTC
Description of problem:

Newly installed workstation with RHEL9.2 and new user account, then install 
flatpak environment into userspace (flatpak --user)

flatpak --user remote-add --if-not-exists fedora oci+https://registry.fedoraproject.org

flatpak --user install org.gnome.Connections
flatpak --user install org.gnome.Epiphany
flatpak --user install org.mozilla.Firefox

When starting via gnome UI (icon selection) the applications do not show up but
when doing it via CLI (flatpak run  org.gnome.Epiphany) then they appear in the 
UI.

Following errors are logged when trying to start via UI/icon:

Epihany

Mai 17 00:25:57 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.ControlCenter.SearchProvider.
Mai 17 00:25:57 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.seahorse.Application.
Mai 17 00:25:57 test.localdomain nautilus[23540]: Source ID 100 was not found when attempting to remove it
Mai 17 00:25:57 test.localdomain seahorse[23605]: DNS-SD initialization failed: Daemon not running
Mai 17 00:25:59 test.localdomain systemd[20294]: Started Application launched by gnome-shell.
Mai 17 00:25:59 test.localdomain systemd[20294]: Started app-flatpak-org.gnome.Epiphany-23641.scope.
Mai 17 00:26:01 test.localdomain kernel: epiphany[23651]: segfault at 40 ip 00007f924ceb12e4 sp 00007ffef6e8b2d8 error 4 in libwayland-client.so.0.21.0[7f924ceaf000+6000]
Mai 17 00:26:01 test.localdomain kernel: Code: 84 00 00 00 00 00 f3 0f 1e fa 48 89 77 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa <8b> 47 40 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 8b 47 10 c3 0f 1f
Mai 17 00:26:01 test.localdomain systemd[1]: Created slice Slice /system/systemd-coredump.
Mai 17 00:26:01 test.localdomain systemd[1]: Started Process Core Dump (PID 23692/UID 0).
Mai 17 00:26:01 test.localdomain systemd-coredump[23693]: Resource limits disable core dumping for process 23651 (epiphany).
Mai 17 00:26:01 test.localdomain systemd-coredump[23693]: [🡕] Process 23651 (epiphany) of user 1219 dumped core.
Mai 17 00:26:01 test.localdomain systemd[1]: systemd-coredump: Deactivated successfully.
Mai 17 00:26:02 test.localdomain systemd[20294]: app-flatpak-org.gnome.Epiphany-23641.scope: Consumed 2.070s CPU time.
Mai 17 00:26:04 test.localdomain polkitd[2054]: Registered Authentication Agent for unix-process:23701:1125620 (system bus name :1.555 [/usr/bin/flatpak ps], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Mai 17 00:26:04 test.localdomain polkitd[2054]: Unregistered Authentication Agent for unix-process:23701:1125620 (system bus name :1.555, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Mai 17 00:26:50 test.localdomain gnome-shell[20446]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Mai 17 00:26:50 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.Calculator.SearchProvider.
Mai 17 00:26:50 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.Characters.BackgroundService.
Mai 17 00:26:50 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.Nautilus.
Mai 17 00:26:50 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.seahorse.Application.
Mai 17 00:26:50 test.localdomain seahorse[23748]: DNS-SD initialization failed: Daemon not running
Mai 17 00:26:50 test.localdomain nautilus[23747]: Connecting to org.freedesktop.Tracker3.Miner.Files
Mai 17 00:26:50 test.localdomain gnome-shell[20446]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Mai 17 00:26:50 test.localdomain systemd[20294]: Started dbus-:1.2-org.gnome.seahorse.Application.
Mai 17 00:26:50 test.localdomain seahorse[23806]: DNS-SD initialization failed: Daemon not running
Mai 17 00:26:51 test.localdomain systemd[20294]: Started Application launched by gnome-shell.
Mai 17 00:26:51 test.localdomain systemd[20294]: Started app-flatpak-org.gnome.Epiphany-23842.scope.
Mai 17 00:26:51 test.localdomain kernel: epiphany[23852]: segfault at 40 ip 00007f88da6fa2e4 sp 00007ffe3b883878 error 4 in libwayland-client.so.0.21.0[7f88da6f8000+6000]
Mai 17 00:26:51 test.localdomain kernel: Code: 84 00 00 00 00 00 f3 0f 1e fa 48 89 77 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa <8b> 47 40 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 8b 47 10 c3 0f 1f
Mai 17 00:26:51 test.localdomain systemd[1]: Started Process Core Dump (PID 23893/UID 0).
Mai 17 00:26:51 test.localdomain systemd-coredump[23894]: Resource limits disable core dumping for process 23852 (epiphany).
Mai 17 00:26:51 test.localdomain systemd-coredump[23894]: [🡕] Process 23852 (epiphany) of user 1219 dumped core.
Mai 17 00:26:51 test.localdomain systemd[1]: systemd-coredump: Deactivated successfully.




Firefox




Mai 17 00:31:32 test.localdomain systemd[20294]: Started Application launched by gnome-shell.
Mai 17 00:31:32 test.localdomain systemd[20294]: Started app-flatpak-org.mozilla.Firefox-25075.scope.
Mai 17 00:31:33 test.localdomain org.mozilla.Firefox.desktop[25085]: Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection. (t=0.704686) [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
Mai 17 00:31:34 test.localdomain systemd[1]: Started Process Core Dump (PID 25244/UID 0).
Mai 17 00:31:34 test.localdomain systemd-coredump[25245]: Resource limits disable core dumping for process 25085 (firefox).
Mai 17 00:31:34 test.localdomain systemd-coredump[25245]: [🡕] Process 25085 (firefox) of user 1219 dumped core.
Mai 17 00:31:34 test.localdomain systemd[1]: systemd-coredump: Deactivated successfully.
Mai 17 00:31:34 test.localdomain org.mozilla.Firefox.desktop[25203]: Exiting due to channel error.
Mai 17 00:31:34 test.localdomain org.mozilla.Firefox.desktop[25221]: Exiting due to channel error.
Mai 17 00:31:34 test.localdomain systemd[20294]: app-flatpak-org.mozilla.Firefox-25075.scope: Consumed 1.525s CPU time.
Mai 17 00:31:43 test.localdomain systemd[20294]: dbus-:1.2-org.gnome.Nautilus: Consumed 2.366s CPU time.


Connections

Mai 17 00:39:15 test.localdomain systemd[20294]: Created slice Slice /app/dbus-:1.3-org.gnome.Connections.
Mai 17 00:39:15 test.localdomain systemd[20294]: Started dbus-:1.3-org.gnome.Connections.
Mai 17 00:39:15 test.localdomain systemd[20294]: Started app-flatpak-org.gnome.Connections-30262.scope.
Mai 17 00:39:15 test.localdomain gnome-connectio[30271]: GtkFlowBox with a model will ignore sort and filter functions
Mai 17 00:39:15 test.localdomain kernel: gnome-connectio[30271]: segfault at 40 ip 00007f74987a72e4 sp 00007ffc3cec6458 error 4 in libwayland-client.so.0.21.0[7f74987a5000+6000]
Mai 17 00:39:15 test.localdomain kernel: Code: 84 00 00 00 00 00 f3 0f 1e fa 48 89 77 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 8b 47 30 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa <8b> 47 40 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 8b 47 10 c3 0f 1f
Mai 17 00:39:15 test.localdomain systemd[1]: Started Process Core Dump (PID 30284/UID 0).
Mai 17 00:39:15 test.localdomain systemd-coredump[30285]: Resource limits disable core dumping for process 30271 (gnome-connectio).
Mai 17 00:39:15 test.localdomain systemd-coredump[30285]: [🡕] Process 30271 (gnome-connectio) of user 1219 dumped core.
Mai 17 00:39:15 test.localdomain systemd[1]: systemd-coredump: Deactivated successfully.
Mai 17 00:39:15 test.localdomain systemd[20294]: dbus-:1.3-org.gnome.Connections: Main process exited, code=exited, status=139/n/a
Mai 17 00:39:15 test.localdomain systemd[20294]: dbus-:1.3-org.gnome.Connections: Failed with result 'exit-code'.







Version-Release number of selected component (if applicable):
flatpak-1.12.7-2.el9.x86_64


How reproducible:
Steps to Reproduce:
1. Install fedora OCI flatpak repo
2. Install mentioned apps
3. Start via Gnome session UI (wayland)

Actual results:
coredump and no app start

Expected results:
app starts and shows up


Additional info:
For instance the app org.gnome.Maps does not have such issues. It installs and starts normally...

Comment 1 Tomas Popela 2023-05-22 08:42:13 UTC
All of them crash with:

Mai 17 00:39:15 test.localdomain kernel: gnome-connectio[30271]: segfault at 40 ip 00007f74987a72e4 sp 00007ffc3cec6458 error 4 in libwayland-client.so.0.21.0[7f74987a5000+6000]
Mai 17 00:26:01 test.localdomain kernel: epiphany[23651]: segfault at 40 ip 00007f924ceb12e4 sp 00007ffef6e8b2d8 error 4 in libwayland-client.so.0.21.0[7f924ceaf000+6000]
Mai 17 00:31:33 test.localdomain org.mozilla.Firefox.desktop[25085]: Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection. (t=0.704686) [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.

something is wrong on the GPU side of things? Moving to wayland for further investigation.

Comment 2 Leon Fauster 2023-06-13 11:50:25 UTC
Any hints from the desktop team?

Comment 3 Niels De Graef 2023-07-03 15:46:43 UTC
Thanks for filing a BZ. Could you try to provide the following information?

* A backtrace of the segfault (ideally using a "simpler" app such as Connections)
* Run one of these apps (ideally a "simpler" app) with `WAYLAND_DEBUG=1` and attach the output

Comment 4 Leon Fauster 2023-07-03 19:01:20 UTC
A recent "flatpak update" had updated all mentioned packages. And all packages are starting from UI without any issues now. So, I do not have no way to reproduce anymore. Sorry. 

Current status:
$ LANG=C flatpak list|grep fedora|column -t
Fedora       Platform               org.fedoraproject.Platform  37      f37     fedora
Fedora       Platform               org.fedoraproject.Platform  38      f38     fedora
Connections  org.gnome.Connections  44.0                        stable  fedora  
Web          org.gnome.Epiphany     44.3                        stable  fedora  
Maps         org.gnome.Maps         44.2                        stable  fedora  
Weather      org.gnome.Weather      44.0                        stable  fedora  
Clocks       org.gnome.clocks       44.0                        stable  fedora  
Inkscape     org.inkscape.Inkscape  1.2.2                       stable  fedora  
Firefox      org.mozilla.Firefox    114.0.2                     stable  fedora  



BTW, is there a way to check the integrity of the downloaded flatpaks (are they signed?)?

Comment 5 Niels De Graef 2023-07-04 13:28:05 UTC
Thanks for the update! I'll close this as NOTABUG since it's not really possible to reproduce, and there's a good chance this was on the flatpak side.

(In reply to Leon Fauster from comment #4)
> BTW, is there a way to check the integrity of the downloaded flatpaks (are
> they signed?)?

I see you asked the same question on fedora-devel, so I'll refer to the answer you got there :-) I don't think it makes sense to have the discussion here as well.

Comment 6 Leon Fauster 2023-07-04 13:55:21 UTC
(In reply to Niels De Graef from comment #5)
> Thanks for the update! I'll close this as NOTABUG since it's not really
> possible to reproduce, and there's a good chance this was on the flatpak
> side.

Thanks for your time anyway.


> (In reply to Leon Fauster from comment #4)
> > BTW, is there a way to check the integrity of the downloaded flatpaks (are
> > they signed?)?
> 
> I see you asked the same question on fedora-devel, so I'll refer to the
> answer you got there :-) I don't think it makes sense to have the discussion
> here as well.

I do not remember asking this elsewhere, maybe a confounding with someone else. 
Could you provide the mentioned discussion? A quick archive lookup didn't gave 
me any results ... thanks!


Note You need to log in before you can comment on or make changes to this bug.