marin-m / SongRec

An open-source Shazam client for Linux, written in Rust.
GNU General Public License v3.0
1.39k stars 103 forks source link

Songrec crashes when using buttons #140

Closed yataghan012 closed 3 months ago

yataghan012 commented 11 months ago

It looks like a ran out of space in my main partition temporarily and maybe some file corrupted?

I can't use songrec at all, anymore. Doesn't show my input selection (back to default) and there's no song list. I can only use the buttons that allows me to select a file/location, but nothing after that.

I'm on Manjaro, latest Linux LTS kernel. Latest songrec version. I tried reinstalling, and using flatpak version.

marin-m commented 11 months ago

Hello,

Maybe that deleting the $HOME/.local/share/SongRec/ folder could help?

Regards,

yataghan012 commented 11 months ago

Hello,

Maybe that deleting the $HOME/.local/share/SongRec/ folder could help?

Regards,

Hello, thanks for replying.

It doesn't work.

marin-m commented 11 months ago

Re,

The Flatpak version doesn't use the same file opening mechanism as the non-containerized version. It is better running SongRec from a non-Flatpak source (distribution package, Cargo, compiling from the source, etc.) when trying to reproducing the bug.

Does anything appears in the console when running songrec from the command line and picking the file?

yataghan012 commented 11 months ago

Re,

The Flatpak version doesn't use the same file opening mechanism as the non-containerized version. It is better running SongRec from a non-Flatpak source (distribution package, Cargo, compiling from the source, etc.) when trying to reproducing the bug.

Does anything appears in the console when running songrec from the command line and picking the file?

Yes, I've been avoiding the flatpak version.

Console shows:

(songrec:6108): Gtk-WARNING **: 14:59:58.538: Theme parsing error: gtk.css:4:33: '/*' in comment block

(songrec:6108): Gtk-WARNING **: 14:59:58.538: Theme parsing error: gtk.css:5:33: '/*' in comment block

(songrec:6108): Gtk-WARNING **: 14:59:58.539: Theme parsing error: gtk.css:707:114: 'trensperfnt' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.539: Theme parsing error: gtk.css:710:113: 'trensperfnt' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.540: Theme parsing error: gtk.css:1568:69: Not a valid image

(songrec:6108): Gtk-WARNING **: 14:59:58.540: Theme parsing error: gtk.css:1580:69: Not a valid image

(songrec:6108): Gtk-WARNING **: 14:59:58.540: Theme parsing error: gtk.css:1591:109: 'trensperfnt' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.540: Theme parsing error: gtk.css:1862:10: 'eorffr' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.541: Theme parsing error: gtk.css:2360:24: Junk at end of value for background

(songrec:6108): Gtk-WARNING **: 14:59:58.541: Theme parsing error: gtk.css:2366:10: Invalid name of pseudo-class

(songrec:6108): Gtk-WARNING **: 14:59:58.541: Theme parsing error: gtk.css:2415:24: Junk at end of value for background

(songrec:6108): Gtk-WARNING **: 14:59:58.541: Theme parsing error: gtk.css:2919:24: Junk at end of value for background

(songrec:6108): Gtk-WARNING **: 14:59:58.542: Theme parsing error: gtk.css:2923:24: Junk at end of value for background

(songrec:6108): Gtk-WARNING **: 14:59:58.542: Theme parsing error: gtk.css:4060:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.542: Theme parsing error: gtk.css:4072:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4296:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4304:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4334:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4342:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4372:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4380:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4729:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.543: Theme parsing error: gtk.css:4741:70: Missing closing bracket at end of linear gradient

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5372:96: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5382:96: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5392:102: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5402:102: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5412:98: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5422:98: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5432:100: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5442:100: 'rgee' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5453:70: 'trensperfnt' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5462:77: 'trensperfnt' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5680:17: 'eorffr-eottom' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5846:43: 'insft' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5898:38: Not a valid image

(songrec:6108): Gtk-WARNING **: 14:59:58.544: Theme parsing error: gtk.css:5904:38: Not a valid image

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6234:47: 'insft' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6239:47: 'insft' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6257:17: 'eorffr-refius' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6260:29: Invalid name of pseudo-class

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6265:9: 'folor' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6275:37: Invalid name of pseudo-class

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6286:37: Invalid name of pseudo-class

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6309:17: 'eorffr-refius' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6313:17: 'eorffr-refius' is not a valid property name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6416:47: 'insft' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6420:47: 'insft' is not a valid color name

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6845:40: Expected ')' in color definition

(songrec:6108): Gtk-WARNING **: 14:59:58.545: Theme parsing error: gtk.css:6855:56: Expected ')' in color definition

(songrec:6108): Gtk-WARNING **: 14:59:58.546: Theme parsing error: gtk.css:6856:56: Expected ')' in color definition

(songrec:6108): Gtk-WARNING **: 14:59:58.546: Theme parsing error: gtk.css:6857:56: Expected ')' in color definition

(songrec:6108): Gtk-WARNING **: 14:59:58.546: Theme parsing error: gtk.css:6866:68: Failed to import: El recurso en «/org/gtk/libgtk/theme/Adwaita/drawing.css» no existe

(songrec:6108): Gtk-WARNING **: 14:59:58.546: Theme parsing error: gtk.css:6867:67: Failed to import: El recurso en «/org/gtk/libgtk/theme/Adwaita/common.css» no existe
cannot connect system:capture_1 to songrec.C.6108.3:in_000
thread '<unnamed>' panicked at src/core/microphone_thread.rs:108:330:
called `Result::unwrap()` on an `Err` value: BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_hw_params' failed with error 'EIO: I/O error'" } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

after crash:

thread 'main' panicked at src/gui/main_window.rs:471:83:
called `Result::unwrap()` on an `Err` value: SendError { .. }
marin-m commented 11 months ago

It seems that the communication with your audio backend (likely PipeWire emulating ALSA) does not work.

Does the same issue happen when running SongRec as root (using sudo)?

Can you record sound using your microphone with other apps (e.g. Audacity, your browser...)?

yataghan012 commented 11 months ago

It seems that the communication with your audio backend (likely PipeWire emulating ALSA) does not work.

Does the same issue happen when running SongRec as root (using sudo)?

Can you record sound using your microphone with other apps (e.g. Audacity, your browser...)?

It doesn't crash as root, but there are no audio inputs that work like before (they all say GENERIC). I only used songrec for sound from my computer.

Inboard audio does work for audacity under "default".

yataghan012 commented 11 months ago

It seems that the communication with your audio backend (likely PipeWire emulating ALSA) does not work.

Does the same issue happen when running SongRec as root (using sudo)?

Can you record sound using your microphone with other apps (e.g. Audacity, your browser...)?

Hello?

marin-m commented 11 months ago

It may be linked with PipeWire compatibility (and/or the compatibility layers of newer versions of PipeWire being buggy).

I should setup a new testing environment with a recent software stack someday to test this (note: this is a side project, I also have a full-time job besides this and contributions are welcome)

yataghan012 commented 11 months ago

It may be linked with PipeWire compatibility (and/or the compatibility layers of newer versions of PipeWire being buggy).

I should setup a new testing environment with a recent software stack someday to test this (note: this is a side project, I also have a full-time job besides this and contributions are welcome)

Now I managed to get it working using the flatpak version (0.4.0) the other version I was using that didn't work was from the official manjaro repositories (0.3.3-1)

aktaboot commented 8 months ago

probably same issue as #155