Bop music player v1.1.2; The app crashed when I played a genre or an album, played the next song on the album, and then when back to play another different album.

in #utopian-io6 years ago

Project Information

Describe the bug
On the app, I can play an album or genre of music. When I click on a genre of music, or a music album, it automatically plays all the song in that collection. I accessed the music navigation page where I can pause a track, rewind/fast-forward a track or play the next track on queue.
I noticed that after I played the next track by clicking on the appropriate button, and went back to try to play another genre/album; the app crashed.

To Reproduce

  • Launch app
  • Access options menu
  • Goto either genres page or album page.
  • Open an album or genre with at least 2 songs in it.
  • Play the genre/album by clicking on it
  • On the now playing screen, tap on the music note icon to open music navigation page. (The icon is on the right side of the app)
  • On the music navigation page; Click the button to play next track
  • After the next track is Now playing; go back to the main album/genre list
  • Click on any other genre/album
  • See error. (The app will crash).

Expected behavior
I expected that I could play any music album or genre of music at any time I desired. Even after performing some other actions on the app, like playing the next track on a previous album/genre I was on.

Screen recording

Test Environment

  • Device: Redmi Note 5 Pro
  • OS: Android 8.1
  • Software version: Bop music player v1.1.2

Additional context
Here's the logcat from the crash;

    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2814)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1613)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6635)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.get(ArrayList.java:437)
    at com.sahdeepsingh.Bop.services.ServicePlayMusic.h(Unknown Source:16)
    at com.sahdeepsingh.Bop.Activities.PlayingNowList.onCreate(Unknown Source:193)
    at android.app.Activity.performCreate(Activity.java:7084)
    at android.app.Activity.performCreate(Activity.java:7075)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2767)
    ... 9 more

GitHub Account

https://github.com/HarryHeights

This issue has been reported to the project owner and he has acknowledged it as a bug and of high priority.

Sort:  

Hi @harry-heightz, thanks for making this contribution.

It is great to know that the project maintainer has acknowledged the bug with a promise to find a solution. I also like that you included a crash log. This will definitely help narrow his search.

However, I observed that you were trying to get him to give you the go-ahead to let you publish a blog post about his project. This almost got Utopian blacklisted on github the last time.

Github is an open source repository and most contributors on there don't want to think that other people are opening issues or writing posts about their projects with the sole aim of being rewarded by the utopian body, for stuff that is free. So I think you should cut down on the soliciting, less something similar repeats itself.

Well, thanks again for your contribution. We look forward to more of your reports :)

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]

Oh okay. No qualms

Thank you for your review, @fego! Keep up the good work!

Hey, @harry-heightz!

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!

Hi @harry-heightz!

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

Coin Marketplace

STEEM 0.18
TRX 0.18
JST 0.033
BTC 88099.99
ETH 3066.40
USDT 1.00
SBD 2.73