[Xiaomi Poco X3 NFC ROMs, Kernels, Recoveries, & Ot] XtraWater:
@Lostark13

I'm pretty sure I found an bug in this and the previous builds.

UI crashes every now and then when use:

Back button long press action: Last App.

and Slim Recent is activated.

In other words, long pressing back button which I mapped with 'last app' in Resurrection Tools - Buttons.

The screen goes dark and after a few seconds everything is back. I guess the UI crashed. It's reproducible and it happened on the latest and previous two RR builds.

Finally I was able to catch it with matlog. The issue is: the log is quite large and it exceeds the max size on pastebin and hastebin. I started the recording ca. 2 seconds before the crash.

When the UI restarts it takes a few seconds. So I'm not bale to stop the recording earlier which causing the large log.

What's your recommendation to do now to get a chance that a maintainer / developer could have a look at it.

May be the logs shows it just at the beginning?

01-28 01:03:08.944 E/AndroidRuntime(2475): FATAL EXCEPTION: main
01-28 01:03:08.944 E/AndroidRuntime(2475): Process: com.android.systemui, PID: 2475
01-28 01:03:08.944 E/AndroidRuntime(2475): java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{565609f position=0 id=-1, oldPos=0, pLpos:-1 scrap [attachedScrap] update tmpDetached no parent} androidx.recyclerview.widget.RecyclerView{695df5 VFED..... ......ID 0,130-514,2168 #7f0a03a5 app:id/recent_list}, adapter:com.android.systemui.slimrecent.ExpandableCardAdapter@4f5bb27, layout:com.android.systemui.slimrecent.RecentController$CacheMoreCardsLayoutManager@2d0c1d4, context:com.android.systemui.SystemUIApplication@a3b1c0b
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:5953)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6136)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6096)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6092)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1627)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:640)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:4066)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3830)
01-28 01:03:08.944 E/AndroidRuntime(2475): at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4385)