SeaDve / Mousai

Identify songs in seconds
GNU General Public License v3.0
1.01k stars 38 forks source link

Mousai starts in offline mode #94

Closed bla6apm closed 1 year ago

bla6apm commented 1 year ago

Affected version

Bug summary Mousai starts in offline mode even if I have connectivity through Ethernet and WiFi. Moreover, I was trying to catch the audio from youtube using the internal PC audio while it's been playing.

Relevant logs, screenshots, screencasts, etc. imagen

The stacktrace from terminal:

 ~  RUST_BACKTRACE=1 RUST_LOG=mousai=debug flatpak run io.github.seadve.Mousai
2023-06-28T11:11:31.081289Z  INFO mousai::application: Mousai (io.github.seadve.Mousai)
2023-06-28T11:11:31.081303Z  INFO mousai::application: Version: 0.7.5 ()
2023-06-28T11:11:31.081306Z  INFO mousai::application: Datadir: /app/share/mousai
2023-06-28T11:11:31.171863Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T11:11:31.171883Z DEBUG mousai::database::migrations: No migrations to run for current version current_version=1
2023-06-28T11:11:31.172304Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T11:11:31.172696Z DEBUG mousai::model::song_list: Loaded 2 songs in 385.77µs
2023-06-28T11:11:31.172826Z DEBUG mousai::recognizer::recordings: Loaded 2 saved recordings in 77.719µs
2023-06-28T11:11:31.209627Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings
2023-06-28T11:11:31.294320Z DEBUG mousai::recognizer: connectivity=Limited
2023-06-28T11:11:31.294336Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings
2023-06-28T11:12:16.651087Z DEBUG mousai::recognizer::recorder: Failed to stop on dispose: Recording has not been started