laurent22 / joplin

Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
44.17k stars 4.78k forks source link

Joplin (Flatpak) does not start since update to Fedora 40 and KDE Plasma 6 #10476

Open TheLizLee opened 1 month ago

TheLizLee commented 1 month ago

System infos

Operating system

Linux - Fedora 40 KDE Spin

Joplin version

2.14.22 (Flatpak)

Desktop version info

OS related infos:

Fedora 40 KDE Spin, Kernel 6.8.10-300.fc40.x86_64 KDE Plasma: 6.0.4 KDE Frameworks: 6.2.0 Qt Version: 6.7.0 Graphics Platform: wayland (the x11 version of the kwin window manager is NOT installed)

Window manager related infos:

KWin version: 6.0.4 Qt Version: 6.7.0 Qt compile version: 6.7.0 XCB compile version: 1.17.0 Operation Mode: Xwayland Build Options: KWIN_BUILD_DECORATIONS: yes KWIN_BUILD_TABBOX: yes KWIN_BUILD_ACTIVITIES: yes HAVE_X11_XCB: yes HAVE_GLX: yes

Flatpak related infos:

Flatpak Version: 1.15.8 Runtime: runtime/org.freedesktop.Platform/x86_64/23.08 - Version: 23.08.17 Sdk: org.freedesktop.Sdk/x86_64/23.08

Joplin (Flatpak) related infos:

ID: net.cozic.joplin_desktop Ref: app/net.cozic.joplin_desktop/x86_64/stable Arch: x86_64 Branch: stable Version: 2.14.22 License: MIT Origin: flathub Collection: org.flathub.Stable Installation: system Installed: 759,4 MB Runtime: org.freedesktop.Platform/x86_64/23.08 Sdk: org.freedesktop.Sdk/x86_64/23.08

Flatpak Permissions for net.cozic.joplin_desktop:

[Context] shared=network;ipc; sockets=wayland;pulseaudio;pcsc;cups; devices=dri;all; features=bluetooth; filesystems=home;

[Session Bus Policy] org.kde.StatusNotifierWatcher=talk org.freedesktop.Notifications=talk com.canonical.AppMenu.Registrar=talk

[System Bus Policy] org.freedesktop.Avahi=talk

[Environment] GTK_PATH=/app/lib/gtkmodules

Problem description

Current behaviour

  1. Try to launch Joplin (Flatpak)
  2. Joplin does not start. Before Joplin opens the application "quit unexpectedly".

Expected behaviour

Joplin should start.

Before I updated from Fedora 39 and KDE Plasma 5.27.11 it did work. I did not change any flatpak permissions since then. I Have already tried to remove Joplin via the "--delete-data"-flag with no success.

Logs

abrt messages/entries:

exploitable: Likely crash reason: Jump to an invalid address Exploitable rating (0-9 scale): 6

reason: Joplin killed by SIGSEV

var_log_messages:

