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 start: android cache dir not found #1342

Open
fds2610 opened this issue Feb 3, 2024 · 11 comments · May be fixed by #1428
Open

Crash on start: android cache dir not found #1342

fds2610 opened this issue Feb 3, 2024 · 11 comments · May be fixed by #1428
Assignees
Labels
breaking bug more information More information needed

Comments

@fds2610
Copy link

fds2610 commented Feb 3, 2024

XCSoar versions having and not having the problem

V. 7.41
F-Droid
LineageOS20
No Gapps installed

System information

LineageOS model gaugin (Mi10Tlite)

Steps to reproduce the behavior

Installiert APP
Start APP
Error message

Expected behavior

APP should display Start screen

Actual behavior

APP displays error message
Java.lang.Exceptuon: No Android cache directory

@lordfolken
Copy link
Contributor

Is your storage full?

@fds2610
Copy link
Author

fds2610 commented Feb 3, 2024

thanks for your reply. Nope. 52% used of 64 GB
I installed the app from F-Droid and afterwards from GooglePlay. Both have the same error.

@lordfolken
Copy link
Contributor

Can you provide a logcat?
Also the xcsoar.log would be interesting.

@lordfolken lordfolken added the more information More information needed label Feb 3, 2024
@lordfolken
Copy link
Contributor

No activity. Closing.

@Nati-AS
Copy link

Nati-AS commented May 11, 2024

Same problem here, in Android 13 TPhone with Google Apps.
No XCSoar folder, No log file found

First Screen when opening the app only shows this Message. I tried apk files from Webpage as well as fdroid.

@lordfolken
Copy link
Contributor

lordfolken commented May 11, 2024

Again. I need to see a logcat. None of my devices seem to have this problem.

@Nati-AS
Copy link

Nati-AS commented May 14, 2024

Thanks for reopening the issue.

As I didn't know (and couldn't find) how to filter adb output properly here is a filtered logcat made by logcat reader app. I hope everything important is inside.
Especially I get the error:
Failed to set project id on /data/media/0/Android/data/org.xcsoar/: Operation not supported on transport endpoint

If this does not help I can provide another file or more info
logcat_05-14-2024_21-05-22.txt

@lordfolken
Copy link
Contributor

Failed to set project id on /data/media/0/Android/data/org.xcsoar/: Operation not supported on transport endpoint

I supect this means that android cannot set the selinux context on the directory for xcsoar, because the filesystem doesn't seem to support it.

Xcsoar then cannot create any files or directories, because the permissions are incomplete.

Are you by chance using an sdcard?

@Nati-AS
Copy link

Nati-AS commented May 14, 2024

Xcsoar then cannot create any files or directories, because the permissions are incomplete

got the same thought, but I have no idea why. I didn't experience any similar problems with other apps.

Are you by chance using an sdcard?

No, no sd card in the phone

@lordfolken lordfolken linked a pull request May 15, 2024 that will close this issue
@lordfolken
Copy link
Contributor

lordfolken commented May 15, 2024

Can you try the attached pull request, please? This moves all storage to the primary path. @Nati-AS

@lordfolken
Copy link
Contributor

@Nati-AS can you try out the pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking bug more information More information needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants