Skip to content

Use many audioplayer controls crash the app and all audio players stop working #2887

Open
@JaimeNuup

Description

@JaimeNuup

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

In my project I use many audioplayer widgets but, when I play 30 or 40 audio files the audioplayer widgets stop working, I downloaded the code and ran it to try a debug and I observed that when an audioplayer widget is used a process is generated and it is preserved despite already being on another screen so they accumulate and when 30 to 40 processes are reached the application It stops working.
the
The solution (maybe) ,and for now function for me but is a very time consuming is put manually a code for dispose every process, as example: _model.soundPlayer21?.dispose();

I hope this information help to resolve the bug soon.

Thanks a lot

Jaime

Expected Behavior

FlutterFlow must generate automatically the code for dispose the _model.soundPlayer or audioPlayer process and avoid the audio crashs or unespected app stop without warnings or error.

Steps to Reproduce

1 Create an app with 10 pages every with 10 audioplayer widgets
2 Run the app in a virtual phone or real device
3 Play the 10 audio files in every page
4 In some time the audio stop playing at all withot error or warning
5 if the app is restored all function well again before reach 30 or 40 process.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT48l8j6w5NOm99c+Kr2dvpaniAXHDI7U+YZiO5TYxA8J5zKB+wAYvf7P1FWTL3hTGw7e2H8hnMe/Pfqiuz9G+0DNRKtf4g9+sx6VQ6VczuRb7aYPKq3fW1QTPNXC0izyJ+42xJ/NsxvL2dgw1+IftyRcBPDQZD1OTI/MfmbLdeK2SrDX1iXc2URm05KZDPz

Context

I ned to develop an app to learn a new languaje with many audio files and not working at all because frecuent crashes.

Visual documentation

app-bug-soundplayer.mp4

Additional Info

No response

Environment

- FlutterFlow version: 4.1.49+
- Platform: Android
- Browser name and version: No browser is an app
- Operating system and version affected: All android versions

General

  • I was collaborating with other users in the same project prior to data loss
  • I navigated between different project views leading up to data loss
  • The UI was running very slowly prior to data loss
  • A crash or other bug occurred prior to data loss
  • Data was not saved in a snapshot
  • I was using flutterflow from multiple devices
  • I was using flutterflow from multiple platforms (e.g. both web and MacOS Desktop app)

Relative to the time the changes were made, data was lost within

  • 1 minute
  • 1 hour
  • 1 day
  • 1 week

When following my steps to reproduce, data loss happens

  • ~100% of the time
  • ~50% of the time
  • ~10% of the time
  • ~1% of the time
  • Very rarely or only encountered once

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