GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
554 stars 59 forks source link

[Bug]: Tuba crashes often with Friendica account #745

Closed aaron-grewell closed 8 months ago

aaron-grewell commented 8 months ago

Describe the bug

When running with my Friendica account Tuba crashes frequently. This seems to happen any time the app needs to wait for the instance to respond e.g. hitting the bottom of the post list or clicking on a new sidebar button like Bookmarks when the contents are not in memory. Server version is Friendica 2024.03-dev. I haven't been able to repro this with Mastodon so it seems to be specific to Friendica.

Steps To Reproduce

  1. Launch Tuba
  2. Click on Bookmarks
  3. Tuba crashes

Logs and/or Screenshots

$ flatpak run dev.geopjr.Tuba

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:41.410: Streams.vala:78: Error opening stream: The server did not accept the WebSocket handshake.

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:43.212: Streams.vala:78: Error opening stream: The server did not accept the WebSocket handshake.

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:44.244: Streams.vala:78: Error opening stream: The server did not accept the WebSocket handshake.

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:45.214: Streams.vala:78: Error opening stream: The server did not accept the WebSocket handshake.

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:45.980: Streams.vala:78: Error opening stream: The server did not accept the WebSocket handshake.

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:52.741: Image.vala:78: Failed to download image at "https://media.mstdn.social/media_attachments/files/111/742/424/574/265/751/original/88f018fdcfdb0416.mp4": Unrecognized image file format

(dev.geopjr.Tuba:2): Tuba-WARNING **: 13:43:58.392: Image.vala:78: Failed to download image at "https://libranet.de/photo/14616393066589cea1780dc248004355-0.gif": Server returned Not Found

(dev.geopjr.Tuba:2): libsoup-CRITICAL **: 13:44:05.240: soup_message_get_metrics: assertion 'SOUP_IS_MESSAGE (msg)' failed

(dev.geopjr.Tuba:2): GLib-GObject-CRITICAL **: 13:44:05.240: g_object_freeze_notify: assertion 'G_IS_OBJECT (object)' failed

Instance Backend

I'm not sure / Other

Operating System

Linux Mint Debian Edition 6

Package

Flatpak

Troubleshooting information

os: GNOME 45 (Flatpak runtime) prefix: /app flatpak: true version: 0.6.1 (production) gtk: 4.12.4 (4.12.4) libadwaita: 1.4.2 (1.4.2) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.10.0 (5.10.0)

Additional Context

Flatpak Version

$ flatpak --version
Flatpak 1.14.4

System Information App Output

System:
  Kernel: 6.1.0-17-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 Desktop: Cinnamon v: 5.8.4
    tk: GTK v: 3.24.38 wm: muffin dm: LightDM Distro: LMDE 6 Faye base: Debian 12.1 bookworm
Machine:
  Type: Laptop System: System76 product: Galago Pro v: galp6 serial: <superuser required> Chassis:
    type: 9 serial: <superuser required>
  Mobo: System76 model: Galago Pro v: galp6 serial: <superuser required> UEFI: coreboot
    v: 2023-09-08_42bf7a6 date: 09/08/2023
Battery:
  ID-1: BAT0 charge: 44.6 Wh (89.2%) condition: 50.0/51.5 Wh (97.0%) volts: 16.1 min: 15.2
    model: Notebook BAT serial: <filter> status: discharging
CPU:
  Info: 12-core (4-mt/8-st) model: 12th Gen Intel Core i5-1240P bits: 64 type: MST AMCP
    arch: Alder Lake rev: 3 cache: L1: 1.1 MiB L2: 9 MiB L3: 12 MiB
  Speed (MHz): avg: 423 high: 651 min/max: 400/4400:3300 cores: 1: 400 2: 400 3: 651 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 529 12: 400 13: 400 14: 400 15: 400 16: 400
    bogomips: 67584
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: CLEVO/KAPOK driver: i915 v: kernel
    arch: Gen-12.2 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1, HDMI-A-2, HDMI-A-3
    bus-ID: 00:02.0 chip-ID: 8086:46a6
  Device-2: Bison BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 3-7:2 chip-ID: 5986:9102
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: Najing CEC Panda 0x004a res: 1920x1080 dpi: 158 diag: 345mm (13.6")
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel Graphics (ADL GT2) direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: CLEVO/KAPOK driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:51c8
  API: ALSA v: k6.1.0-17-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:51f0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: CLEVO/KAPOK
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 2e:00.0
    chip-ID: 10ec:8168
  IF: enp46s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:3 chip-ID: 8087:0026
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 356b
Drives:
  Local Storage: total: 465.76 GiB used: 27.27 GiB (5.9%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 30.9 C
Partition:
  ID-1: / size: 439.94 GiB used: 27 GiB (6.1%) fs: ext4 dev: /dev/dm-1 mapped: lvmlmde-root
  ID-2: /boot size: 943.2 MiB used: 265.4 MiB (28.1%) fs: ext4 dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 285.4 MiB used: 5.8 MiB (2.0%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 15.46 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/dm-2
    mapped: lvmlmde-swap
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2145 pm: dpkg pkgs: 2112 pm: flatpak pkgs: 33
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirror.fcix.net/linuxmint-packages faye main upstream import backport
    2: deb https: //deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    3: deb https: //deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
    4: deb http: //security.debian.org/ bookworm-security main contrib non-free non-free-firmware
    5: deb https: //deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
Info:
  Processes: 362 Uptime: 4d 16h 14m Memory: 15.46 GiB used: 4.14 GiB (26.8%) Init: systemd v: 252
  target: graphical (5) default: graphical Compilers: gcc: 12.2.0 alt: 12 Client: Cinnamon v: 5.8.4
  inxi: 3.3.26
GeopJr commented 8 months ago

Thanks for raising this issue!

I'm not entirely sure if this is the same issue, but I made a friendica account to check this out and encountered segfaults like the ones you described when loading posts due to friendica returning empty strings for avatar urls sometimes. #746 fixes that!

I'm positive that it's the same issue though I am a bit unsure about the libsoup error you provided (FWIW, libsoup is the http library).

You can give #746 a try when it's done building by visiting this link https://github.com/GeopJr/Tuba/actions/runs/7508298298 (it will list the build artifacts when they are done)

Friendica support at the moment is best-effort though I'm planing on better supporting some of its features in the future