[Acg player][v2.6.2]The app crashes if i try to add song to playlist.

in #utopian-io5 years ago (edited)

Related Information

Actual behavior


App crashes if i try to add song to playlist.

Expected behavior


Expected that i can add music to playlist.

How to reproduce

  1. Install the apps and open the app
  2. From Music Navigation ,click any song to play
  3. Then click click the song icon you just played
  4. Scroll down and choose any song
  5. Click three horizontal dot
  6. From the option list, click the 2nd option
  7. Choose playlist to add the song
  8. Click the playlist
  9. see the error

Information

  • App version:v2.6.2
  • OS:Android 9.0
  • Device:Samsung A10

Recording Of The Bug

Logcat


05-24 15:28:07.608 21952 21952 E AndroidRuntime: FATAL EXCEPTION: main
05-24 15:28:07.608 21952 21952 E AndroidRuntime: Process: top.geek_studio.chenlongcould.musicplayer.Common, PID: 21952
05-24 15:28:07.608 21952 21952 E AndroidRuntime: java.lang.IllegalArgumentException: bound must be positive
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at java.util.Random.nextInt(Random.java:388)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.activity.ListViewActivity.d(SourceFile:32)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at h.a.a.b.a.L.onMenuItemClick(Unknown Source:2)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at androidx.appcompat.widget.Toolbar$1.onMenuItemClick(SourceFile:2)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(SourceFile:2)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at b.b.f.a.k.a(SourceFile:19)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at b.b.f.a.o.invoke(SourceFile:2)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at b.b.f.a.k.a(SourceFile:39)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at b.b.f.a.k.a(SourceFile:36)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at androidx.appcompat.widget.ActionMenuView.invokeItem(SourceFile:1)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at androidx.appcompat.view.menu.ActionMenuItemView.onClick(SourceFile:2)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.view.View.performClick(View.java:7339)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.widget.TextView.performClick(TextView.java:14222)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.view.View.performClickInternal(View.java:7305)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.view.View.access$3200(View.java:846)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:27788)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:873)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:99)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:214)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7073)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-24 15:28:07.608 21952 21952 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
05-24 15:24:36.450 18905 18905 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-24 15:24:36.450 18905 18905 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)


Github account:https://github.com/maaudrana
Sort:  

Hi @masudrana, thanks for providing this report.

As with the last report, I also believe this is similar to your previous report - https://steemit.com/utopian-io/@masudrana/acg-player-v2-6-2-the-app-crashes-if-i-try-to-play-music-from-playlist . The crash is caused by any click event on the playlist menu, the first report was a click event. Let's look at it in this light -a user is unable to play a song from a playlist cause the playlist is buggy, how then do you add songs to playlist(which should work if it weren't buggy) by clicking on the same affected playlist. Impossible right?

The crash log is in fact identical to the one provided on your previous report. I will also score this as negligible.

Thanks again for the report. I look forward to your future 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]

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

Hi @masudrana!

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, @masudrana!

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!

Coin Marketplace

STEEM 0.32
TRX 0.11
JST 0.034
BTC 66791.24
ETH 3239.69
USDT 1.00
SBD 4.22