[Noad Player][V0.9.4] The app crashed when I tapped multiple times on a song in the playing queue
Project Information
- Repository: https://github.com/gauravjot/android-noad-music-player
- Project Name: Noad Player
- My Submitted Issue: here
- My GitHub Account: here
- Fixed Commit: here
Expected behavior
I expected that the app could handle itself when I tapped multiple times on a song in the playing queue.
Actual behavior
When I tried to click on a song multiple times in my playing queue, then the app crashed. After that, the app is not usable/openable. It crashes every time when I am trying to open it.
How to reproduce
Here is every possible detail to reproduce the bug.
- Open the app.
- Play a song from the "Songs" tab and open it by taping on that song's name at the downside of your display.
- Then click on the "list icon/queue button" at the downside of your songs list.
- Choose a song and tap multiple times on it.
- Notice the bug. You can't open the app after that crash happened.
- App version: V0.9.4
- Operating system: Android 6.0.1
Recording Of The Bug
LogCat
06-12 23:39:10.705 25371 25371 E AndroidRuntime: FATAL EXCEPTION: main
06-12 23:39:10.705 25371 25371 E AndroidRuntime: Process: com.droidheat.musicplayer, PID: 25371
06-12 23:39:10.705 25371 25371 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=370; index=-1
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at java.util.ArrayList.get(ArrayList.java:310)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at com.droidheat.musicplayer.MusicPlayback.doPushPlay(MusicPlayback.java:198)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at com.droidheat.musicplayer.MusicPlayback.access$400(MusicPlayback.java:50)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at com.droidheat.musicplayer.MusicPlayback$1.onSkipToQueueItem(MusicPlayback.java:432)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.support.v4.media.session.MediaSessionCompat$Callback$StubApi21.onSkipToQueueItem(MediaSessionCompat.java:1420)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.support.v4.media.session.MediaSessionCompatApi21$CallbackProxy.onSkipToQueueItem(MediaSessionCompatApi21.java:213)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.media.session.MediaSession$CallbackMessageHandler.handleMessage(MediaSession.java:1219)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
06-12 23:39:10.705 25371 25371 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Hi @sagorahmed, thanks for making this report
I can see the PO has fixed it in this commit https://github.com/gauravjot/android-noad-music-player/commit/b8e46740a40b8bfb3e73fcb00aa29cf0749b71bd . The logcat you provided was helpful, a little breakdown of the cause would have been nice. Still a good find.
I look forward to more of your contributions
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @fego! Keep up the good work!
Hi @sagorahmed!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @sagorahmed!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!
Congratulations @sagorahmed! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!