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

in utopian-io •  7 years ago  (edited)

Project Information

Repository : https://github.com/cymcsg/UltimateRecyclerView
Title : Ultimate Recyclerview Demo
Publisher : Marshal Chen

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 Note 5A
  • Operating system: Nougat, 7.1.0 (Ram 2 GB)
  • Application Version: 1.7.0

Recording Of The Bug

Proof of Work Done

Submitted the issue on GitHub: Click here
My GitHub Profile: https://github.com/ahyar92

Logcat

05-23 23:41:56.457 11483 11483 E AndroidRuntime: FATAL EXCEPTION: main
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)
```
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello @ahyar92,
this is a demo app for the library.
the main functionality is in the library. The Demo app is just to showcase the SDK provided by the developer, hence it is not necessarily a good contribution. the demo app may contain a lot of bugs but that's not the primary feature. the app in that repository contains no updation of code in last 6 months. the only commit it got was here related to just replacing the word implementation to complile. It is appreciated that you opened the issue on Github. Thank you very much. But you may see that the app on google play was last updated 2 years ago. this is proof that the demo app will not be much utilized out of the functionality of the library.
[utopian-io]

[Community-Manager]

Thank you sir @sachincool, this will be an input for me to be better.

Thank you sir @sachincool, this will be an input for me to be better.

Thank you for the information @ahyar92

terimakasih kembali untuk komentarnya

Thanks for the video, everything became clear )

  ·  7 years ago (edited)

thank you for comment :)

bang, sorry OOT lagi, itu pakai tag #utopian-io ada keuntungan tersendiri?, bukannya utopian-io dah kena hack beberapa waktu lalu bang?

Yea utopian mengalami masalah dan masih dalam tahap perbaikan untuk saat ini, namun kontributor dapat membagikan kontribusinya melalui steemit, busy, atatu esteem sampai utopian siap digunakan kembali.