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

App Crashes "No Photos or Media found on Device" #132

Open
ITCMD opened this issue Jun 29, 2023 · 21 comments
Open

App Crashes "No Photos or Media found on Device" #132

ITCMD opened this issue Jun 29, 2023 · 21 comments

Comments

@ITCMD
Copy link

ITCMD commented Jun 29, 2023

Describe the bug
Sometimes it happens when I open the app, immediately, sometimes it happens when I click gallery, sometimes when I hit the camera folder. If it gets into the camera folder all the thumbnails are black.

The app instantly closes out and a little popup says "No photos or media found on device"

When this happens, sometimes after trying like 50 times itll start working again. Often it gets further but still crashes. I feel like deleting photos from within another app triggers it. Soemtimes nkthing triggers it. Often I have to restart the phone to get it working.

I can still access the menu and trigger a sync.

To Reproduce
Steps to reproduce the behavior:

  1. Open the app
  2. See error

Expected behavior
I mean, it doesnt crash.

Screenshots

Screenshot_20230628_230301_Device care
Screenshot_20230628_232247_Nova7

Smartphone (please complete the following information):

  • Device: Galaxy S23 Ultra
  • OS: Android 13
  • Version: v2.9.0
@ITCMD
Copy link
Author

ITCMD commented Jun 29, 2023

Additional notes: clearing cache does not fix. Logging out and in does not fix.

@scubajeff
Copy link
Owner

I think those crash reports on Google Play Console recently came from you. I have read the crash logs, have no idea yet what went wrong, since crashes happen in Android Framework and the cause is "No Such Method", kind of weird.

@ITCMD
Copy link
Author

ITCMD commented Jun 29, 2023

That's very strange. Let me know if you'd like me to try anything. I'm fairly familiar with the Android system and installing APKs and stuff

@scubajeff
Copy link
Owner

Are you using a stock Samsung ROM, or you twists it a bit? All the crash report I got are related to the new Gallery function, did you launch Les Pas from it's Gallery launcher shortcut? Do you encounter crash when you are using features other than the Gallery, like creating albums etc.?

@scubajeff
Copy link
Owner

A new load of crash logs coming in from Google Play console, seems all related to missing the common storage volume 'external_primary'.

@ITCMD
Copy link
Author

ITCMD commented Jun 30, 2023

Interesting. On my S23 Ultra theres no support for external storage.

This is now always happening. Sometimes it will loa into the app for a moment, but no pictures load, it's all black icons. I tried to take a screenshot in the app but it said "Cannot take screenshot of content"

@ITCMD
Copy link
Author

ITCMD commented Jun 30, 2023

The Samsung rom is stock, as I received it. Im not sure about shortcuts. I open Les Pas, click Gallery, click Camera, or any other foler, and in any subfoler from Gallery when I open the folder all the icons go black (including the gallery subfolders which showed previews of the photos in the folder before clicking there, and it crashes after a moment.

@scubajeff
Copy link
Owner

Please try revoking the Image and Video access permission and grant it again. See if this would help.

@ITCMD
Copy link
Author

ITCMD commented Jul 1, 2023

I did that. Opened the app, it prompted for access and promptly crashed again after I accepted.

@scubajeff
Copy link
Owner

So far, all logs show that crashes happened deep down Android's framework code base, and all related to MediaStore access being denied. Various test machine here in my lab running Android 13 don't have this behavior, I don't have Samsung phone though. Suspect that there are some very specific system settings which trigger these crashes. Settings like work profile restriction, Samsung KNOX settings etc.

@scubajeff
Copy link
Owner

Another crash log just pop up on my Google Play console. Seems like this bug is affecting release 2.9.1 on the same device too.

@ITCMD
Copy link
Author

ITCMD commented Jul 17, 2023

I dont use samsung knox or profile restriction, however I do have a secure folder set up for things like photos of my IDs and work documents.

https://www.samsung.com/uk/support/mobile-devices/what-is-the-secure-folder-and-how-do-i-use-it/

@ITCMD
Copy link
Author

ITCMD commented Jul 17, 2023

ah so that is samsung knox

@scubajeff
Copy link
Owner

This is something new for me. Need to do some research on Knox API if it exists.

@ITCMD
Copy link
Author

ITCMD commented Jul 20, 2023

Keep me posted. If you want me to test anything please let me know!

Perhaps in the meantime it'd be worth posting an app that is just the sync part. Not sure how easy that would be to do. Your sync works so much better than the official nextcloud one and it still works as long as I dont open the gallery

@scubajeff
Copy link
Owner

it still works as long as I dont open the gallery

Do you mean the background sync can read your secret folder while the Gallery module can't? If that's the case, it will be very interesting.

@ITCMD
Copy link
Author

ITCMD commented Jul 20, 2023

No, it cannot read the secret folder, and there's no indication it's there when browsing it. It's not a browsable folder as far as I know, and even if it was it's all encrypted.
I believe it's a virtual machine basically, because you can add apps to it and it runs in a separate instance and the two have no access to each other unless you move a file between them.

@ITCMD
Copy link
Author

ITCMD commented Jul 26, 2023

Curious if there are any updates on this issue. I'm sure you're busy, I'd just love to use this app!

It did seem to work well for the first day or so after installation, too.

@scubajeff
Copy link
Owner

I'm having a vacation with my kids right now. There are won't be any updates until early next month.

@scubajeff
Copy link
Owner

I flicked through Samsung's API document on Knox secure folder, as far as I can tell, it's NOT feasible. Sorry.

@ITCMD
Copy link
Author

ITCMD commented Jul 30, 2023

Interesting. It's crazy that Knox breaks the app so much being in a totally separate OS image. Hopefull Samsung fixes that or better documents it at some point.

Sorry to have bothered you on your vacation. Enjoy your time with your kids!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants