{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/562","repository_url":"https://api.github.com/repos/mikepenz/FastAdapter","labels_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/562/comments","events_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/562/events","html_url":"https://github.com/mikepenz/FastAdapter/issues/562","id":272990835,"number":562,"title":"Increasing amount of crashes in RecyclerView. FastAdapter issue?","user":{"login":"JuhaniLehtimaeki","id":1415461,"avatar_url":"https://avatars0.githubusercontent.com/u/1415461?v=4","gravatar_id":"","url":"https://api.github.com/users/JuhaniLehtimaeki","html_url":"https://github.com/JuhaniLehtimaeki","followers_url":"https://api.github.com/users/JuhaniLehtimaeki/followers","following_url":"https://api.github.com/users/JuhaniLehtimaeki/following{/other_user}","gists_url":"https://api.github.com/users/JuhaniLehtimaeki/gists{/gist_id}","starred_url":"https://api.github.com/users/JuhaniLehtimaeki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuhaniLehtimaeki/subscriptions","organizations_url":"https://api.github.com/users/JuhaniLehtimaeki/orgs","repos_url":"https://api.github.com/users/JuhaniLehtimaeki/repos","events_url":"https://api.github.com/users/JuhaniLehtimaeki/events{/privacy}","received_events_url":"https://api.github.com/users/JuhaniLehtimaeki/received_events","type":"User","site_admin":false},"labels":[{"id":304496575,"url":"https://api.github.com/repos/mikepenz/FastAdapter/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars0.githubusercontent.com/u/1476232?v=4","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars0.githubusercontent.com/u/1476232?v=4","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-11-10T16:38:22Z","updated_at":"2017-11-10T18:53:09Z","closed_at":null,"author_association":"NONE","body":"I'm experiencing a great amount of crashes in RecyclerView. None of them have any reference to my code. I heavily utilise FastAdapter but there's no reference to any of the library code either. I'm a bit lost. I find FastAdapter very useful and would like keep using it. I just don't know what the actual cause can be or how I would go about fixing these crashes. Or, Mike, if you've seen something similar when building your awesome lib?\r\n\r\nI'm writing here to see if others using the library have same crashes. I'm not willing to point fingers to the library as the cause is so unclear.\r\n\r\nHere's couple of the most frequent ones from Crashlytics:\r\n\r\n```java\r\nFatal Exception: java.lang.IllegalArgumentException\r\nView android.widget.LinearLayout{1755534 V.E...CL. ........ 828,851-975,1106} is not a direct child of android.support.v7.widget.RecyclerView{3b4ffd1 VFED..... .F....I. 0,830-1080,1182 #7f0800b3 app:id/friendsRecyclerView}\r\n```\r\n\r\n```\r\nandroid.support.v7.widget.RecyclerView.getChildViewHolder (RecyclerView.java:4353)\r\nandroid.support.v7.widget.RecyclerView.addAnimatingView (RecyclerView.java:1327)\r\nandroid.support.v7.widget.RecyclerView.animateChange (RecyclerView.java:3975)\r\nandroid.support.v7.widget.RecyclerView.dispatchLayoutStep3 (RecyclerView.java:3779)\r\nandroid.support.v7.widget.RecyclerView.dispatchLayout (RecyclerView.java:3447)\r\nandroid.support.v7.widget.RecyclerView.onLayout (RecyclerView.java:3988)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.LinearLayout.setChildFrame (LinearLayout.java:1743)\r\nandroid.widget.LinearLayout.layoutVertical (LinearLayout.java:1586)\r\nandroid.widget.LinearLayout.onLayout (LinearLayout.java:1495)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.LinearLayout.setChildFrame (LinearLayout.java:1743)\r\nandroid.widget.LinearLayout.layoutVertical (LinearLayout.java:1586)\r\nandroid.widget.LinearLayout.onLayout (LinearLayout.java:1495)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\nandroid.support.v4.widget.NestedScrollView.onLayout (NestedScrollView.java:1673)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.support.design.widget.HeaderScrollingViewBehavior.layoutChild (HeaderScrollingViewBehavior.java:132)\r\nandroid.support.design.widget.ViewOffsetBehavior.onLayoutChild (ViewOffsetBehavior.java:42)\r\nandroid.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild (AppBarLayout.java:1361)\r\nandroid.support.design.widget.CoordinatorLayout.onLayout (CoordinatorLayout.java:874)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.LinearLayout.setChildFrame (LinearLayout.java:1743)\r\nandroid.widget.LinearLayout.layoutVertical (LinearLayout.java:1586)\r\nandroid.widget.LinearLayout.onLayout (LinearLayout.java:1495)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.LinearLayout.setChildFrame (LinearLayout.java:1743)\r\nandroid.widget.LinearLayout.layoutVertical (LinearLayout.java:1586)\r\nandroid.widget.LinearLayout.onLayout (LinearLayout.java:1495)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.widget.FrameLayout.layoutChildren (FrameLayout.java:336)\r\nandroid.widget.FrameLayout.onLayout (FrameLayout.java:273)\r\ncom.android.internal.policy.PhoneWindow$DecorView.onLayout (PhoneWindow.java:2678)\r\nandroid.view.View.layout (View.java:16630)\r\nandroid.view.ViewGroup.layout (ViewGroup.java:5437)\r\nandroid.view.ViewRootImpl.performLayout (ViewRootImpl.java:2171)\r\nandroid.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1931)\r\nandroid.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1107)\r\nandroid.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6013)\r\nandroid.view.Choreographer$CallbackRecord.run (Choreographer.java:858)\r\nandroid.view.Choreographer.doCallbacks (Choreographer.java:670)\r\nandroid.view.Choreographer.doFrame (Choreographer.java:606)\r\nandroid.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:844)\r\nandroid.os.Handler.handleCallback (Handler.java:739)\r\nandroid.os.Handler.dispatchMessage (Handler.java:95)\r\nandroid.os.Looper.loop (Looper.java:148)\r\nandroid.app.ActivityThread.main (ActivityThread.java:5417)\r\njava.lang.reflect.Method.invoke (Method.java)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)\r\ncom.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)\r\n```\r\n\r\n-------\r\n\r\n```\r\nFatal Exception: java.lang.IllegalArgumentException\r\nTmp detached view should be removed from RecyclerView before it can be recycled: ViewHolder{c985766 position=0 id=1000000000, oldPos=-1, pLpos:-1 update tmpDetached no parent} android.support.v7.widget.RecyclerView{f78d207 VFED..... .F....ID 402,1264-1038,1618 #7f0800b3 app:id/friendsRecyclerView}, adapter:com.mikepenz.fastadapter.FastAdapter@7ad4203, layout:android.support.v7.widget.LinearLayoutManager@343580, context:com.socialstepsapp.socialsteps.MainActivity@d9b88db\r\n```\r\n\r\n```\r\nandroid.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal (RecyclerView.java:5896)\r\nandroid.support.v7.widget.RecyclerView.removeAnimatingView (RecyclerView.java:1350)\r\nandroid.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished (RecyclerView.java:12015)\r\nandroid.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished (RecyclerView.java:12515)\r\nandroid.support.v7.widget.SimpleItemAnimator.dispatchAddFinished (SimpleItemAnimator.java:303)\r\nandroid.support.v7.widget.DefaultItemAnimator$5.onAnimationEnd (DefaultItemAnimator.java:247)\r\nandroid.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd (ViewPropertyAnimator.java:1114)\r\nandroid.animation.ValueAnimator.endAnimation (ValueAnimator.java:1239)\r\nandroid.animation.ValueAnimator$AnimationHandler.doAnimationFrame (ValueAnimator.java:766)\r\nandroid.animation.ValueAnimator$AnimationHandler$1.run (ValueAnimator.java:801)\r\nandroid.view.Choreographer$CallbackRecord.run (Choreographer.java:920)\r\nandroid.view.Choreographer.doCallbacks (Choreographer.java:695)\r\nandroid.view.Choreographer.doFrame (Choreographer.java:628)\r\nandroid.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:906)\r\nandroid.os.Handler.handleCallback (Handler.java:739)\r\nandroid.os.Handler.dispatchMessage (Handler.java:95)\r\nandroid.support.test.espresso.base.Interrogator.loopAndInterrogate (Interrogator.java:148)\r\nandroid.support.test.espresso.base.UiControllerImpl.loopUntil (UiControllerImpl.java:466)\r\nandroid.support.test.espresso.base.UiControllerImpl.loopUntil (UiControllerImpl.java:420)\r\nandroid.support.test.espresso.base.UiControllerImpl.injectMotionEvent (UiControllerImpl.java:234)\r\nandroid.support.test.espresso.action.MotionEvents.sendUp (MotionEvents.java:140)\r\nandroid.support.test.espresso.action.MotionEvents.sendUp (MotionEvents.java:123)\r\nandroid.support.test.espresso.action.Tap.sendSingleTap (Tap.java:170)\r\nandroid.support.test.espresso.action.Tap.access$100 (Tap.java:31)\r\nandroid.support.test.espresso.action.Tap$1.sendTap (Tap.java:46)\r\nandroid.support.test.espresso.action.GeneralClickAction.perform (GeneralClickAction.java:136)\r\nandroid.support.test.espresso.ViewInteraction$SingleExecutionViewAction.perform (ViewInteraction.java:355)\r\nandroid.support.test.espresso.ViewInteraction.doPerform (ViewInteraction.java:242)\r\nandroid.support.test.espresso.ViewInteraction.access$100 (ViewInteraction.java:62)\r\nandroid.support.test.espresso.ViewInteraction$1.call (ViewInteraction.java:149)\r\nandroid.support.test.espresso.ViewInteraction$1.call (ViewInteraction.java:146)\r\njava.util.concurrent.FutureTask.run (FutureTask.java:237)\r\nandroid.os.Handler.handleCallback (Handler.java:739)\r\nandroid.os.Handler.dispatchMessage (Handler.java:95)\r\nandroid.os.Looper.loop (Looper.java:158)\r\nandroid.app.ActivityThread.main (ActivityThread.java:7224)\r\njava.lang.reflect.Method.invoke (Method.java)\r\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)\r\ncom.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/comments/343556001","html_url":"https://github.com/mikepenz/FastAdapter/issues/562#issuecomment-343556001","issue_url":"https://api.github.com/repos/mikepenz/FastAdapter/issues/562","id":343556001,"user":{"login":"JuhaniLehtimaeki","id":1415461,"avatar_url":"https://avatars0.githubusercontent.com/u/1415461?v=4","gravatar_id":"","url":"https://api.github.com/users/JuhaniLehtimaeki","html_url":"https://github.com/JuhaniLehtimaeki","followers_url":"https://api.github.com/users/JuhaniLehtimaeki/followers","following_url":"https://api.github.com/users/JuhaniLehtimaeki/following{/other_user}","gists_url":"https://api.github.com/users/JuhaniLehtimaeki/gists{/gist_id}","starred_url":"https://api.github.com/users/JuhaniLehtimaeki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuhaniLehtimaeki/subscriptions","organizations_url":"https://api.github.com/users/JuhaniLehtimaeki/orgs","repos_url":"https://api.github.com/users/JuhaniLehtimaeki/repos","events_url":"https://api.github.com/users/JuhaniLehtimaeki/events{/privacy}","received_events_url":"https://api.github.com/users/JuhaniLehtimaeki/received_events","type":"User","site_admin":false},"created_at":"2017-11-10T18:53:09Z","updated_at":"2017-11-10T18:53:09Z","author_association":"NONE","body":"Good tips!\r\nThank you for taking the time to write this response (on top of writing the lib ;)\r\n\r\nI've try to remedy all the points. Deploying and hoping to see end of these crashes :-)"}}
{"actor":{"display_login":"JuhaniLehtimaeki"}}