Skip to content

[Bug]: Electron flatpaks crash when starting up after recent updates #6465

@CTRLexe

Description

@CTRLexe

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

Flatpak 1.16.1

What Linux distribution are you using?

Linux Mint

Linux distribution version

Linux Mint Zara 22.2, Kernel 6.8.0-90-generic

What architecture are you using?

x86_64

How to reproduce

  1. Receive updates for packages: flatpak, gir1.2flatpak-1.0, libflatpak0, and bubblewrap, and then update them.
  2. Start up an electron-based app like Bitwarden or Freetube.
  3. Wait for it to load.
  4. Crashes before you can do anything.

Expected Behavior

Lets me use the app uninterrupted.

Actual Behavior

Crashes right after start up.

Additional Information

It's only electron based flatpaks that have this issue. My other flatpaks are running fine and I've temporarily switched to system packages (or in the case of Bitwarden, a browser extension) for my electron-based apps.
I've tried uninstalling (with flatpak uninstall [package-name] --delete-data]) and then reinstalling them. It didn't work.
I've also tried to turning on and off certain permissions (GPU acceleration, DBus permissions, different levels of file access, etc) in Flatseal, but it doesn't seem to work. Others I asked suspected it might be a driver issue, but acknowledged it was possible it might be related to the update. So I apologize if it is a driver issue. But I'd still like help to fix it if you can either way.
Here's some errors when I try to run the flatpaks in the terminal:
Freetube:

