java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true

GitHub | vise950 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    IllegalArgumentException searchView adapter

    GitHub | 5 months ago | vise950
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true
  2. 0

    Chrash whilst performing a search-task in the main activity

    GitHub | 3 months ago | wesselperik
    java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true`

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Scrapped or attached views may not be recycled. isScrap:false isAttached:true

      at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal()
    2. Android v7
      RecyclerView.setAdapter
      1. android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5234)
      2. android.support.v7.widget.RecyclerView$Recycler.recycleView(RecyclerView.java:5181)
      3. android.support.v7.widget.RecyclerView$LayoutManager.removeAndRecycleViewAt(RecyclerView.java:7426)
      4. android.support.v7.widget.RecyclerView$LayoutManager.removeAndRecycleAllViews(RecyclerView.java:8704)
      5. android.support.v7.widget.RecyclerView.setAdapterInternal(RecyclerView.java:944)
      6. android.support.v7.widget.RecyclerView.setAdapter(RecyclerView.java:915)
      6 frames
    3. com.lapism.searchview
      SearchView.setAdapter
      1. com.lapism.searchview.SearchView.setAdapter(SearchView.java:635)
      1 frame
    4. com.dev.nicola
      MainActivity$5$1$1.run
      1. com.dev.nicola.allweather.MainActivity$5$1$1.run(MainActivity.java:365)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5417)
      4 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      1 frame