The application crashes when it exits the app in the middle of the scanning process and tries to open the app again

in utopian-io •  7 years ago  (edited)

Project Information

Repository : https://github.com/beenotung/music-player
Title : Music Player (音樂播放器 (無廣告))
Publisher : Beeno Tung

Expected behavior

Supposedly, when I exit the application in the middle of the scanning process, and try to reopen the application, the application will not experience an error.

Actual behavior

Initially, I tried to select the folder to add music. Then I go to the "Music Player" and wait for the scanning process. And when the scanning process takes place I accidentally exit the app, but after trying to reopen the app, the app suddenly crashes or bounces.

How to reproduce

  1. Install and open the app

  2. Then go to menu "Folder" and do select folder
    wq.jpg

  3. Next, go to the "Music Player" page. And in the middle of the scanning process takes place, then exit the application.

  4. Next, reopen the app. Then you will see the application will crash and bounce out.


Environment

Tested on 2 devices:

DeviceAndroid Version
Xiaomi Redmi 4XMarshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
Xiaomi Redmi Note 4Marshmallow, 6.0 mRA58K (DECA-CORE MAX 2,11GHz, RAM: 3 gb)

Application Version: 1.3.0


Recording Of The Bug

Proof of Work Done

Submitted the issue on GitHub
My GitHub Profile

Logcat

06-01 05:23:34.092  6141  6201 E AndroidRuntime: FATAL EXCEPTION: Thread-5789
06-01 05:23:34.092  6141  6201 E AndroidRuntime: Process: com.github.beenotung.musicplayer, PID: 6141
06-01 05:23:34.092  6141  6201 E AndroidRuntime: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
06-01 05:23:34.092  6141  6201 E AndroidRuntime:    at android.media.MediaMetadataRetriever.setDataSource(Native Method)
06-01 05:23:34.092  6141  6201 E AndroidRuntime:    at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:71)
06-01 05:23:34.092  6141  6201 E AndroidRuntime:    at com.github.beenotung.musicplayer.Playlist$Song.checkName(Playlist.java:86)
06-01 05:23:34.092  6141  6201 E AndroidRuntime:    at com.github.beenotung.musicplayer.MainActivity$PlayerContainer$6.run(MainActivity.java:1134)
06-01 05:23:34.092  6141  6201 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:818)

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:  

lama gak on bang, suuuibuk ngetik wkwkwkkw

Thanks for contributing to Utopian!

Following the steps you provided I couldn't reproduce the bug.
I honestly have no idea what you tried to show in the video and with this bug. The video show how you minimize the app and how it opens again. No crash to be seen. And I couldn't reproduce it either.
Try and use the applications in a more reasonable manner, and not "accidentally" closing and opening them again and again.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]