vhaudiquet / blade-player

Android music player that plays from local library, Spotify or Deezer
GNU General Public License v3.0
68 stars 12 forks source link

Blade player crashes when trying to edit song informations #31

Open jubreal opened 5 years ago

jubreal commented 5 years ago

Expected behavior

Users should be able to be able to edit songs info with the help of the app successfully without the app crashing.

Actual behavior

The application closes and crashed when user is saving edited info.

How to reproduce

  1. Download and install app from fdroid.

  2. Launch the app.

  3. Grant all permissions.

  4. Navigate to the list of songs and play any song, then click on the 3-horizontal dots in front of a song.

  5. Click on the "Edit Informations" option.

  6. Make an change to name, then click on "OK"

It will be observed that the app crashes and closes. Hence, the bug.

Recording Of The Bug

https://youtu.be/NsGd9vTk4K0

LOG


03-27 10:13:46.417 I/BufferQueue(271): [v.blade/v.blade.ui.MainActivity](this:0x7fb0c30400,id:362,api:1,p:-1,c:-1) ~BufferQueueCore
03-27 10:13:46.544 D/ActivityManager(7069): ACT-IDLE_NOW_MSG from windowsVisible() for idle: ActivityRecord{39272dd u0 v.blade/.ui.TagEditorActivity t110799}
03-27 10:13:46.545 V/WindowManager(7069): findFocusedWindow: Found new focus @ 13 = Window{1485fd9 u0 v.blade/v.blade.ui.TagEditorActivity}
03-27 10:13:46.556 W/BLADE-DEBUG(23172): SaveInstanceState : null
03-27 10:13:46.559 V/ActivityThread(23172): Finishing stop of ActivityRecord{38c77ac token=android.os.BinderProxy@a4d8c75 {v.blade/v.blade.ui.MainActivity}}: show=false win=com.android.internal.policy.PhoneWindow@40e867e
03-27 10:13:46.559 I/BufferQueueProducer(271): [v.blade/v.blade.ui.TagEditorActivity](this:0x7fad16b000,id:365,api:1,p:23172,c:271) new GraphicBuffer needed
03-27 10:13:46.560 V/PhoneWindow(23172): DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{fefce32 v.blade/v.blade.ui.MainActivity,ident = 0}, this =com.android.internal.policy.PhoneWindow$DecorView{5d47d57 I.E...... R......D 0,0-1080,1920}
03-27 10:13:46.592 I/PPS     (7069): [notifyActivityState] v.blade, .ui.MainActivity, Stopped
03-27 10:13:46.592 I/PPS     (7069): [PPSNotifyAppState] nPackNum:60, pack:v.blade, com:.ui.MainActivity, state:4, pid:23172, last_boost_tid:23172
03-27 10:13:46.930 D/xionghui(18754): xionghui TaskKey pkg=v.blade isLocked=false
03-27 10:13:47.163 I/BufferQueueProducer(271): [v.blade/v.blade.ui.TagEditorActivity](this:0x7fad16b000,id:365,api:1,p:23172,c:271) queueBuffer: fps=21.96 dur=1001.98 max=307.15 min=8.08
03-27 10:13:48.222 E/AndroidRuntime(23172): Process: v.blade, PID: 23172
03-27 10:13:48.222 E/AndroidRuntime(23172):     at v.blade.ui.TagEditorActivity.save(TagEditorActivity.java:172)
03-27 10:13:48.222 E/AndroidRuntime(23172): Caused by: java.lang.ClassNotFoundException: Didn't find class "sun.nio.ch.DirectBuffer" on path: DexPathList[[zip file "/data/app/v.blade-1/base.apk"],nativeLibraryDirectories=[/data/app/v.blade-1/lib/arm64, /data/app/v.blade-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
vhaudiquet commented 5 years ago

Thanks for the report, i'll try to fix it by the end of the week... I noticed that your log does not contain the stack trace, which is the actual reason of the crash. I can fix the issue without that, but it would really help me to have it... If you can't/don't know how to find it though, don't bother, i'll try to reproduce the bug / to find the reason myself.

jubreal commented 5 years ago

Hello, thanks for your swift response. I've pasted another log limited to the moment when the error occurred. Let me know if that helps. I'm currently having issues with my adb

On Tue, Mar 26, 2019, 8:43 PM Valentin HAUDIQUET notifications@github.com wrote:

Thanks for the report, i'll try to fix it by the end of the week... I noticed that your log does not contain the stack trace, which is the actual reason of the crash. I can fix the issue without that, but it would really help me to have it... If you can't/don't know how to find it though, don't bother, i'll try to reproduce the bug / to find the reason myself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Valou3433/blade-player/issues/31#issuecomment-476817351, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajes1slPcVCxhJQPFR_aCGsVVBTj2gi7ks5vanhzgaJpZM4cMSNm .