[GH-ISSUE #15] panicked on linux - WIP to get it working on linux #14

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

Originally created by @oltdaniel on GitHub (Jan 5, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/15

Steps:

$ git clone https://github.com/jpochyla/psst
$ cd psst
$ git submodule update --recursive --init
$ cd psst-bin
$ rustup install stable
$ rustup run stable rustc --version
# rustc 1.49.0 (e1884a8e3 2020-12-29)
$ cargo +stable run --release
# see message below

Using cargo +stable run --release in /psst-bin for starting.

warning: field is never read: `loading_handle`
   --> psst-core/src/audio_player.rs:568:9
    |
568 |         loading_handle: JoinHandle<()>,
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: field is never read: `loading_handle`
   --> psst-core/src/audio_player.rs:585:9
    |
585 |         loading_handle: JoinHandle<()>,
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: field is never read: `reusable_creds`
  --> psst-core/src/session.rs:58:5
   |
58 |     reusable_creds: Credentials,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused `std::result::Result` that must be used
   --> psst-core/src/audio_file.rs:173:13
    |
173 | /             thread::Builder::new().name(thread_name).spawn({
174 | |                 // TODO: Do not bury the whole servicing loop in case the URL renewal fails.
175 | |                 let url = fresh_url()?.url.clone();
176 | |                 let cdn = self.cdn.clone();
...   |
198 | |                 }
199 | |             });
    | |_______________^
    |
    = note: `#[warn(unused_must_use)]` on by default
    = note: this `Result` may be an `Err` variant, which should be handled

warning: 4 warnings emitted

   Compiling psst-bin v0.1.0 (/home/daniel/Downloads/setups/psst/psst-bin)
    Finished release [optimized] target(s) in 33.56s
     Running `/home/daniel/Downloads/setups/psst/target/release/psst-bin`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', psst-bin/src/main.rs:17:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I guess it's connected to the last warning, however I'm not very good nor up-to-date with rust.

My system:

  • Kernel: x86_64 Linux 5.10.2-2-MANJARO
  • OS: Manjaro 20.2 Nibia
Originally created by @oltdaniel on GitHub (Jan 5, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/15 Steps: ```bash $ git clone https://github.com/jpochyla/psst $ cd psst $ git submodule update --recursive --init $ cd psst-bin $ rustup install stable $ rustup run stable rustc --version # rustc 1.49.0 (e1884a8e3 2020-12-29) $ cargo +stable run --release # see message below ``` Using `cargo +stable run --release` in `/psst-bin` for starting. ``` warning: field is never read: `loading_handle` --> psst-core/src/audio_player.rs:568:9 | 568 | loading_handle: JoinHandle<()>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: field is never read: `loading_handle` --> psst-core/src/audio_player.rs:585:9 | 585 | loading_handle: JoinHandle<()>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: field is never read: `reusable_creds` --> psst-core/src/session.rs:58:5 | 58 | reusable_creds: Credentials, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused `std::result::Result` that must be used --> psst-core/src/audio_file.rs:173:13 | 173 | / thread::Builder::new().name(thread_name).spawn({ 174 | | // TODO: Do not bury the whole servicing loop in case the URL renewal fails. 175 | | let url = fresh_url()?.url.clone(); 176 | | let cdn = self.cdn.clone(); ... | 198 | | } 199 | | }); | |_______________^ | = note: `#[warn(unused_must_use)]` on by default = note: this `Result` may be an `Err` variant, which should be handled warning: 4 warnings emitted Compiling psst-bin v0.1.0 (/home/daniel/Downloads/setups/psst/psst-bin) Finished release [optimized] target(s) in 33.56s Running `/home/daniel/Downloads/setups/psst/target/release/psst-bin` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', psst-bin/src/main.rs:17:38 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` I guess it's connected to the last warning, however I'm not very good nor up-to-date with rust. My system: - `Kernel: x86_64 Linux 5.10.2-2-MANJARO` - `OS: Manjaro 20.2 Nibia`
kerem closed this issue 2026-02-28 14:29:57 +03:00
Author
Owner

@jpochyla commented on GitHub (Jan 5, 2021):

Hi! psst-bin is an example CLI app, for the GUI, use psst-gui.

<!-- gh-comment-id:754612755 --> @jpochyla commented on GitHub (Jan 5, 2021): Hi! `psst-bin` is an example CLI app, for the GUI, use `psst-gui`.
Author
Owner

@oltdaniel commented on GitHub (Jan 5, 2021):

@jpochyla Sorry for disturbing. My fault. 😓

<!-- gh-comment-id:754614401 --> @oltdaniel commented on GitHub (Jan 5, 2021): @jpochyla Sorry for disturbing. My fault. :sweat:
Author
Owner

@jpochyla commented on GitHub (Jan 5, 2021):

No problem! I've just renamed psst-bin to psst-cli in b64fa27 to avoid further confusion.

<!-- gh-comment-id:754614691 --> @jpochyla commented on GitHub (Jan 5, 2021): No problem! I've just renamed `psst-bin` to `psst-cli` in b64fa27 to avoid further confusion.
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#14
No description provided.