anandnet / Harmony-Music

A cross platform App for streaming Music
GNU General Public License v3.0
975 stars 74 forks source link

Crashes on Linux at `InitSystemTray` #232

Closed Merrit closed 5 months ago

Merrit commented 5 months ago

Describe the bug Compiles and begins to run, window shows, but then crashes when it reaches InitSystemTray.

To Reproduce Steps to reproduce the behavior:

  1. flutter run -d linux

Expected behavior Runs without crashing.

Additional context Fedora 40 KDE

Crash log ``` Launching lib/main.dart on Linux in debug mode... package:media_kit_libs_linux registered. Connecting to VM Service at ws://127.0.0.1:33499/PMTonZmAwUk=/ws [GETX] Instance "DesktopSystemTray" has been created [GETX] Instance "DesktopSystemTray" has been initialized flutter: Configure AudioServiceLinux. [GETX] Instance "LibrarySongsController" has been created [GETX] Instance "LibrarySongsController" has been initialized flutter: media_kit: WARNING: package:media_kit_native_event_loop not found. [GETX] Instance "AudioHandler" has been created flutter: setQueue() has not been implemented. flutter: Requested property Identity from org.mpris.MediaPlayer2 2 flutter: Get org.mpris.MediaPlayer2.Player.Volume not implemented 2 flutter: GetPosition(): 0:00:00.000000 flutter: Requested property Position from org.mpris.MediaPlayer2.Player flutter: GetPosition(): 0:00:00.000000 flutter: Requested property Position from org.mpris.MediaPlayer2.Player flutter: GetPosition(): 0:00:00.000000 [GETX] Instance "ThemeController" has been created [GETX] Instance "ThemeController" has been initialized [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized flutter: [Harmony Music]: Home [GETX] Instance "PlayerController" has been created [GETX] Instance "MusicServices" has been created [GETX] Instance "MusicServices" has been initialized [GETX] Instance "PlayerController" has been initialized [GETX] Instance "SettingsScreenController" has been created [GETX] Instance "SettingsScreenController" has been initialized [GETX] Instance "HomeScreenController" has been created [GETX] Instance "HomeScreenController" has been initialized flutter: [Harmony Music]: player [GETX] Instance "Downloader" has been created [GETX] Instance "Downloader" has been initialized flutter: Requested property Metadata from org.mpris.MediaPlayer2.Player flutter: Requested property Position from org.mpris.MediaPlayer2.Player flutter: GetPosition(): 0:00:00.000000 flutter: Requested property PlaybackStatus from org.mpris.MediaPlayer2.Player flutter: Requested property CanPause from org.mpris.MediaPlayer2.Player flutter: Requested property CanPlay from org.mpris.MediaPlayer2.Player flutter: Requested property CanGoNext from org.mpris.MediaPlayer2.Player flutter: Requested property CanGoPrevious from org.mpris.MediaPlayer2.Player flutter: Requested property CanSeek from org.mpris.MediaPlayer2.Player flutter: Requested property LoopStatus from org.mpris.MediaPlayer2.Player flutter: Requested property Shuffle from org.mpris.MediaPlayer2.Player flutter: Requested property Volume from org.mpris.MediaPlayer2.Player flutter: Get org.mpris.MediaPlayer2.Player.Volume not implemented method call InitSystemTray Lost connection to device. Exited. ```