flatpak run io.freetubeapp.FreeTube
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 08:52:38.616: Failed to load module "xapp-gtk3-module"
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
[2:0102/085239.187581:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187623:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187640:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187651:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187664:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187673:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187683:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.187692:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.188912:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.188927:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200260:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200287:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200303:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200311:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200364:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.200374:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.214863:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid(). 
[2:0102/085239.214893:ERROR:site_info.cc(930)] Check failed: real_url_info.origin->GetTupleOrPrecursorTupleIfOpaque() .IsValid().`
electron apps keep seeming to crash
i tried looking online and it seems to be a problem with the xapp-gtk3 module that i'm having trouble fixing
i tried these commands and here are the error messages i got:

Vesktop:

flatpak run dev.vencord.Vesktop
Running on X11
To use Wayland instead, remove the --socket=x11 permission
Passing the following arguments to Electron: --enable-speech-dispatcher
[3:0101/150559.657637:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Failed to parse Vesktop settings.json: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Ql (VesktopMain:80:51740)
    at VesktopMain:80:52202
    at VesktopMain:1:226
    at Object.<anonymous> (VesktopMain:80:54411)
    at Module._compile (node:internal/modules/cjs/loader:1714:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1848:10)
    at Module.load (node:internal/modules/cjs/loader:1448:32)
    at Module._load (node:internal/modules/cjs/loader:1270:12)
    at c._load (node:electron/js2c/node_init:2:17993)
APPIMAGE env is not defined, current application is not an AppImage
Vesktop v1.6.3
Disabled Chromium features: WinRetrieveSuggestionsOnlyOnDemand, HardwareMediaKeyHandling, MediaSessionService
Gtk-Message: 15:05:59.858: Failed to load module "xapp-gtk3-module"
[3:0101/150559.915460:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:0101/150559.915529:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
[43:0101/150600.020673:ERROR:media/gpu/vaapi/vaapi_wrapper.cc:1631] vaInitialize failed: unknown libva error
/app/bin/startvesktop: line 28:     3 Bus error                  (core dumped) zypak-wrapper /app/bin/vesktop/vesktop.bin "${FLAGS[@]}" "$@"

Here's my system information:

System:
  Kernel: 6.8.0-90-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.41 wm: xfwm4 v: 4.18.0 with: xfce4-panel
    tools: light-locker vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22.2 Zara
    base: Ubuntu 24.04 noble
Machine:
  Type: Desktop Mobo: N/A model: B75 v: Ver:1.41 serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends v: 4.6.5 date: 09/01/2021
CPU:
  Info: quad core model: Intel Core i7-2600K bits: 64 type: MT MCP smt: enabled arch: Sandy Bridge
    rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 3077 high: 3592 min/max: 1600/3800 cores: 1: 3513 2: 1600 3: 3565 4: 3592
    5: 1600 6: 3592 7: 3568 8: 3592 bogomips: 54277
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics driver: i915 v: kernel
    arch: Gen-6 ports: active: HDMI-A-1 empty: DP-1, DP-2, HDMI-A-2, VGA-1 bus-ID: 00:02.0
    chip-ID: 8086:0122 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 compositor: xfwm4 v: 4.18.0
    driver: X: loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0
    screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37") s-diag: 449mm (17.69")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Dell SE198WFP serial: <filter> res: 1440x900 hz: 60
    dpi: 90 size: 408x255mm (16.06x10.04") diag: 481mm (18.9") modes: max: 1440x900 min: 720x400
  API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus device: 1 drv: swrast
    gbm: drv: crocus surfaceless: drv: crocus x11: drv: crocus inactive: wayland
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: intel mesa v: 25.0.7-0ubuntu0.24.04.2 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 3000 (SNB GT2) device-ID: 8086:0122
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0 chip-ID: 8086:1e20 class-ID: 0403
  Device-2: Corsair VOID ELITE Wireless Gaming Dongle driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 2-1.6:3 chip-ID: 1b1c:0a55 class-ID: 0300
  API: ALSA v: k6.8.0-90-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
Drives:
  Local Storage: total: 465.76 GiB used: 55.37 GiB (11.9%)
  ID-1: /dev/sda vendor: Western Digital model: WD5000AAKS-00A7B2 size: 465.76 GiB
    speed: 3.0 Gb/s tech: N/A serial: <filter> fw-rev: 3B01 scheme: GPT
Partition:
  ID-1: / size: 456.89 GiB used: 55.36 GiB (12.1%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 12 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 speed: 480 Mb/s
    lanes: 1 chip-ID: 8087:0024 class-ID: 0900
  Device-1: 1-1.1:3 info: SINOWEALTH Game Mouse type: mouse,keyboard driver: hid-generic,usbhid
    interfaces: 2 rev: 1.1 speed: 12 Mb/s lanes: 1 power: 480mA chip-ID: 258a:1007 class-ID: 0301
  Device-2: 1-1.2:4 info: Elan Micro ActiveJet K-2024 Multimedia Keyboard type: keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 1.5 Mb/s lanes: 1 power: 100mA
    chip-ID: 04f3:0103 class-ID: 0300
  Device-3: 1-1.3:7 info: Corsair VOID ELITE Wireless Gaming Headset type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s lanes: 1 power: 500mA
    chip-ID: 1b1c:0a54 class-ID: 0300
  Hub-3: 2-0:1 info: full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 speed: 480 Mb/s
    lanes: 1 chip-ID: 8087:0024 class-ID: 0900
  Device-1: 2-1.6:3 info: Corsair VOID ELITE Wireless Gaming Dongle type: audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1 speed: 12 Mb/s lanes: 1
    power: 100mA chip-ID: 1b1c:0a55 class-ID: 0300
  Hub-5: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 4-0:1 info: super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 68.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2265 pm: dpkg pkgs: 2224 pm: flatpak pkgs: 41
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/flatpak-stable-noble.list
    1: deb [signed-by=/etc/apt/keyrings/flatpak-stable-noble.gpg] https: //ppa.launchpadcontent.net/flatpak/stable/ubuntu noble main
  Active apt repos in: /etc/apt/sources.list.d/leapcodes-riseup-vpn-noble.list
    1: deb [signed-by=/etc/apt/keyrings/leapcodes-riseup-vpn-noble.gpg] https: //ppa.launchpadcontent.net/leapcodes/riseup-vpn/ubuntu noble main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com zara main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu noble main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/teejee2008-foss-noble.list
    1: deb [signed-by=/etc/apt/keyrings/teejee2008-foss-noble.gpg] https: //ppa.launchpadcontent.net/teejee2008/foss/ubuntu noble main
  Active apt repos in: /etc/apt/sources.list.d/signal-desktop.sources
    1: deb [arch=amd64] https: //updates.signal.org/desktop/apt xenial main
Info:
  Memory: total: 16 GiB note: est. available: 15.33 GiB used: 7.23 GiB (47.1%)
  Processes: 337 Power: uptime: 3h 58m states: freeze,mem,disk suspend: s2idle wakeups: 0
    hibernate: platform Init: systemd v: 255 target: graphical (5) default: graphical
  Compilers: gcc: 13.3.0 Client: Unknown python3.12 client inxi: 3.3.34

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions