Skip to content

UI error crash when rotating screen while typing url to import soundcloud file #11914

@mengqianX

Description

@mengqianX

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

0.27.4(latest build)

Steps to reproduce the bug

1.click "Navigation Drawer"/"Hamburger Menu"
2.click "Subscriptions" button
3.click "more options" and click "import from"
4.select "soundcloud" button
5.type anything in edit view and click "import" button
6.when the confirm dialog appears, rotating the device and app crash.

Expected behavior

keep same state before rotating

Actual behavior

crash

Screenshots/Screen recordings

newpipe-bug1.mp4

Logs

crash log
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.schabi.newpipe.debug/org.schabi.newpipe.MainActivity}: java.lang.IllegalStateException: Result intent is null
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5456)
        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5362)
        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.IllegalStateException: Result intent is null
        at org.schabi.newpipe.local.subscription.ImportConfirmationDialog.onCreate(ImportConfirmationDialog.java:57)
        at androidx.fragment.app.Fragment.performCreate(Fragment.java:3094)
        at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:504)
        at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:268)
        at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114)
        at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
        at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
        at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2941)
        at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
        at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:219)
        at org.schabi.newpipe.MainActivity.onCreate(MainActivity.java:142)
        at android.app.Activity.performCreate(Activity.java:7994)
        at android.app.Activity.performCreate(Activity.java:7978)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
        ... 13 more

Affected Android/Custom ROM version

android11

Affected device model

google nexus4

Additional information

may be similar with #7825 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    SoundCloudService, https://soundcloud.com/bugIssue is related to a bug

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions