[X] I made sure that the issue I am raising doesn't already exist
Current bug behaviour
I run the project on iOS and play an audio file. It crashes after playing for a while. After observation, it will definitely crash. Some network audio files will crash after playing for dozens of seconds. The local audio file provided in my demo will crash after playing for about 5 seconds. I suspect it's a Flutter error.
Expected behaviour
Audio should play normally as expected
Steps to reproduce
1、open the app
2、Playing audio using the audioplayers library
Code sample
Firebase related libraries added
Firebase related libraries are added, here is a crashlytics
```
firebase_crashlytics: ^4.0.3
```
Vungle ads added
When adding Admob mediation ads, be sure to add Vungle. And Key is added, you can initialize it or not
```
# Admob
google_mobile_ads: ^5.1.0
# Vungle ads
gma_mediation_liftoffmonetize: ^1.0.0
```
Play Audio
Firebase related libraries are added, here is a crashlytics
```
audioplayers: ^6.0.0
```
```
final player = AudioPlayer();
player.play(AssetSource("audio.mp3"));
```
Demo
I extracted the minimized code that can locate the crash into a demo, which can also be downloaded and run. Below is the Github address
[exc_bad_access_demo](https://github.com/YBill/exc_bad_access_demo)
Checklist
Current bug behaviour
I run the project on iOS and play an audio file. It crashes after playing for a while. After observation, it will definitely crash. Some network audio files will crash after playing for dozens of seconds. The local audio file provided in my demo will crash after playing for about 5 seconds. I suspect it's a Flutter error.
Expected behaviour
Audio should play normally as expected
Steps to reproduce
1、open the app 2、Playing audio using the audioplayers library
Code sample
Firebase related libraries added
Firebase related libraries are added, here is a crashlytics ``` firebase_crashlytics: ^4.0.3 ```Vungle ads added
When adding Admob mediation ads, be sure to add Vungle. And Key is added, you can initialize it or not ``` # Admob google_mobile_ads: ^5.1.0 # Vungle ads gma_mediation_liftoffmonetize: ^1.0.0 ```Play Audio
Firebase related libraries are added, here is a crashlytics ``` audioplayers: ^6.0.0 ``` ``` final player = AudioPlayer(); player.play(AssetSource("audio.mp3")); ```Demo
I extracted the minimized code that can locate the crash into a demo, which can also be downloaded and run. Below is the Github address [exc_bad_access_demo](https://github.com/YBill/exc_bad_access_demo)Affected platforms
iOS
Platform details
Mac: MacBook Pro(Apple M3 MacOS Sonoma 14.4.1) Xcode Version: 15.3 iPhone: 8 Plus (iOS 16.7.2)
AudioPlayers Version
6.0.0
Build mode
debug, profile, release
Audio Files/URLs/Sources
No response
Screenshots
No response
Logs
Full Logs
``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00000001bdd5881c libswiftCore.dylib`swift::SubstGenericParametersFromMetadata::SubstGenericParametersFromMetadata(swift::TargetMetadataRelated issues / more information
I am not sure what the problem is. I have also submitted related issues on Flutter. issues
Working on PR
no way