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 play music #10

Closed jubreal closed 6 years ago

jubreal commented 6 years ago

Expected behavior

The app being a music player app should play music files when selected to play.    

Actual behavior  

The app crashes and fails to play music .    

How to reproduce

1.     Download and install latest version of the app from github release
2.     Launch the app and grant storage permissions
3.     Access the menu slider options by sliding the left end of the screen and then click on songs
4.     Click on a song to play It will be seen that the app crashes , hence, the bug.

log


05-28 14:51:39.714 I/ActivityManager(942): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=v.blade/.ui.MainActivity bnds=[860,1248][1073,1527] (has extras)} from uid 1000 from pid 1771 on display 0
05-28 14:51:39.723 V/WindowManager(942): Set focused app to: AppWindowToken{f170d09 token=Token{3080e10 ActivityRecord{d1de2d3 u0 v.blade/.ui.MainActivity t77271}}} old focus=AppWindowToken{bfbba08 token=Token{a5563ab ActivityRecord{338f1fa u0 com.infinix.xlauncher/com.android.launcher3.Launcher t77147}}} moveFocusNow=true
05-28 14:51:39.724 V/WindowManager(942): findFocusedWindow: Reached focused app=AppWindowToken{f170d09 token=Token{3080e10 ActivityRecord{d1de2d3 u0 v.blade/.ui.MainActivity t77271}}}
05-28 14:51:39.735 V/WindowManager(942): findFocusedWindow: Reached focused app=AppWindowToken{f170d09 token=Token{3080e10 ActivityRecord{d1de2d3 u0 v.blade/.ui.MainActivity t77271}}}
05-28 14:51:39.742 D/AppOps  (942): noteOperation: allowing code 59 uid 10430 package v.blade
05-28 14:51:39.742 D/AppOps  (942): noteOperation: allowing code 60 uid 10430 package v.blade
05-28 14:51:39.755 I/ActivityManager(942): Start proc 10223:v.blade/u0a430 for activity v.blade/.ui.MainActivity
05-28 14:51:39.759 I/WindowStateAnimator(942): lockCanvas, mToken =AppWindowToken{f170d09 token=Token{3080e10 ActivityRecord{d1de2d3 u0 v.blade/.ui.MainActivity t77271}}}
05-28 14:51:39.887 I/PPS     (942): [notifyActivityState] v.blade, .ui.MainActivity, Resumed
05-28 14:51:39.887 I/PPS     (942): [PPSNotifyAppState] nPackNum:60, pack:v.blade, com:.ui.MainActivity, state:1, pid:10223, last_boost_tid:10223
05-28 14:51:40.009 I/ACRA    (10223): ACRA is enabled for v.blade, initializing...
05-28 14:51:40.042 D/ActivityThread(10223): BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{4335076 v.blade}}
05-28 14:51:40.042 V/ActivityThread(10223): Handling launch of ActivityRecord{da16677 token=android.os.BinderProxy@1fb12e4 {v.blade/v.blade.ui.MainActivity}} startsNotResumed=false
05-28 14:51:40.054 V/ActivityThread(10223): ActivityRecord{da16677 token=android.os.BinderProxy@1fb12e4 {v.blade/v.blade.ui.MainActivity}}: app=v.blade.BladeApplication@97bfe02, appName=v.blade, pkg=v.blade, comp={v.blade/v.blade.ui.MainActivity}, dir=/data/app/v.blade-1/base.apk
05-28 14:51:40.112 D/Resources(10223): resEntryNameFinal = v_blade_colorPrimaryDark
05-28 14:51:40.124 D/Resources(10223): resEntryNameFinal = v_blade_colorPrimary
05-28 14:51:40.129 D/Resources(10223): resEntryNameFinal = v_blade_colorPrimary
05-28 14:51:40.148 D/Resources(10223): resEntryNameFinal = v_blade_colorPrimary
05-28 14:51:40.151 D/Resources(10223): resEntryNameFinal = v_blade_ic_unknown
05-28 14:51:40.166 D/Resources(10223): resEntryNameFinal = v_blade_ic_play_action
05-28 14:51:40.218 D/Resources(10223): resEntryNameFinal = v_blade_ic_search
05-28 14:51:40.220 D/Resources(10223): resEntryNameFinal = v_blade_ic_artists
05-28 14:51:40.222 D/Resources(10223): resEntryNameFinal = v_blade_colorPrimary
05-28 14:51:40.292 W/ActivityManager(942): Unable to start service Intent { cmp=v.blade/.library.LibraryService } U=0: not found
05-28 14:51:40.293 I/System.out(10223): [BLADE-LOCAL] Registering songs...
05-28 14:51:40.294 V/ActivityThread(10223): Performing resume of ActivityRecord{da16677 token=android.os.BinderProxy@1fb12e4 {v.blade/v.blade.ui.MainActivity}}
05-28 14:51:40.294 D/ActivityThread ```
vhaudiquet commented 6 years ago

Ok i'm so bad i forgot about the normal player use ; i actually init all the mediaplayers after spotify init done (because it is the only one that is done in an async way) but i forgot about the use without being connected to Spotify... I'm fixing that right now ! (thanks for reporting the issue :) )

jubreal commented 6 years ago

The pleasure is mine.

On Mon, May 28, 2018, 17:18 Valentin HAUDIQUET notifications@github.com wrote:

Ok i'm so bad i forgot about the normal player use ; i actually init all the mediaplayers after spotify init done (because it is the only one that is done in an async way) but i forgot about the use without being connected to Spotify... I'm fixing that right now ! (thanks for reporting the issue :) )

— 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/10#issuecomment-392564433, or mute the thread https://github.com/notifications/unsubscribe-auth/Ajes1k9K7J9VbjTcsuDlCIYPKbzOtJAiks5t3CNFgaJpZM4UQOxr .