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
8 stars 2 forks source link

[ Opus version3.3.4 ] application is crash when i click on the ( SHUFFLE ALL ) #15

Closed XAMIR555 closed 5 years ago

XAMIR555 commented 5 years ago

Project Information

Expected behavior

I Expected that the application should not be crash when I click on the ( SHUFFLE ALL )

Actual behavior

after install and open the latest version of 3.3.4 when I click on the ( SHUFFLE ALL ) option. the application Opus version3.3.4 is crash you can see in bug video properly

How to reproduce

Recording Of The Bug

20190430_150605.gif

Logcat

04-30 14:17:49.503 24023 24023 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:17:49.503 24023 24023 E AndroidRuntime: Process: com.sdg.opus, PID: 24023
04-30 14:17:49.503 24023 24023 E AndroidRuntime: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=24023, uid=10231 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.os.Parcel.readException(Parcel.java:1954)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.content.ContentProviderProxy.query(ContentProviderNative.java:418)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.content.ContentResolver.query(ContentResolver.java:766)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.content.ContentResolver.query(ContentResolver.java:716)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.support.v4.content.ContentResolverCompat.query(ContentResolverCompat.java:81)
04-30 14:17:49.503 24023 24023 E AndroidRuntime:    at android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:63)
04-30 14:18:40.708 24095 24095 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:18:40.708 24095 24095 E AndroidRuntime: Process: com.sdg.opus, PID: 24095
04-30 14:18:40.708 24095 24095 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.Net.WebException: Error: NameResolutionFailure
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebConnection+d__16.MoveNext () [0x00044] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebConnection+d__19.MoveNext () [0x000cc] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebOperation+d__57.MoveNext () [0x0009a] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebCompletionSource`1+d__15[T].MoveNext () [0x00094] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.HttpWebRequest+d__241`1[T].MoveNext () [0x000f8] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebClient.GetWebResponse (System.Net.WebRequest request, System.IAsyncResult result) [0x00000] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebClient+d__112.MoveNext () [0x0008d] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Net.WebClient+d__150.MoveNext () [0x0008d] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at Opus.MainActivity+d__64.MoveNext () [0x00267] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at Android.App.SyncContext+<>c__DisplayClass2_0.b__0 () [0x00000] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in :0 
04-30 14:18:40.708 24095 24095 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.75(intptr,intptr)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at mono.java.lang.RunnableImplementor.n_run(Native Method)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:808)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:101)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:166)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7529)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
04-30 14:18:40.708 24095 24095 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
04-30 14:20:32.316 24507 24507 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:20:32.316 24507 24507 E AndroidRuntime: Process: com.sdg.opus, PID: 24507
04-30 14:20:32.316 24507 24507 E AndroidRuntime: android.runtime.JavaProxyThrowable: TagLib.UnsupportedFormatException: /storage/emulated/0/WhatsApp/Media/WhatsApp Audio/AUD-20190419-WA0032.amr (taglib/amr)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction, System.String mimetype, TagLib.ReadStyle propertiesStyle) [0x000d8] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction) [0x00000] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Opus.Api.LocalManager.GetYtID (System.String path) [0x00012] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Opus.Api.LocalManager.CompleteItem (Opus.DataStructure.Song item) [0x00008] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Opus.Fragments.Browse.More (Opus.DataStructure.Song item) [0x0000e] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Opus.Adapter.BrowseAdapter+<>c__DisplayClass8_0.b__0 (System.Object sender, System.EventArgs e) [0x00022] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Android.Views.View+IOnClickListenerImplementor.OnClick (Android.Views.View v) [0x00011] in :0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v) [0x00011] in :0 
04-30 14:20:32.316 24507 24507 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.60(intptr,intptr,intptr)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:30)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.view.View.performClick(View.java:6291)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:24931)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:808)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:101)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:166)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7529)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
04-30 14:20:32.316 24507 24507 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
04-30 14:20:35.143 24827 24827 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:20:35.143 24827 24827 E AndroidRuntime: Process: com.sdg.opus, PID: 24827
04-30 14:20:35.143 24827 24827 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
04-30 14:20:35.143 24827 24827 E AndroidRuntime:   at Opus.Api.Services.Sleeper.OnStartCommand (Android.Content.Intent intent, Android.App.StartCommandFlags flags, System.Int32 startId) [0x00001] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:20:35.143 24827 24827 E AndroidRuntime:   at Android.App.Service.n_OnStartCommand_Landroid_content_Intent_II (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_intent, System.Int32 native_flags, System.Int32 startId) [0x00013] in :0 
04-30 14:20:35.143 24827 24827 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.5(intptr,intptr,intptr,int,int)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at md59b53900cce68be8ed26b2b325b394a25.Sleeper.n_onStartCommand(Native Method)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at md59b53900cce68be8ed26b2b325b394a25.Sleeper.onStartCommand(Sleeper.java:47)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4151)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.app.ActivityThread.-wrap21(Unknown Source:0)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2119)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:108)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:166)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7529)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
04-30 14:20:35.143 24827 24827 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
04-30 14:21:33.920 24873 24873 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:21:33.920 24873 24873 E AndroidRuntime: Process: com.sdg.opus, PID: 24873
04-30 14:21:33.920 24873 24873 E AndroidRuntime: android.runtime.JavaProxyThrowable: TagLib.UnsupportedFormatException: /storage/emulated/0/WhatsApp/Media/WhatsApp Audio/AUD-20190419-WA0032.amr (taglib/amr)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction, System.String mimetype, TagLib.ReadStyle propertiesStyle) [0x000d8] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction) [0x00000] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Opus.Api.LocalManager.GetYtID (System.String path) [0x00012] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Opus.Api.LocalManager.CompleteItem (Opus.DataStructure.Song item) [0x00008] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Opus.Fragments.Browse.More (Opus.DataStructure.Song item) [0x0000e] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Opus.Adapter.BrowseAdapter+<>c__DisplayClass8_0.b__0 (System.Object sender, System.EventArgs e) [0x00022] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Android.Views.View+IOnClickListenerImplementor.OnClick (Android.Views.View v) [0x00011] in :0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v) [0x00011] in :0 
04-30 14:21:33.920 24873 24873 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.60(intptr,intptr,intptr)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:30)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.view.View.performClick(View.java:6291)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:24931)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:808)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:101)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:166)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7529)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
04-30 14:21:33.920 24873 24873 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
04-30 14:21:44.239 25076 25076 E AndroidRuntime: FATAL EXCEPTION: main
04-30 14:21:44.239 25076 25076 E AndroidRuntime: Process: com.sdg.opus, PID: 25076
04-30 14:21:44.239 25076 25076 E AndroidRuntime: android.runtime.JavaProxyThrowable: TagLib.UnsupportedFormatException: /storage/emulated/0/WhatsApp/Media/WhatsApp Audio/AUD-20190419-WA0032.amr (taglib/amr)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction, System.String mimetype, TagLib.ReadStyle propertiesStyle) [0x000d8] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at TagLib.File.Create (TagLib.File+IFileAbstraction abstraction) [0x00000] in <452838627c6e474caadab381bdbea13c>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.Api.LocalManager.GetYtID (System.String path) [0x00012] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.Api.LocalManager.CompleteItem (Opus.DataStructure.Song item) [0x00008] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.Fragments.Browse+<>c.b__8_0 (Opus.DataStructure.Song song, System.Int32 position) [0x00001] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.Adapter.BrowseAdapter.Clicked (Opus.DataStructure.Song song, System.Int32 position) [0x0000b] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.Adapter.BaseCursor`1[T].OnClick (System.Int32 position) [0x0003a] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Opus.DataStructure.SongHolder+<>c__DisplayClass11_0.<.ctor>b__0 (System.Object sender, System.EventArgs e) [0x00011] in <85f8a1e2b0b2466580b370dba737bc60>:0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Android.Views.View+IOnClickListenerImplementor.OnClick (Android.Views.View v) [0x00011] in :0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v) [0x00011] in :0 
04-30 14:21:44.239 25076 25076 E AndroidRuntime:   at (wrapper dynamic-method) System.Object.76(intptr,intptr,intptr)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:30)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.view.View.performClick(View.java:6291)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:24931)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:808)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:101)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:166)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7529)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
04-30 14:21:44.239 25076 25076 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

        
zoriya commented 5 years ago

Oh, I forgot to ask for the read permission when the user want to shuffle all. It will be fixed in the next update. Thanks for your feedback, that's really helpful.

XAMIR555 commented 5 years ago

thanks you sir

zoriya commented 5 years ago

Is it fixed now ?

XAMIR555 commented 5 years ago

yes bug has been fixed now