[Bop Music Player][v1.2.1]The app crashed when I tried to create a playlist from the File menu by giving an already deleted playlist's name

in utopian-io •  10 days ago

Project Information

Expected behavior

The users should be able to create the playlist by giving previously deleted playlist name from the same directory.

Actual behavior

When I deleted a playlist and I tried to create a new one with the same name from the same directory of that deleted playlist's songs, then The app crashed.

How to reproduce

Steps to reproduce the behavior:

  1. Go to the 'Files' menu.
  2. Choose a folder of songs and open it (Remember the name of the folder).
  3. Then click "PLAY ALL"
  4. Click on ⋮ (Three dots/ Vertical ellipsis) at the right side of the song's number and click "Save Playlist".
  5. Give a name and click on the "CREATE" button (Your playlist will be saved as your given name, remember that name).
  6. Then open the "Playlist" menu.
  7. Click on ⋮ (Three dots/ Vertical ellipsis) at the right side of your created playlist and delete it (Remember your playlist name).
  8. Then try to create a new playlist by giving your deleted playlist name from your "step no: 2" folder.
  9. See error.
  • App version: v1.2.1
  • Operating system: Android 6.0.1

Recording Of The Bug

GitHub Account

https://github.com/sagorahmed

Logcat

04-06 14:21:49.521 26582 26582 E AndroidRuntime: FATAL EXCEPTION: main

04-06 14:21:49.521 26582 26582 E AndroidRuntime: Process: com.sahdeepsingh.Bop, PID: 26582

04-06 14:21:49.521 26582 26582 E AndroidRuntime: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@d258238 is not valid; is your activity running?

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.view.ViewRootImpl.setView(ViewRootImpl.java:894)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:109)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.app.Dialog.show(Dialog.java:505)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at com.sahdeepsingh.Bop.f.a.c(Unknown Source)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at com.sahdeepsingh.Bop.Activities.PlayingNowList$5.onClick(Unknown Source)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.view.View.performClick(View.java:5714)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.widget.TextView.performClick(TextView.java:10932)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:22589)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7325)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)

04-06 14:21:49.521 26582 26582 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for your contribution @sagorahmed

Apologies for the delay in review, great to see that this issue has been reported and acknowledged, great work. Overall the steps to recreate were good, however I don't believe this affect all users, but important to resolve the crash none the less. Great to see that it has been resolved by the project owner.

Overall the steps were nicely detailed and it's great to see a log-cat, you can score more points by finding a resolution to the issue, however I realise that's not always possible.

Once again, thanks for your contribution and look forward to more from you in the future.


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, @tobias-g! Keep up the good work!

Congratulations @sagorahmed! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 500 as payout for your posts. Your next target is to reach a total payout of 1000

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!

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!