zoriya / Opus

Android app for playing music from local file or from youtube.
https://www.raccoon-sdg.fr/en
GNU General Public License v3.0
9 stars 2 forks source link

( Bug Found in Opus version 3.3.4 ) the application is crash when i click on the Add to Queue #23

Closed saraji-ali closed 5 years ago

saraji-ali commented 5 years ago

Project Information

Expected behavior

I was Expecting that the application should not be crashed when I click Add to queue option

Actual behavior

after opening the playlists tab when I click on the Add to queue option the application Opus version 3.3.4 crashed

How to reproduce

1-Download the latest application 2-install and open the application 3-create a playlist 4- goto playlist tab 5- Click 3 vertical dots in front of the YouTube playlist 6- click on Add to Queue 7- see the error

Recording Of The Bug

20190504_134307

My Github Account

https://github.com/facebook-786

Logcat

D/AndroidRuntime(13234): Shutting down VM

E/AndroidRuntime(13234): FATAL EXCEPTION: main

E/AndroidRuntime(13234): Process: com.sdg.opus, PID: 13234

E/AndroidRuntime(13234): android.runtime.JavaProxyThrowable: The service youtube has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError

E/AndroidRuntime(13234): No filter selected. Expected one of: playlistId, id, idParam [400]

E/AndroidRuntime(13234): Errors [

E/AndroidRuntime(13234):    Message[No filter selected. Expected one of: playlistId, id, idParam] Location[ - parameter] Reason[missingRequiredParameter] Domain[youtube.parameter]

E/AndroidRuntime(13234): ]

E/AndroidRuntime(13234): 

E/AndroidRuntime(13234):   at Google.Apis.Requests.ClientServiceRequest`1+d__34[TResponse].MoveNext () [0x00140] in <65e1043f439045869e5debc047c40c87>:0 

E/AndroidRuntime(13234): --- End of stack trace from previous location where exception was thrown ---

E/AndroidRuntime(13234):   at Google.Apis.Requests.ClientServiceRequest`1+d__30[TResponse].MoveNext () [0x000ff] in <65e1043f439045869e5debc047c40c87>:0 

E/AndroidRuntime(13234): --- End of stack trace from previous location where exception was thrown ---

E/AndroidRuntime(13234):   at Google.Apis.Requests.ClientServiceRequest`1+d__29[TResponse].MoveNext () [0x00071] in <65e1043f439045869e5debc047c40c87>:0 

E/AndroidRuntime(13234): --- End of stack trace from previous location where exception was thrown ---

E/AndroidRuntime(13234):   at Opus.Api.PlaylistManager+d__26.MoveNext () [0x00143] in :0 

E/AndroidRuntime(13234): --- End of stack trace from previous location where exception was thrown ---

E/AndroidRuntime(13234):   at Opus.Api.PlaylistManager+d__3.MoveNext () [0x00097] in :0 

E/AndroidRuntime(13234): --- End of stack trace from previous location where exception was thrown ---

E/AndroidRuntime(13234):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in <506ad682c6ce4dfb9ff9e596c90ceb27>:0 

E/AndroidRuntime(13234):   at Android.App.SyncContext+<>c__DisplayClass2_0.b__0 () [0x00000] in :0 

E/AndroidRuntime(13234):   at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in :0 

E/AndroidRuntime(13234):   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in :0 

E/AndroidRuntime(13234):   at (wrapper dynamic-method) System.Object.75(intptr,intptr)

E/AndroidRuntime(13234):    at mono.java.lang.RunnableImplementor.n_run(Native Method)

E/AndroidRuntime(13234):    at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)

E/AndroidRuntime(13234):    at android.os.Handler.handleCallback(Handler.java:739)

E/AndroidRuntime(13234):    at android.os.Handler.dispatchMessage(Handler.java:95)

E/AndroidRuntime(13234):    at android.os.Looper.loop(Looper.java:135)

E/AndroidRuntime(13234):    at android.app.ActivityThread.main(ActivityThread.java:5910)

E/AndroidRuntime(13234):    at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime(13234):    at java.lang.reflect.Method.invoke(Method.java:372)

E/AndroidRuntime(13234):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)

E/AndroidRuntime(13234):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
zoriya commented 5 years ago

Your playlist is not registered well in the playlist database. You should remove it from your playlist and add it again. I suppose that this is the same playlist as in this issue: #21. If not, please tell me how you saved this playlist.