-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Bug] Folder selection not possible #114
Comments
Was the storage permission granted to the app before opening folder selection? |
Yes, the APP was working fine before the update. The permission was and is granted.
To make it sure, I unstalled the APP again, reinstalled it and granted the access before trying to select a folder. With the same result.
Am 18. November 2024 18:36:49 MEZ schrieb Hamza Rizwan ***@***.***>:
…Was the storage permission granted to the app before opening folder selection?
--
Reply to this email directly or view it on GitHub:
#114 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
I checked and the folders are showing in my device. I also haven't changed anything in the folders screen since it was added in the app so it shouldn't just randomly break. Could you downgrade to the previous working version and let me know if it's working? You can start by v5.2.0. |
Okay, so I tested some stuff. You are right, the folder screen is not working for me in older versions as well.
I can set up the APP with the legacy UI. Afterwards I can use the APP in older versions.
With the update to v6.0.0 the APP is not working anymore and the following exception is thrown:
java.util.NoSuchElementException: Collection is empty.
at kotlin.collections.CollectionsKt.random(SourceFile:36)
at app.simple.peri.services.AutoWallpaperService.getHomeScreenWallpaper(SourceFile:251)
at app.simple.peri.services.AutoWallpaperService.access$setHomeScreenWallpaper(SourceFile:1)
at app.simple.peri.abstraction.AbstractComposeAutoWallpaperService$setComposeWallpaper$1.invokeSuspend(SourceFile:70)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:113)
at androidx.core.app.ActivityRecreator$1.run(SourceFile:12)
at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96)
But I can use the APP in v6.0.0 when I stay with the legacy UI.
Am 18. November 2024 20:49:50 MEZ schrieb Hamza Rizwan ***@***.***>:
…I checked and the folders are showing in my device. I also haven't changed anything in the folders screen since it was added in the app so it shouldn't just randomly break. Could you downgrade to the previous working version and let me know if it's working? You can start by [v5.2.0](https://github.com/Hamza417/Peristyle/releases/tag/v5.2.0).
--
Reply to this email directly or view it on GitHub:
#114 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
It occurred because there wasn't any file added in the database, it's a side effect of the current issue. Did something change in your device recently or a new mod or anything that could affect the other apps? An AppOps controller can do something like that. |
You may need to clear your app data before switching to the legacy UI.
Yes, I changed the whole database framework in the v5.0.0 and moved away from Scoped Storage. The current implementation should work, but for some reason it's not working on your device. Could you upgrade to the latest version and generated logs of the app and send me the file? I'd recommend the complete system logs during the setup of the Peristyle app to see if something in your device blocking the app's access to the file system. You can use this command to create the logs of the app: |
Can I send them to you on a less public way? |
You can upload here. |
I have created two log files, one for an installation of 4.0.0 and update to 6.0.0 and one with a new installation of 6.0.0. |
Thanks for providing the logs, I checked and haven't found anything suspicious so far, 11-21 22:04:42.943 1449 1528 I ActivityTaskManager: Displayed app.simple.peri/.activities.main.PathChooserActivity: +57ms The activity was opened, and no path is listed, but I did not find any traces of error after that. 11-21 22:04:56.709 28814 28838 W System.err: java.util.NoSuchElementException: Collection is empty.
11-21 22:04:56.709 28814 28838 W System.err: at kotlin.collections.CollectionsKt.random(SourceFile:36)
11-21 22:04:56.709 28814 28838 W System.err: at app.simple.peri.services.AutoWallpaperService.getHomeScreenWallpaper(SourceFile:251)
11-21 22:04:56.709 28814 28838 W System.err: at app.simple.peri.services.AutoWallpaperService.access$setHomeScreenWallpaper(SourceFile:1)
11-21 22:04:56.709 28814 28838 W System.err: at app.simple.peri.abstraction.AbstractComposeAutoWallpaperService$setComposeWallpaper$1.invokeSuspend(SourceFile:70)
11-21 22:04:56.709 28814 28838 W System.err: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
11-21 22:04:56.709 28814 28838 W System.err: at kotlinx.coroutines.DispatchedTask.run(SourceFile:113)
11-21 22:04:56.709 28814 28838 W System.err: at androidx.core.app.ActivityRecreator$1.run(SourceFile:12)
11-21 22:04:56.709 28814 28838 W System.err: at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3)
11-21 22:04:56.709 28814 28838 W System.err: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:96) Later, The app crashes here, possibly because there is no entry in the database?. I think I might know what the problem could be. I'll get back to you once I get time to fix the issue and send you an APK for testing. |
Thank you very much |
Please test this and let me know if your issue is resolved. Edit: Do not forget to uninstall any previous builds before installing this one. |
That looks awsome, thank you very much. |
I'm glad :) |
Confirmation
Bug Description
The Folder selection screen is empty after update to v6.0.0
Steps to Reproduce
During Setup (after update or fresh installation) open the folder selection.
The screen ist quiet empty, beside some buttons (cancel, select, and SD card).
/storage/emulated/0 is preselected an cannot be changed.
Trying to add/select a folder arfterward (via button instead of the setup screen) dies cause the same issue.
Expected Behavior
It is possible to select one or more directories as a source for pictures
Screenshots
Device Information
Android Smartphone Shift6mq with ShiftOS based in Android 10 without Google services
Additional Context
No response
Sufficiency Confirmation
The text was updated successfully, but these errors were encountered: