Giter Site home page Giter Site logo

Crash while dispose about just_audio HOT 6 CLOSED

ryanheise avatar ryanheise commented on July 4, 2024
Crash while dispose

from just_audio.

Comments (6)

chadthecoder avatar chadthecoder commented on July 4, 2024

I/ACodec ( 9358): codec does not support config priority (err -2147483648) seems to be coming from something in the setUrl() function. My app doesn't crash but does give these messages and one is similar to the original issue, so I thought it might be of help.

from:

    print('am here');
    await _player.setUrl(url);
    print('middle time');
    _player.play();
    print('now here');

got:

I/flutter ( 9358): am here
W/XingSeeker( 9358): XING data size mismatch: 366794, 366666
I/OMXClient( 9358): IOmx service obtained
I/ACodec  ( 9358): codec does not support config priority (err -2147483648)
I/flutter ( 9358): middle time
I/flutter ( 9358): now here

from just_audio.

ryanheise avatar ryanheise commented on July 4, 2024

@RaistlinTAO can you confirm that you are using the latest release of the plugin?

from just_audio.

duncan-iaria avatar duncan-iaria commented on July 4, 2024

I'm seeing the same behavior on the latest version of the plugin (0.1.3). Works fine on iOS, setUrl and then play -or- setUrl and then dispose (close screen without playing) on android gives me the error and for me it results in a hard crash.

E/AndroidRuntime( 6947): java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.EventChannel$EventSink.success(java.lang.Object)' on a null object reference E/AndroidRuntime( 6947): at com.ryanheise.just_audio.AudioPlayer.broadcastPlaybackEvent(AudioPlayer.java:229) E/AndroidRuntime( 6947): at com.ryanheise.just_audio.AudioPlayer.access$300(AudioPlayer.java:32) E/AndroidRuntime( 6947): at com.ryanheise.just_audio.AudioPlayer$1.run(AudioPlayer.java:65)

from just_audio.

ryanheise avatar ryanheise commented on July 4, 2024

I believe this is a Duplicate of #57 . Please try the suggestion in that issue and let me know if it corrects the issue for you. If so, I will include the fix in the next release.

from just_audio.

duncan-iaria avatar duncan-iaria commented on July 4, 2024

I believe this is a Duplicate of #57 . Please try the suggestion in that issue and let me know if it corrects the issue for you. If so, I will include the fix in the next release.

This seems to have resolved the issue for me. Thank you! Btw that other issue mentions using audio_service as well - in my case I was only using just_audio, not sure if that is helpful information or not but I thought I'd throw it out there.

from just_audio.

github-actions avatar github-actions commented on July 4, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.

from just_audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.