[GH-ISSUE #136] [Windows] Every keypress is duplicated #58

Closed
opened 2026-03-02 23:44:09 +03:00 by kerem · 3 comments
Owner

Originally created by @viridivn on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/136

Describe the bug
On windows, every keypress is sent both on the press down, and on the key release. This makes the app near impossible to use as searches can't be made and only even rows can be selected

To Reproduce
cargo install spotify_player on Windows 11
spotify_player.exe (Issue occurs in both cmd.exe and powershell)
Navigate up and down, try searching, etc

Expected behavior
A key is sent to the app once per keypress.

Log and backtrace
Reference log and backtrace, which are usually located in $HOME/.cache/spotify-player/, of a run reproducing the bug.
'spotify-player-23-02-16-17' in the cache directory seems to be an empty file even after using the program

Screenshots
If applicable, add screenshots to help explain your problem.
https://user-images.githubusercontent.com/42524580/219504557-0267b5c6-52ea-441b-b5d5-f29fc40ed41d.mp4

Environment

  • OS: Windows 11 build 25295
  • Application version: 0.11.1
  • Application features: if applicable, provide cargo features used to build with spotify-player: Defaults (Installed with cargo install spotify_player

Additional context
Doesn't appear to happen on my Linux install.

Originally created by @viridivn on GitHub (Feb 16, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/136 **Describe the bug** On windows, every keypress is sent both on the press down, and on the key release. This makes the app near impossible to use as searches can't be made and only even rows can be selected **To Reproduce** `cargo install spotify_player` on Windows 11 `spotify_player.exe` (Issue occurs in both cmd.exe and powershell) Navigate up and down, try searching, etc **Expected behavior** A key is sent to the app once per keypress. **Log and backtrace** Reference log and backtrace, which are usually located in `$HOME/.cache/spotify-player/`, of a run reproducing the bug. 'spotify-player-23-02-16-17' in the cache directory seems to be an empty file even after using the program **Screenshots** If applicable, add screenshots to help explain your problem. https://user-images.githubusercontent.com/42524580/219504557-0267b5c6-52ea-441b-b5d5-f29fc40ed41d.mp4 **Environment** - OS: Windows 11 build 25295 - Application version: 0.11.1 - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build with `spotify-player`: Defaults (Installed with `cargo install spotify_player` **Additional context** Doesn't appear to happen on my Linux install.
kerem 2026-03-02 23:44:09 +03:00
Author
Owner

@aome510 commented on GitHub (Feb 20, 2023):

Hi @scarlettekk, I don't have access to windows machine and I'm not too familiar with development on Win, so I couldn't really test/fix this issue. Hopefully, I can in the near future or someone can pick this up.

'spotify-player-23-02-16-17' in the cache directory seems to be an empty file even after using the program

Log file spotify-player-*.log should not empty. I wonder if this is because the app cannot interact with the OS properly.

<!-- gh-comment-id:1437430256 --> @aome510 commented on GitHub (Feb 20, 2023): Hi @scarlettekk, I don't have access to windows machine and I'm not too familiar with development on Win, so I couldn't really test/fix this issue. Hopefully, I can in the near future or someone can pick this up. > 'spotify-player-23-02-16-17' in the cache directory seems to be an empty file even after using the program Log file `spotify-player-*.log` should not empty. I wonder if this is because the app cannot interact with the OS properly.
Author
Owner

@viridivn commented on GitHub (Mar 3, 2023):

Can confirm issue is resolved

<!-- gh-comment-id:1454197036 --> @viridivn commented on GitHub (Mar 3, 2023): Can confirm issue is resolved
Author
Owner

@aome510 commented on GitHub (Mar 3, 2023):

Thanks. This fix will be included in the upcoming release, which should be released soon!

<!-- gh-comment-id:1454200575 --> @aome510 commented on GitHub (Mar 3, 2023): Thanks. This fix will be included in the upcoming release, which should be released soon!
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/spotify-player#58
No description provided.