Skip to content

Crash during rotation in popup mode #12810

@gl-dev

Description

@gl-dev

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.

Affected version

28.0.0

Steps to reproduce the bug

Using playlist with enqueue, enqueue next several times
Video in popup mode
Device rotation 180°
Crash and loss of playlist

Expected behavior

No crash
Playlist survives

Actual behavior

Crash
Playlist empty

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: DE
  • Content Language: en-
  • App Language: en
  • Service: none
  • Timestamp: 2025-11-17T08:37:12.244+01:00
  • Package: org.schabi.newpipe
  • Service: none
  • Version: 0.28.0
  • OS: Linux Android 9 - 28
Crash log

java.lang.IllegalStateException: Fragment CommentsFragment{ec064d1} (0a258dbc-fcbc-43f1-802f-2f37f267997e) not attached to a context.
	at androidx.fragment.app.Fragment.requireContext(Fragment.java:972)
	at androidx.fragment.app.Fragment.getResources(Fragment.java:1036)
	at androidx.fragment.app.Fragment.getString(Fragment.java:1058)
	at org.schabi.newpipe.fragments.list.BaseListFragment.onSharedPreferenceChanged(BaseListFragment.java:477)
	at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:607)
	at android.app.SharedPreferencesImpl$EditorImpl.lambda$notifyListeners$0(SharedPreferencesImpl.java:613)
	at android.app.-$$Lambda$SharedPreferencesImpl$EditorImpl$3CAjkhzA131V3V-sLfP2uy0FWZ0.run(Unknown Source:4)
	at android.os.Handler.handleCallback(Handler.java:873)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6718)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


Affected Android/Custom ROM version

No response

Affected device model

No response

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