[GH-ISSUE #619] Cannot play any song #366

Closed
opened 2026-02-28 14:32:29 +03:00 by kerem · 7 comments
Owner

Originally created by @yjavaherian on GitHub (May 24, 2025).
Original GitHub issue: https://github.com/jpochyla/psst/issues/619

Describe the bug
The app opens, i click on a song, the app crashes

To Reproduce
Steps to reproduce the behavior.
download .deb file from release
install it
login
play a song

Environment

  • OS: Ubuntu 25.04
  • Version: 2025.05.24-8a15d77

Additional context
the app output:

 yousef@M16 ~> psst
[2025-05-24T15:08:03Z INFO  psst_gui::data::config] loading config: "/home/yousef/.config/Psst/config.json"
[2025-05-24T15:08:03Z INFO  psst_gui::webapi::local] parsing local tracks: "/home/yousef/.config/spotify/Users/yousef_javaherian-user/local-files.bnk"
[2025-05-24T15:08:03Z INFO  psst_core::audio::output::cpal] using audio device: "default"
[2025-05-24T15:08:03Z INFO  psst_core::cache] using cache: "/home/yousef/.cache/Psst"
[2025-05-24T15:08:03Z INFO  psst_core::audio::output::cpal] opening output stream: StreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Default }
[2025-05-24T15:08:03Z INFO  psst_gui::controller::playback] Last.fm scrobbling is disabled, clearing Scrobbler instance.

thread '<unnamed>' panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/souvlaki-0.8.2/src/platform/mpris/zbus.rs:98:22:
called `Result::unwrap()` on an `Err` value: Names(InvalidWellKnownName("each element must not start with a digit"))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2025-05-24T15:08:03Z INFO  psst_core::session::access_token] access token expired, requesting
[2025-05-24T15:08:03Z INFO  psst_core::connection] requesting AP list from http://apresolve.spotify.com
[2025-05-24T15:08:04Z INFO  psst_core::connection] received 6 APs from server
[2025-05-24T15:08:04Z INFO  psst_core::connection] successfully resolved 6 access points
[2025-05-24T15:08:04Z INFO  psst_core::connection] attempting to connect using 6 access points
[2025-05-24T15:08:04Z INFO  psst_core::connection] trying AP 1 of 6: ap-gew1.spotify.com:4070
[2025-05-24T15:08:04Z INFO  psst_core::connection] successfully connected to AP: ap-gew1.spotify.com:4070

thread 'main' panicked at psst-gui/src/controller/playback.rs:257:18:
called `Result::unwrap()` on an `Err` value: ThreadPanicked

thread 'main' panicked at library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x615dc1ce8ac2 - <unknown>
   1:     0x615dc183baf3 - <unknown>
   2:     0x615dc1ce864f - <unknown>
   3:     0x615dc1ce8923 - <unknown>
   4:     0x615dc1ce830e - <unknown>
   5:     0x615dc1d21695 - <unknown>
   6:     0x615dc1d21629 - <unknown>
   7:     0x615dc1d21c7c - <unknown>
   8:     0x615dc1047c9c - <unknown>
   9:     0x615dc1047d05 - <unknown>                                                                      10:     0x615dc1047cb3 - <unknown>
  11:     0x615dc187c457 - <unknown>
  12:     0x739595be0de2 - <unknown>
  13:     0x739595c52238 - <unknown>
  14:     0x739595be1223 - g_main_context_iteration
  15:     0x739594f04c3d - g_application_run
  16:     0x615dc17b28e5 - <unknown>
  17:     0x615dc11edf53 - <unknown>
  18:     0x615dc17ddae7 - <unknown>                                                                      19:     0x739594a2a338 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16                      20:     0x739594a2a3fb - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  21:     0x615dc1079a4e - <unknown>
  22:                0x0 - <unknown>                                                                    thread caused non-unwinding panic. aborting.