May 25 11:46:39 b450pro plasmashell[9800]: LaunchProcess: failed to execvp:
May 25 11:46:39 b450pro plasmashell[9800]: xdg-settings
May 25 11:46:39 b450pro plasmashell[9753]: Sentry: Initialized with autoUploadCrashDumps: false
May 25 11:46:39 b450pro plasmashell[9753]: [2:0525/114639.150875:ERROR:ozone_platform_x11.cc(241)] Missing X server or $DISPLAY
May 25 11:46:39 b450pro plasmashell[9753]: [2:0525/114639.150912:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.

journalctl output:

Mai 25 11:06:17 b450pro systemd[1533]: Started app-net.cozic.joplin_desktop-594bc46e247b48ea831ce99ea15a5240.scope - Joplin.
Mai 25 11:06:17 b450pro systemd[1533]: Started app-flatpak-net.cozic.joplin_desktop-5694.scope.
Mai 25 11:06:17 b450pro plasmashell[5709]: find: ‘/home/wayne/.var/app/net.cozic.joplin_desktop/config/Joplin/GPUCache’: No such file or directory
Mai 25 11:06:17 b450pro systemd[1533]: Started app-flatpak-net.cozic.joplin_desktop-5723.scope.
Mai 25 11:06:18 b450pro plasmashell[5747]: LaunchProcess: failed to execvp:
Mai 25 11:06:18 b450pro plasmashell[5747]: xdg-settings
Mai 25 11:06:18 b450pro plasmashell[5707]: Sentry: Initialized with autoUploadCrashDumps: false
Mai 25 11:06:18 b450pro plasmashell[5707]: [2:0525/110618.810128:ERROR:ozone_platform_x11.cc(241)] Missing X server or $DISPLAY
Mai 25 11:06:18 b450pro plasmashell[5707]: [2:0525/110618.810165:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
Mai 25 11:06:18 b450pro audit[5707]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=5707 comm="joplin" exe="/app/joplin-desktop/joplin" sig=11 res=1
Mai 25 11:06:18 b450pro kernel: joplin[5707]: segfault at 2d0 ip 00007fade21edae4 sp 00007ffde0125150 error 4 in libc.so.6[7fade2183000+166000] likely on CPU 1 (core 1, socket 0)
Mai 25 11:06:18 b450pro kernel: Code: b1 55 f8 5d c3 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 <8b> 87 d0 02 00 00 85 c0 0f 88 5e 01 00 00 49 89 ff 48 39 bf 20 06
Mai 25 11:06:18 b450pro audit[5749]: AVC avc:  denied  { sys_admin } for  pid=5749 comm="systemd-coredum" capability=21  scontext=system_u:system_r:systemd_coredump_t:s0 tcontext=system_u:system_r:systemd_coredump_t:s0 tclass=capability permissive=0
Mai 25 11:06:18 b450pro audit: BPF prog-id=91 op=LOAD
Mai 25 11:06:18 b450pro audit: BPF prog-id=92 op=LOAD
Mai 25 11:06:18 b450pro audit: BPF prog-id=93 op=LOAD
Mai 25 11:06:18 b450pro systemd[1]: Started systemd-coredump@4-5749-0.service - Process Core Dump (PID 5749/UID 0).
Mai 25 11:06:18 b450pro audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@4-5749-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:18 b450pro audit: BPF prog-id=94 op=LOAD
Mai 25 11:06:18 b450pro audit: BPF prog-id=95 op=LOAD
Mai 25 11:06:18 b450pro audit: BPF prog-id=96 op=LOAD
Mai 25 11:06:18 b450pro systemd[1]: Started drkonqi-coredump-processor@4-5749-0.service - Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Mai 25 11:06:18 b450pro audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=drkonqi-coredump-processor@4-5749-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:19 b450pro systemd-coredump[5750]: [🡕] Process 5707 (joplin) of user 1000 dumped core.

                                                Stack trace of thread 2:
                                                #0  0x00007fade21edae4 n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x90ae4)
                                                #1  0x00005576a375873e n/a (/app/joplin-desktop/joplin + 0x237c73e)
                                                #2  0x00005576a38d0932 n/a (/app/joplin-desktop/joplin + 0x24f4932)
                                                #3  0x00005576a39087ee n/a (/app/joplin-desktop/joplin + 0x252c7ee)
                                                #4  0x00005576a383e97d n/a (/app/joplin-desktop/joplin + 0x246297d)
                                                #5  0x00005576a383ea3e n/a (/app/joplin-desktop/joplin + 0x2462a3e)
                                                #6  0x00005576a5c1c33b n/a (/app/joplin-desktop/joplin + 0x484033b)
                                                #7  0x00005576a5c1c47e n/a (/app/joplin-desktop/joplin + 0x484047e)
                                                #8  0x00005576a5c20799 n/a (/app/joplin-desktop/joplin + 0x4844799)
                                                #9  0x00005576a5c202f8 n/a (/app/joplin-desktop/joplin + 0x48442f8)
                                                #10 0x00005576a5c1bf7e n/a (/app/joplin-desktop/joplin + 0x483ff7e)
                                                #11 0x00005576a3a3534f n/a (/app/joplin-desktop/joplin + 0x265934f)
                                                #12 0x00005576a3a36bde n/a (/app/joplin-desktop/joplin + 0x265abde)
                                                #13 0x00005576a3a369ca n/a (/app/joplin-desktop/joplin + 0x265a9ca)
                                                #14 0x00005576a3a342e7 n/a (/app/joplin-desktop/joplin + 0x26582e7)
                                                #15 0x00005576a3a343f6 n/a (/app/joplin-desktop/joplin + 0x26583f6)
                                                #16 0x00005576a375e33d n/a (/app/joplin-desktop/joplin + 0x238233d)
                                                #17 0x00007fade3d0e30b n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xad30b)
                                                #18 0x00007fade218508a n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2808a)
                                                #19 0x00007fade218514b n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2814b)
                                                #20 0x00007fade3d0e59d n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xad59d)
                                                #21 0x00005576a333702a n/a (/app/joplin-desktop/joplin + 0x1f5b02a)
                                                ELF object binary architecture: AMD x86-64
Mai 25 11:06:19 b450pro systemd[1]: systemd-coredump@4-5749-0.service: Deactivated successfully.
Mai 25 11:06:19 b450pro audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@4-5749-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:19 b450pro systemd[1533]: app-flatpak-net.cozic.joplin_desktop-5694.scope: Consumed 1.704s CPU time.
Mai 25 11:06:19 b450pro audit: BPF prog-id=93 op=UNLOAD
Mai 25 11:06:19 b450pro audit: BPF prog-id=92 op=UNLOAD
Mai 25 11:06:19 b450pro audit: BPF prog-id=91 op=UNLOAD
Mai 25 11:06:19 b450pro systemd[1]: drkonqi-coredump-processor@4-5749-0.service: Deactivated successfully.
Mai 25 11:06:19 b450pro audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=drkonqi-coredump-processor@4-5749-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:19 b450pro systemd[1533]: Started drkonqi-coredump-launcher@5-5751-0.service - Launch DrKonqi for a systemd-coredump crash (PID 5751/UID 0).
Mai 25 11:06:19 b450pro drkonqi-coredump-launcher[5761]: Unable to find file for pid 5707 expected at "kcrash-metadata/joplin.e27585f66e2d492fa0d7c365b13f18fb.5707.ini"
Mai 25 11:06:19 b450pro drkonqi-coredump-launcher[5761]: Nothing handled the dump :O
Mai 25 11:06:19 b450pro abrt-server[5763]: Unsupported container technology
Mai 25 11:06:19 b450pro abrt-server[5763]: Lock file '.lock' was locked by process 5770, but it crashed?
Mai 25 11:06:19 b450pro audit: BPF prog-id=96 op=UNLOAD
Mai 25 11:06:19 b450pro audit: BPF prog-id=95 op=UNLOAD
Mai 25 11:06:19 b450pro audit: BPF prog-id=94 op=UNLOAD
Mai 25 11:06:19 b450pro abrt-server[5763]: Error: No segments found in coredump './coredump'
Mai 25 11:06:20 b450pro abrt-server[5763]: Can't open file 'core_backtrace' for reading: No such file or directory
Mai 25 11:06:20 b450pro abrt-applet[2353]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed
Mai 25 11:06:20 b450pro abrt-notification[5821]: [🡕] Process 5707 (joplin) crashed in ??()
Mai 25 11:06:20 b450pro systemd[1]: Starting setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs...
Mai 25 11:06:20 b450pro systemd[1]: Started setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs.
Mai 25 11:06:20 b450pro audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=setroubleshootd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:21 b450pro systemd[1]: Started dbus-:1.3-org.fedoraproject.SetroubleshootPrivileged@4.service.
Mai 25 11:06:21 b450pro audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-:1.3-org.fedoraproject.SetroubleshootPrivileged@4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mai 25 11:06:21 b450pro setroubleshoot[5837]: SELinux is preventing systemd-coredum from using the sys_admin capability. For complete SELinux messages run: sealert -l d5af75e3-5cdb-4a11-a806-5e72857595e0
Mai 25 11:06:21 b450pro setroubleshoot[5837]: SELinux is preventing systemd-coredum from using the sys_admin capability.

                                              *****  Plugin catchall (100. confidence) suggests   **************************

                                              If you believe that systemd-coredum should have the sys_admin capability by default.
                                              Then you should report this as a bug.
                                              You can generate a local policy module to allow this access.
                                              Do
                                              allow this access for now by executing:
                                              # ausearch -c 'systemd-coredum' --raw | audit2allow -M my-systemdcoredum
                                              # semodule -X 300 -i my-systemdcoredum.pp
TheLizLee commented 1 month ago

Mai 25 11:06:18 b450pro plasmashell[5707]: [2:0525/110618.810128:ERROR:ozone_platform_x11.cc(241)] Missing X server or $DISPLAY

so does Joplin have a dependency on server?

that would be unfortunate because my machines will never be bothered with x11 ever again...

it worked with disabled X11 and disabled fallback X11 permissions on plasma 5.27.11 and fedora 39 though. the window was Wayland native back then.

makingglitches commented 1 month ago

APPImage seems to work fine for me. Running Fedora 40 upgraded from 38.

personalizedrefrigerator commented 1 month ago

I'm linking to the GitHub repository for the Flatpak version of Joplin. If this issue can only be reproduced with the Flatpak version of Joplin, consider reporting the issue on its repository.

joaociocca commented 1 month ago

Running on Kubuntu 24.04, after the KDE Plasma 6 update, Appimage won't run anymore. When I tried to run from terminal, I got this error:

2024-06-03 16:43:01  ./Joplin-2.14.22.appimage
[45959:0603/164302.440369:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_JoplinsyvBkl/chrome-sandbox is owned by root and has mode 4755.
[1]    45959 trace trap (core dumped)  ./Joplin-2.14.22.appimage
personalizedrefrigerator commented 3 weeks ago

Running on Kubuntu 24.04, after the KDE Plasma 6 update, Appimage won't run anymore. When I tried to run from terminal, I got this error:

2024-06-03 16:43:01  ./Joplin-2.14.22.appimage
[45959:0603/164302.440369:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_JoplinsyvBkl/chrome-sandbox is owned by root and has mode 4755.
[1]    45959 trace trap (core dumped)  ./Joplin-2.14.22.appimage

See https://github.com/laurent22/joplin/issues/10332.

TheLizLee commented 3 weeks ago

Adding --ozone-platform=wayland to the exec line solved the issue for me, thanks to TheOnAndOnlyZenomat.

See also: https://github.com/flathub/net.cozic.joplin_desktop/issues/195