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

in #utopian-io5 years ago (edited)

Related Information

Actual Behaviour


After moving from feature page if i pull down to refresh playlist it crashes.This is another weird Behaviour that it does not crash if i refresh playlist normally but after scrolling from feature 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

  • App version:v3.4.6
  • OS:Android 9.0
  • Device:Samsung A10

Recording Of The Bug

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)

Sort:  

Hello @masudrana. Thank you for your contribution. This report lacks clarity a bit and I want to suggest that you improve on your bug description. Be sure it is very clear, informative, and detailed. That said, thanks for including a log. That is very helpful in most cases.

I look forward to your next report.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

I can not recognize where is the lack? I think writing a composition without the root thing is not well.I written the exact thing what need to reproduce the bug,can you cite what i am missing?
Thanks for review.

The main issue is with style and grammar. You may have managed to pass your message but it is sometimes difficult to understand.

Ok i got the point next time i will try my best .Thanks.

Thank you for your review, @knowledges! Keep up the good work!

Hi @masudrana!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Congratulations @masudrana! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 200 posts. Your next target is to reach 250 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Hey, @masudrana!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63630.04
ETH 2656.44
USDT 1.00
SBD 2.81