[GH-ISSUE #210] App does not open #153

Closed
opened 2026-02-28 14:30:58 +03:00 by kerem · 14 comments
Owner

Originally created by @johndoe432 on GitHub (Nov 11, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/210

Downloaded the latest pre-built binary of Psst. When double-clicking on the icon app just doesn't open

Originally created by @johndoe432 on GitHub (Nov 11, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/210 Downloaded the latest pre-built binary of Psst. When double-clicking on the icon app just doesn't open
kerem closed this issue 2026-02-28 14:30:59 +03:00
Author
Owner

@jpochyla commented on GitHub (Nov 11, 2021):

What OS are you on?

<!-- gh-comment-id:966566364 --> @jpochyla commented on GitHub (Nov 11, 2021): What OS are you on?
Author
Owner

@johndoe432 commented on GitHub (Nov 11, 2021):

Windows 10 21H1

<!-- gh-comment-id:966568786 --> @johndoe432 commented on GitHub (Nov 11, 2021): Windows 10 21H1
Author
Owner

@johndoe432 commented on GitHub (Nov 11, 2021):

The crash began to happen after I "updated" the Psst to the version that. as far as I know, have today's commits in it

<!-- gh-comment-id:966571991 --> @johndoe432 commented on GitHub (Nov 11, 2021): The crash began to happen after I "updated" the Psst to the version that. as far as I know, have today's commits in it
Author
Owner

@vuon9 commented on GitHub (Nov 12, 2021):

I got the same issue. Both try from the built locally and also on the latest built download via Github. It just can't work!

Windows 11 Pro, Version 10.0.22000 Build 22000

<!-- gh-comment-id:967341892 --> @vuon9 commented on GitHub (Nov 12, 2021): I got the same issue. Both try from the built locally and also on the latest built download via Github. It just can't work! Windows 11 Pro, Version 10.0.22000 Build 22000
Author
Owner

@paolobarbolini commented on GitHub (Nov 12, 2021):

It'd be helpful to launch it from the terminal and see if it logs anything useful

<!-- gh-comment-id:967342883 --> @paolobarbolini commented on GitHub (Nov 12, 2021): It'd be helpful to launch it from the terminal and see if it logs anything useful
Author
Owner

@vuon9 commented on GitHub (Nov 12, 2021):

Last master built has been failed, can't open

 Compiling piet-common v0.5.0-pre1
warning: associated function is never used: `channels`
  --> psst-core\src\audio_decode.rs:59:8
   |
59 |     fn channels(&self) -> u8 {
   |        ^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `sample_rate`
  --> psst-core\src\audio_decode.rs:63:8
   |
63 |     fn sample_rate(&self) -> u32 {
   |        ^^^^^^^^^^^

   Compiling druid v0.7.0 (https://github.com/jpochyla/druid?branch=psst#a5d128ec)
warning: `psst-core` (lib) generated 2 warnings
   Compiling psst-cli v0.1.0 (D:\workspace\github.com\jpochyla\psst\psst-cli)
warning: unused import: `OffsetDateTime`
  --> psst-gui\src\data\utils.rs:10:25
   |
10 | use time::{Date, Month, OffsetDateTime};
   |                         ^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: use of deprecated constant `druid::commands::HIDE_APPLICATION`: HIDE_APPLICATION is only supported on macOS
  --> psst-gui\src\ui\menu.rs:32:36
   |
32 |                 .command(commands::HIDE_APPLICATION)
   |                                    ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: associated function is never used: `ctx`
  --> psst-gui\src\data\ctx.rs:30:12
   |
30 |     pub fn ctx() -> impl Lens<Self, C> {
   |            ^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `is_cached`
  --> psst-gui\src\data\utils.rs:34:12
   |
34 |     pub fn is_cached(&self) -> bool {
   |            ^^^^^^^^^

warning: variant is never constructed: `Stroke`
   --> psst-gui\src\widget\icons.rs:124:5
    |
124 |     Stroke { width: f64 },
    |     ^^^^^^^^^^^^^^^^^^^^^

warning: `psst-gui` (bin "psst-gui") generated 5 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 4m 05s
➜  psst git:(master) psst-gui.exe

Here is when run only

➜  psst git:(master) cd .\psst-gui\
➜  psst-gui git:(master) cargo run
warning: associated function is never used: `channels`
  --> psst-core\src\audio_decode.rs:59:8
   |
59 |     fn channels(&self) -> u8 {
   |        ^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `sample_rate`
  --> psst-core\src\audio_decode.rs:63:8
   |
63 |     fn sample_rate(&self) -> u32 {
   |        ^^^^^^^^^^^

warning: `psst-core` (lib) generated 2 warnings
warning: unused import: `OffsetDateTime`
  --> psst-gui\src\data\utils.rs:10:25
   |
10 | use time::{Date, Month, OffsetDateTime};
   |                         ^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: use of deprecated constant `druid::commands::HIDE_APPLICATION`: HIDE_APPLICATION is only supported on macOS
  --> psst-gui\src\ui\menu.rs:32:36
   |
32 |                 .command(commands::HIDE_APPLICATION)
   |                                    ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: associated function is never used: `ctx`
  --> psst-gui\src\data\ctx.rs:30:12
   |
30 |     pub fn ctx() -> impl Lens<Self, C> {
   |            ^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `is_cached`
  --> psst-gui\src\data\utils.rs:34:12
   |
34 |     pub fn is_cached(&self) -> bool {
   |            ^^^^^^^^^

warning: variant is never constructed: `Stroke`
   --> psst-gui\src\widget\icons.rs:124:5
    |
124 |     Stroke { width: f64 },
    |     ^^^^^^^^^^^^^^^^^^^^^

warning: `psst-gui` (bin "psst-gui") generated 5 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 0.43s
     Running `D:\workspace\github.com\jpochyla\psst\target\debug\psst-gui.exe`
[2021-11-12T19:42:58Z INFO  psst_gui::data::config] loading config: "C:\\Users\\quocv\\AppData\\Roaming\\Psst\\config.json"
[2021-11-12T19:42:58Z INFO  psst_core::cache] using cache: "C:\\Users\\quocv\\AppData\\Local\\Psst"
[2021-11-12T19:42:58Z INFO  psst_gui::data::config] saved config: "C:\\Users\\quocv\\AppData\\Roaming\\Psst\\config.json"
[2021-11-12T19:42:58Z INFO  psst_core::access_token] access token expired, requesting
[2021-11-12T19:42:58Z INFO  psst_core::access_token] access token expired, requesting
[2021-11-12T19:42:58Z ERROR psst_gui::widget::promise] async: WebApiError("failed to fill whole buffer")
[2021-11-12T19:43:17Z INFO  psst_core::access_token] access token expired, requesting
[2021-11-12T19:43:19Z INFO  psst_core::audio_file] blocked at 5570528
[2021-11-12T19:43:19Z INFO  psst_core::audio_player] starting playback
[2021-11-12T19:43:19Z INFO  psst_gui::controller::playback] playing
[2021-11-12T19:43:21Z INFO  psst_core::audio_player] pausing playback

Its UI
image

I don't know Rust, so if any way to let it give more log details, then pls let me know.

<!-- gh-comment-id:967417840 --> @vuon9 commented on GitHub (Nov 12, 2021): Last master built has been failed, can't open ``` Compiling piet-common v0.5.0-pre1 warning: associated function is never used: `channels` --> psst-core\src\audio_decode.rs:59:8 | 59 | fn channels(&self) -> u8 { | ^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function is never used: `sample_rate` --> psst-core\src\audio_decode.rs:63:8 | 63 | fn sample_rate(&self) -> u32 { | ^^^^^^^^^^^ Compiling druid v0.7.0 (https://github.com/jpochyla/druid?branch=psst#a5d128ec) warning: `psst-core` (lib) generated 2 warnings Compiling psst-cli v0.1.0 (D:\workspace\github.com\jpochyla\psst\psst-cli) warning: unused import: `OffsetDateTime` --> psst-gui\src\data\utils.rs:10:25 | 10 | use time::{Date, Month, OffsetDateTime}; | ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: use of deprecated constant `druid::commands::HIDE_APPLICATION`: HIDE_APPLICATION is only supported on macOS --> psst-gui\src\ui\menu.rs:32:36 | 32 | .command(commands::HIDE_APPLICATION) | ^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: associated function is never used: `ctx` --> psst-gui\src\data\ctx.rs:30:12 | 30 | pub fn ctx() -> impl Lens<Self, C> { | ^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function is never used: `is_cached` --> psst-gui\src\data\utils.rs:34:12 | 34 | pub fn is_cached(&self) -> bool { | ^^^^^^^^^ warning: variant is never constructed: `Stroke` --> psst-gui\src\widget\icons.rs:124:5 | 124 | Stroke { width: f64 }, | ^^^^^^^^^^^^^^^^^^^^^ warning: `psst-gui` (bin "psst-gui") generated 5 warnings Finished dev [unoptimized + debuginfo] target(s) in 4m 05s ➜ psst git:(master) psst-gui.exe ``` Here is when run only ``` ➜ psst git:(master) cd .\psst-gui\ ➜ psst-gui git:(master) cargo run warning: associated function is never used: `channels` --> psst-core\src\audio_decode.rs:59:8 | 59 | fn channels(&self) -> u8 { | ^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function is never used: `sample_rate` --> psst-core\src\audio_decode.rs:63:8 | 63 | fn sample_rate(&self) -> u32 { | ^^^^^^^^^^^ warning: `psst-core` (lib) generated 2 warnings warning: unused import: `OffsetDateTime` --> psst-gui\src\data\utils.rs:10:25 | 10 | use time::{Date, Month, OffsetDateTime}; | ^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: use of deprecated constant `druid::commands::HIDE_APPLICATION`: HIDE_APPLICATION is only supported on macOS --> psst-gui\src\ui\menu.rs:32:36 | 32 | .command(commands::HIDE_APPLICATION) | ^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: associated function is never used: `ctx` --> psst-gui\src\data\ctx.rs:30:12 | 30 | pub fn ctx() -> impl Lens<Self, C> { | ^^^ | = note: `#[warn(dead_code)]` on by default warning: associated function is never used: `is_cached` --> psst-gui\src\data\utils.rs:34:12 | 34 | pub fn is_cached(&self) -> bool { | ^^^^^^^^^ warning: variant is never constructed: `Stroke` --> psst-gui\src\widget\icons.rs:124:5 | 124 | Stroke { width: f64 }, | ^^^^^^^^^^^^^^^^^^^^^ warning: `psst-gui` (bin "psst-gui") generated 5 warnings Finished dev [unoptimized + debuginfo] target(s) in 0.43s Running `D:\workspace\github.com\jpochyla\psst\target\debug\psst-gui.exe` [2021-11-12T19:42:58Z INFO psst_gui::data::config] loading config: "C:\\Users\\quocv\\AppData\\Roaming\\Psst\\config.json" [2021-11-12T19:42:58Z INFO psst_core::cache] using cache: "C:\\Users\\quocv\\AppData\\Local\\Psst" [2021-11-12T19:42:58Z INFO psst_gui::data::config] saved config: "C:\\Users\\quocv\\AppData\\Roaming\\Psst\\config.json" [2021-11-12T19:42:58Z INFO psst_core::access_token] access token expired, requesting [2021-11-12T19:42:58Z INFO psst_core::access_token] access token expired, requesting [2021-11-12T19:42:58Z ERROR psst_gui::widget::promise] async: WebApiError("failed to fill whole buffer") [2021-11-12T19:43:17Z INFO psst_core::access_token] access token expired, requesting [2021-11-12T19:43:19Z INFO psst_core::audio_file] blocked at 5570528 [2021-11-12T19:43:19Z INFO psst_core::audio_player] starting playback [2021-11-12T19:43:19Z INFO psst_gui::controller::playback] playing [2021-11-12T19:43:21Z INFO psst_core::audio_player] pausing playback ``` Its UI ![image](https://user-images.githubusercontent.com/3168632/141525871-23757a24-e438-4247-8bb8-ee8644669549.png) I don't know Rust, so if any way to let it give more log details, then pls let me know.
Author
Owner

@Heychsea commented on GitHub (Nov 19, 2021):

Does not launch at all on Win 10 (21H2). Building myself produces the same result (Instantly returns 101). Interestingly, it starts in debug mode...

<!-- gh-comment-id:974321030 --> @Heychsea commented on GitHub (Nov 19, 2021): Does not launch at all on Win 10 (21H2). Building myself produces the same result (Instantly returns 101). Interestingly, it starts in debug mode...
Author
Owner

@CptPotato commented on GitHub (Nov 26, 2021):

This appears to be a problem related to env_logger on windows: rust-lang/rust#88576.

It's fixed in the current rust nightly (tested with rustc 1.58.0-nightly (dd549dcab 2021-11-25)) and should also be resolved in 1.57.0 if I understand correctly.

<!-- gh-comment-id:979857609 --> @CptPotato commented on GitHub (Nov 26, 2021): This appears to be a problem related to `env_logger` on windows: [rust-lang/rust#88576](https://github.com/rust-lang/rust/issues/88576). It's fixed in the current rust nightly (tested with `rustc 1.58.0-nightly (dd549dcab 2021-11-25)`) and should also be resolved in `1.57.0` if I understand correctly.
Author
Owner

@xconverge commented on GitHub (Nov 30, 2021):

CI seems to use the latest stable, and 1.57.0 looks to be released in the next few days, so we can just hope that the windows binary fixes itself once that happens...maybe?

<!-- gh-comment-id:983133067 --> @xconverge commented on GitHub (Nov 30, 2021): CI seems to use the latest stable, and 1.57.0 looks to be released in the next few days, so we can just hope that the windows binary fixes itself once that happens...maybe?
Author
Owner

@MoriTanosuke commented on GitHub (Dec 6, 2021):

1.57.0 is released https://github.com/rust-lang/rust/releases/tag/1.57.0

The EXE available at https://nightly.link/jpochyla/psst/workflows/build/master today did not fix this for me on Version 10.0.19044 Build 19044.

<!-- gh-comment-id:986476398 --> @MoriTanosuke commented on GitHub (Dec 6, 2021): 1.57.0 is released https://github.com/rust-lang/rust/releases/tag/1.57.0 The EXE available at https://nightly.link/jpochyla/psst/workflows/build/master today did not fix this for me on Version 10.0.19044 Build 19044.
Author
Owner

@xconverge commented on GitHub (Dec 6, 2021):

CI is failing for windows so I don't think that EXE is using 1.57.0 yet? I think the nightly is not actually nightly, it is triggered by an action on commits and is more of a "development" build than a literal "nightly" build, if anyone knows that this is wrong thumbs down and I will delete it but It is what I saw/assume.

<!-- gh-comment-id:986481730 --> @xconverge commented on GitHub (Dec 6, 2021): CI is failing for windows so I don't think that EXE is using 1.57.0 yet? I think the nightly is not actually nightly, it is triggered by an action on commits and is more of a "development" build than a literal "nightly" build, if anyone knows that this is wrong thumbs down and I will delete it but It is what I saw/assume.
Author
Owner

@MoriTanosuke commented on GitHub (Dec 6, 2021):

Looks like a file is missing from the current master branch:

error RC2135 : file not found: assets/logo.ico

There are a bunch of PNG files, but no ICO: https://github.com/jpochyla/psst/tree/master/psst-gui/assets

<!-- gh-comment-id:986482437 --> @MoriTanosuke commented on GitHub (Dec 6, 2021): Looks like a file is missing from the current `master` branch: > error RC2135 : file not found: assets/logo.ico There are a bunch of PNG files, but no ICO: https://github.com/jpochyla/psst/tree/master/psst-gui/assets
Author
Owner

@CptPotato commented on GitHub (Dec 11, 2021):

CI is passing and the windows build works again for me. I think this can be closed now.

<!-- gh-comment-id:991597222 --> @CptPotato commented on GitHub (Dec 11, 2021): CI is passing and the windows build works again for me. I think this can be closed now.
Author
Owner

@jpochyla commented on GitHub (Dec 11, 2021):

Thanks for the report, closing! <3

<!-- gh-comment-id:991632843 --> @jpochyla commented on GitHub (Dec 11, 2021): Thanks for the report, closing! <3
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#153
No description provided.