librepods-org / librepods-org/librepods

Linux: App crashes/exits when AirPods connect after restart

Open
#544 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
29.9k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Environment

OS: Linux Mint 22.3 (Zena, Ubuntu 24.04 base)
Desktop: Cinnamon
LibrePods version: linux-v0.1.0 (AppImage)
Device: AirPods Pro
Problem

After restarting the PC and connecting AirPods, LibrePods immediately exits/crashes. The app works normally if launched manually from the menu after the PC has fully started.

Steps to reproduce

Restart the PC
LibrePods launches on login (autostart)
Connect AirPods via Bluetooth settings
LibrePods exits immediately
Crash details

The crash produces a core dump with SIGABRT. Stack trace frames are consistent across multiple crashes:

thread panicked at ... "internal error: entered unreachable code: Fallback system failed to choose present mode. This is a bug. Mode: AutoVsync, Options: []"
The crash appears related to the graphics/WGPU initialization when the app is started during boot before the display compositor is fully ready.

Additional notes

The --no-tray flag helps reduce crash surface but does not prevent the exit on AirPods connect
Disabling autostart and launching manually after boot works more reliably
This may be related to the Wayland/X11 compositor not being ready when LibrePods initializes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the login autostart sequence on Linux Mint 22.3: restart, let LibrePods launch, then connect AirPods through Bluetooth. Start by examining the reported core dump and consistent SIGABRT stack trace around graphics/WGPU initialization and the compositor timing; done means AirPods can connect after restart without LibrePods exiting.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.