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
Install and open the app
Then go to menu "Folder" and do select folder
Next, go to the "Music Player" page. And in the middle of the scanning process takes place, then exit the application.
Next, reopen the app. Then you will see the application will crash and bounce out.
Environment
Tested on 2 devices:
| Device | Android Version |
|---|---|
| Xiaomi Redmi 4X | Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB) |
| Xiaomi Redmi Note 4 | Marshmallow, 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)