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

fix: IllegalStateException #1754

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fix: IllegalStateException #1754

wants to merge 4 commits into from

Conversation

mafanwei
Copy link

@mafanwei mafanwei commented Feb 1, 2024

Description

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, refactor:,
    docs:, chore:, test:, ci: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///, where necessary.
  • I have updated/added relevant examples in example.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

Fixes #1745.

#1745 #1738 #1726 #1703 etc.

@mafanwei mafanwei changed the title Fix IllegalStateException #1745 Fix IllegalStateException #1745 #1738 #1726 #1703 etc. Feb 5, 2024
@Gustl22 Gustl22 changed the title Fix IllegalStateException #1745 #1738 #1726 #1703 etc. Fix IllegalStateException etc. Feb 8, 2024
@Gustl22 Gustl22 changed the title Fix IllegalStateException etc. fix: IllegalStateException Feb 8, 2024
@Gustl22
Copy link
Collaborator

Gustl22 commented Feb 8, 2024

Hi there,
thanks for contributing!

I think it would be good to solve the problem for all platforms, not just Android.
Therefore you can add some tests, which fulfill your bug reproduction and test for the according exception:

testWidgets('#release ${td.source}', (tester) async {

We also already have a released flag in WrappedPlayer.kt which should be sufficient to solve this error in WrappedPlayer.kt rather than MediaPlayerPlayer.kt:

@Gustl22
Copy link
Collaborator

Gustl22 commented Feb 8, 2024

Tagging here some more relevant issue: #1708

@umar-hunch
Copy link

Can we please merge this? This error is really affecting our Production app with high amount of crashes

@Gustl22
Copy link
Collaborator

Gustl22 commented Mar 19, 2024

@umar-hunch you can always use dependecy overrides with the according fixes:
https://github.com/bluefireteam/audioplayers/blob/main/contributing.md#current-development

Also, I already reviewed that PR.
I'll try to get back to it next week (fixing myself), if the author isn't responding.

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

Successfully merging this pull request may close these issues.

Fatal Exception: java.lang.IllegalStateException
3 participants