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

The app crashes when using the "Delete" feature when deleting all images in the "LauncherActivity" menu #490

Open
ahyar92 opened this issue May 23, 2018 · 0 comments

Comments

@ahyar92
Copy link

ahyar92 commented May 23, 2018

Expected behavior

Supposedly, when I use the delete feature to delete all images in the LauncherActivity menu, the app will not crash.

Actual behavior

When I go to the "LauncherActivity" menu and use the delete feature to delete all the images on the page, and when I continue to use the delete feature until all the images have been deleted, the application suddenly crashes.

How to reproduce

  1. Install and open the app
  2. Go to the "LauncherActivity" menu
  3. Next use the delete feature and delete all images, continue to use the delete feature do not stop until the image all on the page is erased, then you will see the application will crash.

  • Device: Xiaomi Redmi 4X
  • Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
  • Application Version: 1.7.0

Recording Of The Bug

Logcat

05-23 23:41:56.457 11483 11483 E AndroidRuntime: Process: com.marshalchen.ultimaterecyclerview.demo, PID: 11483
05-23 23:41:56.457 11483 11483 E AndroidRuntime: java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:7048)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7012)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7000)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1428)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3211)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3067)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:598)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at com.android.internal.policy.DecorView.onLayout(DecorView.java:730)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.View.layout(View.java:17663)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewGroup.layout(ViewGroup.java:5577)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2388)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2110)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1296)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6401)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:876)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:688)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:623)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:862)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:754)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:163)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6361)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-23 23:41:56.457 11483 11483 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
```
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

1 participant