java.lang.IllegalStateException:

  1. 0

    I got this bug

    GitHub | 9 months ago | NewXuSoft
    java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 69#190381297

    GitHub | 9 months ago | nickbutcher
    java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling

  1. Aria Pahlavan 7 times, last 2 weeks ago
  2. Alexandru Popa 10 times, last 3 weeks ago
  3. filpgame 47 times, last 3 weeks ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll()
  2. Android v7
    RecyclerView$Adapter.notifyItemInserted
    1. android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2403)
    2. android.support.v7.widget.RecyclerView$RecyclerViewDataObserver.onItemRangeInserted(RecyclerView.java:4634)
    3. android.support.v7.widget.RecyclerView$AdapterDataObservable.notifyItemRangeInserted(RecyclerView.java:10472)
    4. android.support.v7.widget.RecyclerView$Adapter.notifyItemInserted(RecyclerView.java:6214)
    4 frames
  3. com.test.film
    BuzzFeedsFragment$5.onPreExecute
    1. com.test.film.buzz.BuzzFeedsFragment$5.onPreExecute(BuzzFeedsFragment.java:229)
    1 frame
  4. com.test.utils
    ParallelAsyncTask.execute
    1. com.test.utils.ParallelAsyncTask.executeOnExecutor(ParallelAsyncTask.java:595)
    2. com.test.utils.ParallelAsyncTask.execute(ParallelAsyncTask.java:543)
    2 frames
  5. com.test.film
    BuzzFeedsFragment$3.onScrolled
    1. com.test.film.buzz.BuzzFeedsFragment.onLoadMore(BuzzFeedsFragment.java:258)
    2. com.test.film.buzz.BuzzFeedsFragment$3.onScrolled(BuzzFeedsFragment.java:177)
    2 frames
  6. Android v7
    RecyclerView$ViewFlinger.run
    1. android.support.v7.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:4305)
    2. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4463)
    2 frames
  7. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:683)
    3. android.view.Choreographer.doFrame(Choreographer.java:616)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
    5. android.os.Handler.handleCallback(Handler.java:751)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:154)
    8. android.app.ActivityThread.main(ActivityThread.java:6077)
    8 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    2 frames