Skip to content

Screen freezes on Android when calling AudioEffectSpectrumAnalyzerInstance.get_magnitude_for_frequency_range #66582

Open
@bumblemeow

Description

@bumblemeow

Godot version

v3.5.stable.official [991bb6a]

System information

Android 4.4.2, Nvidia TD580D-A1 quad-core Tegra K1 processor, GLES3

Issue description

The issue is that the screen freezes (no screen updates, input stops working) at seemingly random times when I call AudioEffectSpectrumAnalyzerInstance.get_magnitude_for_frequency_range in the _process function. I've only seen this happen on my only Android device (an old Google Project Tango tablet). The same code works fine on macOS and all of my iOS devices.

I expected the screen to not freeze.

Steps to reproduce

  1. Export an Android APK for the attached sample project.
  2. Install the APK on an android device (I've only tested 1 device as I only own 1, but I'll try to test more).
  3. Run the game and wait for anywhere from 10 seconds to a couple of minutes and notice the screen freezes while the audio continues to run. If you comment out line 20 in Main.gd (the one calling get_magnitude_for_frequency_range) game will run fine for as long as you let it (I ran it for 15 minutes without crashing).

Minimal reproduction project

TestSpectrumAnalyzer.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions