Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

'App/UI crashed' during subscription import #168

Closed
6 tasks done
rilesbriles opened this issue Mar 24, 2022 · 6 comments
Closed
6 tasks done

'App/UI crashed' during subscription import #168

rilesbriles opened this issue Mar 24, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@rilesbriles
Copy link

Checklist

  • I am able to reproduce the bug with the latest version.
  • I am not able to reproduce the bug with the same version of upstream NewPipe.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • 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.22.1

Steps to reproduce the bug

  1. Press import
  2. Select zip or csv file

Expected behavior

Import my subscriptions

Actual behavior

Gives error

Screenshots/Screen recordings

No response

Logs


java.lang.RuntimeException: Unable to start service org.schabi.newpipe.local.subscription.services.SubscriptionsImportService@a3fc4e0 with Intent { cmp=org.polymorphicshade.newpipe/org.schabi.newpipe.local.subscription.services.SubscriptionsImportService (has extras) }: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{2713809 14037:org.polymorphicshade.newpipe/u0a495} (pid=14037, uid=10495) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4536)
at android.app.ActivityThread.access$2200(ActivityThread.java:274)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:8035)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{2713809 14037:org.polymorphicshade.newpipe/u0a495} (pid=14037, uid=10495) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
at android.os.Parcel.createException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2340)
at android.os.Parcel.readException(Parcel.java:2282)
at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5855)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7136)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2954)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2525)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1819)
at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1650)
at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:1597)
at us.shandian.giga.io.FileStreamSAF.(FileStreamSAF.java:32)
at org.schabi.newpipe.streams.io.StoredFileHelper.getStream(StoredFileHelper.java:195)
at org.schabi.newpipe.local.subscription.services.SubscriptionsImportService.onStartCommand(SubscriptionsImportService.java:118)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4518)
... 8 more

Affected Android/Custom ROM version

Android 11

Affected device model

Oneplus 9 pro

Additional information

No response

@rilesbriles rilesbriles added the bug Something isn't working label Mar 24, 2022
@prestonpirateking
Copy link

I also have this error

@downloadkct
Copy link

Same here, the regular version of newpipe works great while importing.

@gmferise
Copy link

gmferise commented Apr 3, 2022

Also experiencing this. I tried checking the storage permission for the app but no luck. The only one available to enable says "Allow access to media only", so I think the wrong permission is requested. Zip and CSV might require another permission.

@MDP43140
Copy link

I have the same problem too, but mine was caused by importing to this debug apk (removed), exporting it, and importing it on version 0.22.2. importing older settings/subscriptions won't cause this issue though, so if you have older backups, you can try importing that and see if its not crashed...

@JeffKineiDOGE
Copy link

Same, Android 12L, NewPipe 0.23.0
When I try .csv crash, when I try zip don't work, I get message: could not import subscriptions

@polymorphicshade
Copy link
Owner

I can't reproduce this issue. Try using the latest release of my fork. If you can consistently reproduce this problem I'll re-open this issue.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants