Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kingofglory opened this issue Sep 9, 2016 · 3 comments

Comments

@kingofglory
Copy link

When end footerview appearing,remove the last item,then wiil crash.The log is as above.Can you tell you what's the problem?Thank you!

@Aspsine
Copy link
Owner

Aspsine commented Sep 9, 2016

I need three things to track the problem.

  1. Full exception log message
  2. The code you wrote that cause the Exception.
  3. What is the version of the lib you use?

@qamarzman
Copy link

Any resolution on this issue? I am having this issue.

@qamarzman
Copy link

@Aspsine
Here is crash log,
java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true com.aspsine.irecyclerview.IRecyclerView{24fd888 VFED..... ......ID 0,119-1752,1800 #7f0a0e25 app:id/patient_gridview}, adapter:com.aspsine.irecyclerview.WrapperAdapter@107b42f, layout:androidx.recyclerview.widget.LinearLayoutManager@4883a3c, context:activities.MainActivity@d10d07a
Stack trace
androidx.recyclerview.widget.RecyclerView$Recycler.recycleViewHolderInternal RecyclerView.java:6433
androidx.recyclerview.widget.RecyclerView$Recycler.quickRecycleScrapView RecyclerView.java:6554
androidx.recyclerview.widget.RecyclerView$LayoutManager.removeAndRecycleScrapInt RecyclerView.java:9249
androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep3 RecyclerView.java:4207
androidx.recyclerview.widget.RecyclerView.dispatchLayout RecyclerView.java:3862
androidx.recyclerview.widget.RecyclerView.onLayout RecyclerView.java:4404
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.RelativeLayout.onLayout RelativeLayout.java:1103
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout SwipeRefreshLayout.java:625
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.RelativeLayout.onLayout RelativeLayout.java:1103
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.LinearLayout.setChildFrame LinearLayout.java:1829
android.widget.LinearLayout.layoutVertical LinearLayout.java:1673
android.widget.LinearLayout.onLayout LinearLayout.java:1582
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.LinearLayout.setChildFrame LinearLayout.java:1829
android.widget.LinearLayout.layoutVertical LinearLayout.java:1673
android.widget.LinearLayout.onLayout LinearLayout.java:1582
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.LinearLayout.setChildFrame LinearLayout.java:1829
android.widget.LinearLayout.layoutVertical LinearLayout.java:1673
android.widget.LinearLayout.onLayout LinearLayout.java:1582
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.RelativeLayout.onLayout RelativeLayout.java:1103
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
androidx.drawerlayout.widget.DrawerLayout.onLayout DrawerLayout.java:1231
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.LinearLayout.setChildFrame LinearLayout.java:1829
android.widget.LinearLayout.layoutVertical LinearLayout.java:1673
android.widget.LinearLayout.onLayout LinearLayout.java:1582
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.widget.FrameLayout.layoutChildren FrameLayout.java:332
android.widget.FrameLayout.onLayout FrameLayout.java:270
com.android.internal.policy.DecorView.onLayout DecorView.java:1099
android.view.View.layout View.java:23753
android.view.ViewGroup.layout ViewGroup.java:7277
android.view.ViewRootImpl.performLayout ViewRootImpl.java:3678
android.view.ViewRootImpl.performTraversals ViewRootImpl.java:3138
android.view.ViewRootImpl.doTraversal ViewRootImpl.java:2199
android.view.ViewRootImpl$TraversalRunnable.run ViewRootImpl.java:9079
android.view.Choreographer$CallbackRecord.run Choreographer.java:999
android.view.Choreographer.doCallbacks Choreographer.java:797
android.view.Choreographer.doFrame Choreographer.java:732
android.view.Choreographer$FrameDisplayEventReceiver.run Choreographer.java:984
android.os.Handler.handleCallback Handler.java:883
android.os.Handler.dispatchMessage Handler.java:100
android.os.Looper.loop Looper.java:237
android.app.ActivityThread.main ActivityThread.java:8129
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:496
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants