ACG-Player v2.6.5.3(20190530); The app crashes if I try to add the same song to a playlist.

in #utopian-io5 years ago

Project Information

Describe the bug
I created a playlist and added a song to it. Whilst still checking out the playlist feature, I tried to add the same song to the same playlist. The app crashed when I tried that.

To Reproduce

  1. To create a playlist, you have to use a song on the list.
  2. Click on the 3 dots beside any track/song
  3. Click on 'add playlist' option
  4. Create a playlist
  5. Try to add the same song to the same playlist
  6. See error.

Expected behavior
There are two possible outcomes/behaviours that I expected.

  • I expected that the app would notify me that the song already exists on the playlist. Or,
  • The song is also added to the playlist as a duplicate(this would rarely happen though). But it's not impossible.

Screen recording

Test Environment:

  • Device: RedMi Note 5 Pro
  • OS: Android 8.1.0
  • Software version; ACG-Player v2.6.5.3(20190530)

Logcat

    at top.geek_studio.chenlongcould.musicplayer.utils.Utils$DataSet.a(SourceFile:22)
    at i.a.a.b.g.k.onClick(Unknown Source:4)
    at b.c.a.k.onItemClick(SourceFile:1)
    at android.widget.AdapterView.performItemClick(AdapterView.java:318)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1181)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3165)
    at android.widget.AbsListView$3.run(AbsListView.java:4147)
    at android.os.Handler.handleCallback(Handler.java:794)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    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)

GitHub Account

https://github.com/HarryHeights

Link to issue

Sort:  

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

Thanks for providing us with a crash log. Unfortunately, one can barely make out any useful information as to the reason of the crash. In other words, the trace does not point us to the root cause as expected. Good to know it's been fixed

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

What exactly do crash logs do then? Include it; it's doesn't pinpoint the cause, don't include it; you made no effort to pinpoint the cause. How would you or I know if the crash log shows the cause of the bug?? I really want to know. Like I told you last time, these logs are generated on my phone as soon as the app crashes.

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

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

Hi, @harry-heightz!

You just got a 4.42% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

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!

Coin Marketplace

STEEM 0.32
TRX 0.12
JST 0.034
BTC 64837.84
ETH 3174.86
USDT 1.00
SBD 4.17