SongRec icon indicating copy to clipboard operation
SongRec copied to clipboard

SongRec silently fails on Linux Mint 19.1 Cinnamon

Open ganadiotis opened this issue 4 years ago • 10 comments

Hi

I've installed SongRec via the Software Manager on Linux Mint 19.1 Cinnamon.

A few days ago, it just stopped working. Tried re-installing it, same. Installation works, then it just does not start.

Any idea why / what can i do? Any log files i should check/share to help debug?

ganadiotis avatar Sep 21 '21 07:09 ganadiotis

Hello,

Can you please try to run these two commands in the terminal, and paste the output between ``` blocks in this issue ?

songrec
flatpak run com.github.marinm.songrec

Thank you!

marin-m avatar Sep 21 '21 07:09 marin-m

Thanks for the reply

I've tried that - same outcome: both commands silently fail, so nothing to report/paste i'm afraid.

Let me know if there's anything else i could do.

ganadiotis avatar Sep 21 '21 08:09 ganadiotis

Slight correction: songrec does have an output, it's just that it does not seem to work on the command line:

songrec: command not found

ganadiotis avatar Sep 21 '21 08:09 ganadiotis

Hello,

Could you please try the following:

  1. Download the SongRec sources:
git clone https://github.com/marin-m/songrec
cd songrec
  1. Edit the src/gui/microphone_thread.rs file in order to remove the following lines:
    #[cfg(target_os = "linux")]
    let print_gag = Gag::stderr().unwrap();
    #[cfg(target_os = "linux")]
    drop(print_gag);
  1. Re-compile and run SongRec using the following commands:

For getting the build dependencies: https://github.com/marin-m/SongRec/#installing-rust

Then, in the songrec directory

cargo run --release

Thank you!

marin-m avatar Sep 22 '21 01:09 marin-m

Thanks for getting back to me.

That's a bit more involved, so please bear with me till i find the time to do this.

I'll respond as soon as i have results.

ganadiotis avatar Sep 27 '21 12:09 ganadiotis

That was laborious, but it worked!

Hope that means you can insert he fix in the main distro so that nobody has to do this again :)

Edit: only issuing cargo run --release does the trick

Still can't run via shortcut, or by issuing any other command

ganadiotis avatar Nov 02 '21 21:11 ganadiotis

Hello,

Thank you. This was meant to help troubleshoot the program by ensuring that all debugging messages may be displayed, not to solve the issue.

Maybe that just updating to the last version from your repositories may solve the problem? Which version is installed on your machine?

Regards,

marin-m avatar Nov 03 '21 06:11 marin-m

Thanks for getting back to me

Can you please clarify - update to the last version of what?

I just git cloned this repo a few hours ago, and also installed Rust etc, so it should be the last version of everything?

If you can clarify what you mean exactly, and how to find the versions of what you refer to, i can report here.

If it's just a matter of commenting out a couple of lines like i did, i was hoping that could be added with a condition to the code in the main repo.

Not everyone can, or should, do this in order to run the program.

ganadiotis avatar Nov 03 '21 06:11 ganadiotis

Hello,

Can you please clarify - update to the last version of what?

The version of SongRec as it is installed from the repositories of your distribution (the "Software center", which is an interface for the Flatpak package manager).

The cargo run --release command that you ran above did not install anything, it just compiled and ran outside Flatpak a copy of the Git version of the program.

If it's just a matter of commenting out a couple of lines like i did, i was hoping that could be added with a condition to the repo in the main code.

Commenting the concerned lines was just meant to allow to display extra error input in the case there was, but there was none (the program ran correctly when compiling from Git).

marin-m avatar Nov 03 '21 06:11 marin-m

Ok, I removed SongRec from the Software Manager and re-installed it, no luck still.

ganadiotis avatar Nov 03 '21 06:11 ganadiotis