TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.66k stars 3.08k forks source link

Download Crash #11514

Open Tashleo opened 2 months ago

Tashleo commented 2 months ago

Checklist

Affected version

0.27.02

Steps to reproduce the bug

Exception

java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToNext()' on a null object reference
    at android.os.Parcel.createException(Parcel.java:2096)
    at android.os.Parcel.readException(Parcel.java:2058)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:188)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
    at android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
    at android.content.ContentResolver.query(ContentResolver.java:955)
    at android.content.ContentResolver.query(ContentResolver.java:891)
    at android.content.ContentResolver.query(ContentResolver.java:840)
    at org.schabi.newpipe.streams.io.StoredDirectoryHelper.findFileSAFHelper(StoredDirectoryHelper.java:367)
    at org.schabi.newpipe.streams.io.StoredDirectoryHelper.findFile(StoredDirectoryHelper.java:277)
    at org.schabi.newpipe.download.DownloadDialog.prepareSelectedDownload(DownloadDialog.java:878)
    at org.schabi.newpipe.download.DownloadDialog.lambda$initToolbar$1(DownloadDialog.java:353)
    at org.schabi.newpipe.download.DownloadDialog.$r8$lambda$eftfC3lumhpNMhhwp_4dKbyeS0U(DownloadDialog.java:0)
    at org.schabi.newpipe.download.DownloadDialog$$ExternalSyntheticLambda13.onMenuItemClick(R8$$SyntheticClass:0)
    at androidx.appcompat.widget.Toolbar$1.onMenuItemClick(Toolbar.java:225)
    at androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:781)
    at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:836)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:159)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:987)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:977)
    at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:625)
    at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:156)
    at android.view.View.performClick(View.java:7317)
    at android.view.View.performClickInternal(View.java:7291)
    at android.view.View.access$3600(View.java:838)
    at android.view.View$PerformClick.run(View.java:28247)
    at android.os.Handler.handleCallback(Handler.java:900)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:219)
    at android.app.ActivityThread.main(ActivityThread.java:8668)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)


Expected behavior

I want the app to download efficiently on my phone which has the updated Linux system on my Huawei P30.

Actual behavior

  1. Tap on Download on video
  2. Waiting for streaming details
  3. Immediately crashes and says that something went wrong
  4. Resets app after closing it

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Emui 12.0.0

Affected device model

Huawei P38

Additional information

No response

opusforlife2 commented 1 month ago

Works on another device?

VARTIK-ARSH commented 1 month ago

@Tashleo I can work on it , faced same issue in my app so i can do it .

github-actions[bot] commented 1 month ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

opusforlife2 commented 1 month ago

Hey @VARTIK-ARSH! Thanks for showing an interest in contributing.