Originally created by @yjavaherian on GitHub (May 24, 2025). Original GitHub issue: https://github.com/jpochyla/psst/issues/619 **Describe the bug** The app opens, i click on a song, the app crashes **To Reproduce** Steps to reproduce the behavior. download .deb file from release install it login play a song **Environment** - OS: Ubuntu 25.04 - Version: 2025.05.24-8a15d77 **Additional context** the app output: ``` yousef@M16 ~> psst [2025-05-24T15:08:03Z INFO psst_gui::data::config] loading config: "/home/yousef/.config/Psst/config.json" [2025-05-24T15:08:03Z INFO psst_gui::webapi::local] parsing local tracks: "/home/yousef/.config/spotify/Users/yousef_javaherian-user/local-files.bnk" [2025-05-24T15:08:03Z INFO psst_core::audio::output::cpal] using audio device: "default" [2025-05-24T15:08:03Z INFO psst_core::cache] using cache: "/home/yousef/.cache/Psst" [2025-05-24T15:08:03Z INFO psst_core::audio::output::cpal] opening output stream: StreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Default } [2025-05-24T15:08:03Z INFO psst_gui::controller::playback] Last.fm scrobbling is disabled, clearing Scrobbler instance. thread '<unnamed>' panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/souvlaki-0.8.2/src/platform/mpris/zbus.rs:98:22: called `Result::unwrap()` on an `Err` value: Names(InvalidWellKnownName("each element must not start with a digit")) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [2025-05-24T15:08:03Z INFO psst_core::session::access_token] access token expired, requesting [2025-05-24T15:08:03Z INFO psst_core::connection] requesting AP list from http://apresolve.spotify.com [2025-05-24T15:08:04Z INFO psst_core::connection] received 6 APs from server [2025-05-24T15:08:04Z INFO psst_core::connection] successfully resolved 6 access points [2025-05-24T15:08:04Z INFO psst_core::connection] attempting to connect using 6 access points [2025-05-24T15:08:04Z INFO psst_core::connection] trying AP 1 of 6: ap-gew1.spotify.com:4070 [2025-05-24T15:08:04Z INFO psst_core::connection] successfully connected to AP: ap-gew1.spotify.com:4070 thread 'main' panicked at psst-gui/src/controller/playback.rs:257:18: called `Result::unwrap()` on an `Err` value: ThreadPanicked thread 'main' panicked at library/core/src/panicking.rs:218:5: panic in a function that cannot unwind stack backtrace: 0: 0x615dc1ce8ac2 - <unknown> 1: 0x615dc183baf3 - <unknown> 2: 0x615dc1ce864f - <unknown> 3: 0x615dc1ce8923 - <unknown> 4: 0x615dc1ce830e - <unknown> 5: 0x615dc1d21695 - <unknown> 6: 0x615dc1d21629 - <unknown> 7: 0x615dc1d21c7c - <unknown> 8: 0x615dc1047c9c - <unknown> 9: 0x615dc1047d05 - <unknown> 10: 0x615dc1047cb3 - <unknown> 11: 0x615dc187c457 - <unknown> 12: 0x739595be0de2 - <unknown> 13: 0x739595c52238 - <unknown> 14: 0x739595be1223 - g_main_context_iteration 15: 0x739594f04c3d - g_application_run 16: 0x615dc17b28e5 - <unknown> 17: 0x615dc11edf53 - <unknown> 18: 0x615dc17ddae7 - <unknown> 19: 0x739594a2a338 - __libc_start_call_main at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16 20: 0x739594a2a3fb - __libc_start_main_impl at ./csu/../csu/libc-start.c:360:3 21: 0x615dc1079a4e - <unknown> 22: 0x0 - <unknown> thread caused non-unwinding panic. aborting. ```
kerem 2026-02-28 14:32:29 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SO9010 commented on GitHub (May 24, 2025):

Does this happen when you build it you're self?

<!-- gh-comment-id:2906961509 --> @SO9010 commented on GitHub (May 24, 2025): Does this happen when you build it you're self?
Author
Owner

@jacksongoode commented on GitHub (May 25, 2025):

Seems like an upstream bug with souvlaki after the package was upgraded?

<!-- gh-comment-id:2907590882 --> @jacksongoode commented on GitHub (May 25, 2025): Seems like an upstream bug with `souvlaki` after the package was upgraded?
Author
Owner

@SO9010 commented on GitHub (May 25, 2025):

Yeah it looks like an error in the initiation of the crate!

<!-- gh-comment-id:2907727988 --> @SO9010 commented on GitHub (May 25, 2025): Yeah it looks like an error in the initiation of the crate!
Author
Owner

@SO9010 commented on GitHub (May 25, 2025):

I think I found the issue, in diffie_hellman.rs:11:46 we have the line

let private_key = rand::rng().random::<i32>().to_biguint().unwrap();

The problem is, when we get a negative it crashes the program. It should be a u32.

Edit: Never mind this just sped up the loading...

The issue is actually the fact that we are introducing numbers into our dbus name, we could change it to chars!

<!-- gh-comment-id:2907846069 --> @SO9010 commented on GitHub (May 25, 2025): I think I found the issue, in diffie_hellman.rs:11:46 we have the line ``` Rust let private_key = rand::rng().random::<i32>().to_biguint().unwrap(); ``` The problem is, when we get a negative it crashes the program. It should be a u32. Edit: Never mind this just sped up the loading... The issue is actually the fact that we are introducing numbers into our dbus name, we could change it to chars!
Author
Owner

@SO9010 commented on GitHub (May 25, 2025):

This should be fixed now, just quickly put together a random string generator based off unix time and made that to be part of the id :P I pushed already as its quite an urgant change. Ill keep this issue open just a bit longer.

<!-- gh-comment-id:2907854751 --> @SO9010 commented on GitHub (May 25, 2025): This should be fixed now, just quickly put together a random string generator based off unix time and made that to be part of the id :P I pushed already as its quite an urgant change. Ill keep this issue open just a bit longer.
Author
Owner

@SO9010 commented on GitHub (May 29, 2025):

Is this fixed now?

<!-- gh-comment-id:2919352924 --> @SO9010 commented on GitHub (May 29, 2025): Is this fixed now?
Author
Owner

@samwh1te commented on GitHub (May 29, 2025):

I had the same issue, but seems fixed for me now. Thank you!!

<!-- gh-comment-id:2919596371 --> @samwh1te commented on GitHub (May 29, 2025): I had the same issue, but seems fixed for me now. Thank you!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#366
No description provided.