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

Upgrading to 0.16.0 crashes on iOS #613

Closed
m-j-g opened this issue Aug 27, 2020 · 23 comments
Closed

Upgrading to 0.16.0 crashes on iOS #613

m-j-g opened this issue Aug 27, 2020 · 23 comments

Comments

@m-j-g
Copy link

m-j-g commented Aug 27, 2020

AudioCache cache = AudioCache();
cache.play(filePath());

Crashes on iOS. Works on 0.15.1

both work on Android.

@ParsaRbn
Copy link

having the same issue

@wednesday
Copy link

try flutter build ios --release

@ParsaRbn
Copy link

try flutter build ios --release

Thanks
i tried it, but it dosent work.

@neonfink
Copy link

+1, adding the basic code from readme causes the app to crash on iOS simulator and physical device, same code snippet works after rolling back to 0.15.1

@luanpotter
Copy link
Member

Looking at this rn, thanks for the feedback

@tnaseem
Copy link

tnaseem commented Aug 30, 2020

Having the same issue here on iOS (tested on iPhone 7, iOS 13.6 and iPhone SE, iOS 13.6). Running a debug, it just drops out with a 'Lost connection to device', when I call _audioCache.play().

I have stepped through the code and I think it's somewhere inside the _invokeMethod() call in audioplayers.dart, but I could be wrong! I just did a quick run through to see if I could spot anything.

Works fine on Android.

@luanpotter
Copy link
Member

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

@molundb
Copy link

molundb commented Sep 1, 2020

happening to me too

@beersheba
Copy link

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

^0.16.1 cannot be resolved

/Users/andrey/flutter/bin/flutter --no-color pub get
Running "flutter pub get" in xylophone-flutter...               
Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.
pub get failed (1; Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.)
Process finished with exit code 1

@tnaseem
Copy link

tnaseem commented Sep 3, 2020

^0.16.1 cannot be resolved

That's because it hasn't been released to pubdev yet. You need to grab the master branch instead. I will try this tomorrow, myself.

@tnaseem
Copy link

tnaseem commented Sep 4, 2020

If you want to try out the latest 0.16.1 (with the fix), before it's published, you can load the package directly from the master branch, by updating:

audioplayers: ^0.16.0

to:

  audioplayers:
    git:
      url: git://github.com/luanpotter/audioplayers.git

Give that a go and see if it helps. Obviously, once 0.16.1 has been published, revert back to audioplayers: ^0.16.1!

@tnaseem
Copy link

tnaseem commented Sep 4, 2020

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

It works on iOS now, thanks! However, I'm getting a

flutter: Fatal Error: Callback lookup failed!

when it finishes playing each file.

@ivan-pavliuk
Copy link

Any updates on it?

@RizanPSTU
Copy link

I am also getting flutter: Fatal Error: Callback lookup failed!

@qipingwu
Copy link

qipingwu commented Sep 5, 2020

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

^0.16.1 cannot be resolved

/Users/andrey/flutter/bin/flutter --no-color pub get
Running "flutter pub get" in xylophone-flutter...               
Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.
pub get failed (1; Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.)
Process finished with exit code 1

Are you talking Angela's class?
I am having problem playing sound.

@qipingwu
Copy link

qipingwu commented Sep 5, 2020

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

Hello!
I think in the dart package website, the newest version is still audioplayers: ^0.16.0.
If I put audioplayers: ^0.16.1 in pubspec.yaml, I get this error:

Running "flutter pub get" in getitdone...
Because getitdone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.
pub get failed (1; Because getitdone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.)
Process finished with exit code 1

@muarachmann
Copy link
Contributor

@qipingwu it hasn't been published to pubdev, use git versioning in your yalm file to point to master, time for it to get up.

I will quote this previously said

If you want to try out the latest 0.16.1 (with the fix), before it's published, you can load the package directly from the master branch, by updating:

audioplayers: ^0.16.0

to:

  audioplayers:
    git:
      url: git://github.com/luanpotter/audioplayers.git

Give that a go and see if it helps. Obviously, once 0.16.1 has been published, revert back to audioplayers: ^0.16.1!

@MrDEV0
Copy link

MrDEV0 commented Sep 6, 2020

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

Thanks a lot, it works for me, looking forward to have this fix published on pub.dev.

@01xJoao
Copy link

01xJoao commented Sep 14, 2020

I still get the error 'Fatal Error: Callback lookup failed!' after each play.

@beersheba
Copy link

it is, you are right. it was because of a param being null. I fixed on master. I will release a new version later today. please lmk if it works.

^0.16.1 cannot be resolved

/Users/andrey/flutter/bin/flutter --no-color pub get
Running "flutter pub get" in xylophone-flutter...               
Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.
pub get failed (1; Because xylophone depends on audioplayers ^0.16.1 which doesn't match any versions, version solving failed.)
Process finished with exit code 1

Are you talking Angela's class?
I am having problem playing sound.

yes. this version works
audioplayers: ^0.15.1

@luanpotter
Copy link
Member

This has been fixed, please open a new issue for the Fatal Error: Callback lookup failed! thing with details, definitely it seems like an unrelated issue. If the original issue (param being null) still persists please lmk and I can re-open this.

@mustafabhatkar
Copy link

Hey @luanpotter Fatal Error: Callback lookup failed! is already open at #344

@erickisos
Copy link

Hey guys, I'm having this issue with the version 0.20.1

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

No branches or pull requests