Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on deleting two or more files from recent tab #63

Closed
7 tasks done
ghost opened this issue Feb 29, 2024 · 4 comments
Closed
7 tasks done

Crash on deleting two or more files from recent tab #63

ghost opened this issue Feb 29, 2024 · 4 comments
Labels
invalid This does not seem right

Comments

@ghost
Copy link

ghost commented Feb 29, 2024

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) 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 app version

1.0.0

Affected Android/Custom ROM version

Android 11

Affected device model

Samsung M30s

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Delete any 2 or more files in recent tab
  2. Then app closes automatically. When opened the app again, following screen comes up
Screenshot_20240229-163803_File Manager

Expected behavior

It should not close automatically

Actual behavior

It closes automatically like a app crash. Shows error volume external not found. Sometimes it also prompts with External Storage unfortunately stopped

Screenshots/Screen recordings

No response

Additional information

No response

@ghost ghost added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Feb 29, 2024
@Aga-C
Copy link
Member

Aga-C commented Feb 29, 2024

If anybody else also encounters this bug, please write your device model and OS version. It seems to be device/software specific, so we'd like to have as much info as possible.

@Aga-C Aga-C added device/software specific Issues that only happen on some devices or with some specific hardware/software and removed needs triage Issue is not yet ready for PR authors to take up labels Feb 29, 2024
@ghost ghost changed the title Crash on deleting two or more apk file Crash on deleting two or more files from recent tab Feb 29, 2024
@ghost
Copy link
Author

ghost commented Feb 29, 2024

Error log

I StorageManagerService: Mounted volume VolumeInfo{emulated;0}:
I StorageManagerService:     type=EMULATED diskId=null partGuid= mountFlags=PRIMARY|VISIBLE 
I StorageManagerService:     mountUserId=0 state=MOUNTED 
I StorageManagerService:     fsType=null fsUuid=null fsLabel=null 
I StorageManagerService:     path=/storage/emulated internalPath=/data/media 
D StorageManagerService: handleMessage -> H_VOLUME_STATE_CHANGED
I StorageSessionController: Notifying volume state changed for session with id: emulated;0
E MediaProvider: Volume external_primary not found, calling identity: UserHandle{0}, attached volumes: {MediaVolume name: [internal] id: [null] user: [null] path: [null]}
V MediaStore: Examining volume emulated;0 with name external_primary and state mounted
E DatabaseUtils: Writing exception to parcel
E DatabaseUtils: java.lang.IllegalArgumentException: Volume external_primary not found
E DatabaseUtils: 	at com.android.providers.media.MediaProvider.callInternal(MediaProvider.java:5722)
E DatabaseUtils: 	at com.android.providers.media.MediaProvider.call(MediaProvider.java:5624)
E DatabaseUtils: 	at android.content.ContentProvider.call(ContentProvider.java:2489)
E DatabaseUtils: 	at android.content.ContentProvider$Transport.call(ContentProvider.java:517)
E DatabaseUtils: 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:295)
E DatabaseUtils: 	at android.os.Binder.execTransactInternal(Binder.java:1195)
E DatabaseUtils: 	at android.os.Binder.execTransact(Binder.java:1159)
E MediaSync: Fail to get Generation
E MediaSync: java.lang.IllegalArgumentException: Volume external_primary not found
E MediaSync: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
E MediaSync: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
E MediaSync: 	at android.content.ContentProviderProxy.call(ContentProviderNative.java:732)
E MediaSync: 	at android.content.ContentResolver.call(ContentResolver.java:2415)
E MediaSync: 	at com.samsung.android.providers.media.MediaContract.getGeneration(MediaContract.java:819)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.loadInternal(MediaSync.java:354)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.load(MediaSync.java:337)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.access$200(MediaSync.java:83)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync$SyncTask.run(MediaSync.java:473)
E MediaSync: 	at android.os.Handler.handleCallback(Handler.java:938)
E MediaSync: 	at android.os.Handler.dispatchMessage(Handler.java:99)
E MediaSync: 	at android.os.Looper.loop(Looper.java:246)
E MediaSync: 	at android.os.HandlerThread.run(HandlerThread.java:67)
D MediaSync: loaded: 12ms, 0
I SecMediaProvider: 10075 UPDATE /local/metadata {generation_added=26310 generation_modified=26547} [count=1]
E MediaProvider: Volume external_primary not found, calling identity: UserHandle{0}, attached volumes: {MediaVolume name: [internal] id: [null] user: [null] path: [null]}
E DatabaseUtils: Writing exception to parcel
E DatabaseUtils: java.lang.IllegalArgumentException: Volume external_primary not found
E DatabaseUtils: 	at com.android.providers.media.MediaProvider.callInternal(MediaProvider.java:5722)
E DatabaseUtils: 	at com.android.providers.media.MediaProvider.call(MediaProvider.java:5624)
E DatabaseUtils: 	at android.content.ContentProvider.call(ContentProvider.java:2489)
E DatabaseUtils: 	at android.content.ContentProvider$Transport.call(ContentProvider.java:517)
E DatabaseUtils: 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:295)
E DatabaseUtils: 	at android.os.Binder.execTransactInternal(Binder.java:1195)
E DatabaseUtils: 	at android.os.Binder.execTransact(Binder.java:1159)
E MediaSync: Fail to get Generation
E MediaSync: java.lang.IllegalArgumentException: Volume external_primary not found
E MediaSync: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
E MediaSync: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
E MediaSync: 	at android.content.ContentProviderProxy.call(ContentProviderNative.java:732)
E MediaSync: 	at android.content.ContentResolver.call(ContentResolver.java:2415)
E MediaSync: 	at com.samsung.android.providers.media.MediaContract.getGeneration(MediaContract.java:819)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.loadInternal(MediaSync.java:354)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.load(MediaSync.java:337)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync.access$200(MediaSync.java:83)
E MediaSync: 	at com.samsung.android.providers.media.sync.MediaSync$SyncTask.run(MediaSync.java:473)
E MediaSync: 	at android.os.Handler.handleCallback(Handler.java:938)
E MediaSync: 	at android.os.Handler.dispatchMessage(Handler.java:99)
E MediaSync: 	at android.os.Looper.loop(Looper.java:246)
E MediaSync: 	at android.os.HandlerThread.run(HandlerThread.java:67)
D MediaSync: loaded: 6ms, 0

@ghost
Copy link
Author

ghost commented Mar 11, 2024

Actually it was my fault. 😅 i debloated my phone using adb shell pm uninstall --user 0 <package> and removed lots of system app i thought has no need.
The fix is to restore the com.android.providers.downloads using

adb shell cmd package install-existing com.android.providers.downloads

Didn't know downloads providers could have link with media and external storage essential service 😅 .
Sorry for the mistake
Also Thanks for the app 🙂

@ghost ghost closed this as completed Mar 11, 2024
@Aga-C Aga-C closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
@Aga-C Aga-C added invalid This does not seem right and removed device/software specific Issues that only happen on some devices or with some specific hardware/software bug Something is not working labels Mar 11, 2024
@naveensingh
Copy link
Member

java.lang.IllegalArgumentException: Volume external_primary not found

i debloated my phone using adb shell pm uninstall --user 0 and removed lots of system app i thought has no need.

This crash has been bothering me for some time now and now I know one of the possible reasons. Thanks, whoever you are, ghosty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This does not seem right
Projects
None yet
Development

No branches or pull requests

2 participants