AndroidMic icon indicating copy to clipboard operation
AndroidMic copied to clipboard

Instant crash when pressing connect with any settings

Open Rubyboat1207 opened this issue 10 months ago • 10 comments

What it says on the title, I don't know where to find logs. I am a programmer myself, and I do have some rust experience but somehow not enough to find the log directory lol.

Rubyboat1207 avatar Mar 21 '25 02:03 Rubyboat1207

No log on windows, you could try to build the project

wiiznokes avatar Mar 21 '25 07:03 wiiznokes

Same issue here (windows), but it only crashes when setting the sample rate to anything other than 48000 Hz and then trying to connect. The insta crash is caused by having auto connect enabled, by disabling it via config file inside roaming folder, we could open the program again and change the sample rate so it would stop crashing (which is why reinstalling did nothing)

ElManuelsito avatar Mar 22 '25 05:03 ElManuelsito

I changed something in the settings and now when I try to open the program it closes, how can I reset the changes?

JomaZ1 avatar Mar 22 '25 23:03 JomaZ1

I changed something in the settings and now when I try to open the program it closes, how can I reset the changes?

You can edit the file in C:\Users\wiiz\AppData\Roaming\teamclouday\android-mic\config

wiiznokes avatar Mar 23 '25 01:03 wiiznokes

I was too busy when writing to go and actually build from source and see what happened. I also never specified (even though I really should have) my setup, so here: Win11 x64 AMD & Pixel 9 Pro

Also here's the crash log

   ___              _              _      _ ___  ___ _
  / _ \            | |            (_)    | ||  \/  |(_)
 / /_\ \ _ __    __| | _ __  ___   _   __| || .  . | _   ___
 |  _  || '_ \  / _` || '__|/ _ \ | | / _` || |\/| || | / __|
 | | | || | | || (_| || |  | (_) || || (_| || |  | || || (__
 \_| |_/|_| |_| \__,_||_|   \___/ |_| \__,_|\_|  |_/|_| \___|

[2025-03-23T22:46:07Z INFO  android_mic::ui::app] shared buf size: 4800
[2025-03-23T22:46:07Z ERROR android_mic::ui::app] failed to start audio stream: unsupported output audio format or sample rate.

thread 'main' panicked at src\ui\app.rs:186:39:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\android-mic.exe` (exit code: 101)

And #68 seems to stop the crashing, and I was able to figure out how to fix the problem in settings.

Rubyboat1207 avatar Mar 23 '25 22:03 Rubyboat1207

Insta crashing for me too when pressing connect on any connection type. Newest version downloaded today first time testing! Samsung galaxy s22 ultra.

Any ideas? Where can i find log on windows?

Thanks!

labaland avatar Mar 31 '25 13:03 labaland

Where can i find log on windows?

I'm currently working on a new version 2.1.4 which will produce a log file in the system. The crash most likely comes from incompatible sample rate. Make sure the sample rate is the same on pc and android app

teamclouday avatar Mar 31 '25 18:03 teamclouday

Yesterday I tried this app and some issues and questions I wanted to ask

Like above

  • Windows 11 easily crashed When setting advantage config

  • need to manually set config Can I set one side device and another end Auto detect its setting,then connect.

  • How to improve voice quality I think I can change the sample rate but I only can choice 48000hz, another option I can't choice.

This is my test video: https://youtu.be/FaIwa6Yk4xk?si=zw-iFHd38skmLTS-

Feipian avatar May 02 '25 01:05 Feipian

Thanks for the video. Very interesting use case with obs. Yes there are some issues with the sample rate right now. To make it work, you will need to select a configuration that your audio device supports. In your case, it's 48k sample rate

teamclouday avatar May 31 '25 14:05 teamclouday

. In your case, it's 48k sample rate

Thanks for your reply! I know the reason

Feipian avatar Jun 01 '25 01:06 Feipian