Skip to content

The app crashes when I try to open it from the background after a few hours. #12985

@jehad-husein

Description

@jehad-husein

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
  • I have read and understood the AI policy. The content of this bug report is not generated by AI.

Affected version

1092 nightly

Steps to reproduce the bug

  1. Leave the app in the background for an hour or two after using it.
  2. Then open it from the phone window.
  3. The app will crash.

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

I actually didn't really understand why the app crashed.It most likely crashed when opened in the background or from the phone's window.

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: BD
  • Content Language: bn-
  • App Language: en_US
  • Service: <unknown_service>
  • Timestamp: 2026-01-01T12:06:29.826+06:00
  • Package: org.schabi.newpipe.nightly
  • Service: <unknown_service>
  • Version: 0.28.0-1092-202601010142
  • OS: Linux Itel/S665L-GL/itel-S665L:12/SP1A.210812.016/GL-20240717V518:user/release-keys 12 - 31
Crash log

java.lang.IllegalStateException: ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot)
	at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:7891)
	at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6969)
	at androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:294)
	at androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:354)
	at androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:370)
	at androidx.recyclerview.widget.GapWorker.prefetch(GapWorker.java:377)
	at androidx.recyclerview.widget.GapWorker.run(GapWorker.java:408)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7996)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)


Affected Android/Custom ROM version

Android 12 It is not rooted.

Affected device model

Itel s23

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugneeds triageIssue is not yet ready for PR authors to take up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions