Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioStreamMicrophone Causes Android Crash #49846

Open
jlgangwisch opened this issue Jun 23, 2021 · 0 comments
Open

AudioStreamMicrophone Causes Android Crash #49846

jlgangwisch opened this issue Jun 23, 2021 · 0 comments

Comments

@jlgangwisch
Copy link

jlgangwisch commented Jun 23, 2021

Godot version

3.3.2

System information

Windows 10, Kindle Fire 7 5th Generation

Issue description

Creating a program to deploy on Kindle Fire 7 5th Generation.

When I use AudioStreamMicrophone in an AudioPlayer2D to capture the microphone input, the program crashes after an indefinite amount of time. Sometimes 5 minutes. Sometimes 2 hours.

When I change AudioStreamMicrophone to AudioGenerator or MP3, the program does not crash after 24 hours.

The program just quits. I could not find any log of any error using adb or the godot debug.

It behaves very much like the system is filling up and running out of memory.

When run on PC, it does not crash but does occasionally print a "buffer underrun" error.

I found others encountered similar errors, one person posted they had no issue with 3.2.4. I tested that version and experienced no difference.

Steps to reproduce

2D Scene
AudioStreamPlayer2D with AudioStreamMicrophone assigned to a Record Bus.
use AudioServer.get_bus_peak_volume_left_db() to monitor volume input

deploy to Android using standard template with Enable Record permission (specifically Kindle Fire 7 5th Generation) and wait up to 4 hours.

Minimal reproduction project

MicTestTroubleshoot.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants