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

[Opus][v3.4.6]App crashes if i refresh playlist after scrolling from feature page. #36

Closed masudr4n4 closed 5 years ago

masudr4n4 commented 5 years ago

Actual Behaviour

After moving from feature page if i pull down to refresh playlist it crashes.

Expected behavior

I expected that i can refresh playlist without crashing.

Step to Reproduce

  1. Download and install the app.
  2. Click brows and allow permission.
  3. Then click Home
  4. Click more to explore feature music.
  5. From feature music list scroll down and scroll up
  6. After that click playlist and pull down to refresh the playlist.
  7. See the error

Information

Recording Of The Bug

https://youtu.be/KIARQRiFjRY

Logcat


07-02 14:23:53.151 26974 26974 E AndroidRuntime: FATAL EXCEPTION: main
07-02 14:23:53.151 26974 26974 E AndroidRuntime: Process: com.sdg.opus, PID: 26974
07-02 14:23:53.151 26974 26974 E AndroidRuntime: java.lang.IllegalStateException: Fragment Home{d05f5dd} not attached to a context.
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.v4.app.Fragment.requireContext(Fragment.java:2)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.v4.app.Fragment.getResources(Fragment.java:1)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at mono.android.support.v4.widget.SwipeRefreshLayout_OnRefreshListenerImplementor.n_onRefresh(Native Method)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at mono.android.support.v4.widget.SwipeRefreshLayout_OnRefreshListenerImplementor.onRefresh(SwipeRefreshLayout_OnRefreshListenerImplementor.java:1)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.v4.widget.SwipeRefreshLayout$1.onAnimationEnd(SwipeRefreshLayout.java:6)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.v4.widget.CircleImageView.onAnimationEnd(CircleImageView.java:3)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.finishAnimatingView(ViewGroup.java:7298)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21773)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21872)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20742)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:17)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:17)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.draw(View.java:21595)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.drawChild(ViewGroup.java:4553)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4328)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.View.updateDisplayListIfDirty(View.java:20728)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:725)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:731)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:840)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewRootImpl.draw(ViewRootImpl.java:3940)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3714)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3025)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1888)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8503)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.Choreographer.doCallbacks(Choreographer.java:761)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.Choreographer.doFrame(Choreographer.java:696)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:873)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:99)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:214)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7073)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-02 14:23:53.151 26974 26974 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

zoriya commented 5 years ago

Thanks for the feedback, that's one of the hardest things to debug for me but it's the simplest to fix.

Will be fixed in the next release.

zoriya commented 5 years ago

Is it fixed in the last release?

masudr4n4 commented 5 years ago

Sorry for late reply..i just checked 3.5.1 .its working fine. 👌👌👌

zoriya commented 5 years ago

Nice! Thanks for the reply.