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

Cant open game files menu #14

Open
mcdankey opened this issue Feb 21, 2021 · 8 comments
Open

Cant open game files menu #14

mcdankey opened this issue Feb 21, 2021 · 8 comments

Comments

@mcdankey
Copy link

When i try to open "game files" menu on my Samsung galaxy A51 game just crashes. Plz help! 😭

@fenixfx
Copy link

fenixfx commented Jul 9, 2021

Same problem here
Device: Pixel 4
OS: Android 11
App version: 1/21
Stacktrace:
07-09 14:15:17.018 32397 32397 E AndroidRuntime: FATAL EXCEPTION: main
07-09 14:15:17.018 32397 32397 E AndroidRuntime: Process: is.terrabyte.omw.debug, PID: 32397
07-09 14:15:17.018 32397 32397 E AndroidRuntime: java.lang.NullPointerException: Attempt to get length of null array
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.codekidlabs.storagechooser.fragments.ChooserDialogFragment.populateList(ChooserDialogFragment.java:262)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.codekidlabs.storagechooser.fragments.ChooserDialogFragment.initListView(ChooserDialogFragment.java:115)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.codekidlabs.storagechooser.fragments.ChooserDialogFragment.getLayout(ChooserDialogFragment.java:85)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.codekidlabs.storagechooser.fragments.ChooserDialogFragment.onCreateDialog(ChooserDialogFragment.java:300)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.DialogFragment.onGetLayoutInflater(DialogFragment.java:417)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.Fragment.performGetLayoutInflater(Fragment.java:1322)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1303)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2431)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2210)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7664)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
07-09 14:15:17.018 32397 32397 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

@CLosetGoblin
Copy link

I have the same problem as well I suspect it has something to do with android 11 because that's the main similarity I can see. Im going to "attempt" to make my own apk file for this and if I do end up succeeding and it allows me to select my game files Ill share my results here!

@Doc522
Copy link

Doc522 commented Sep 12, 2021

Hey, I have the same issue. I however don't know how to code or anything so I guess I'll just sit and wait and hope...

@phoenixbyrd
Copy link

Same issue here on a fold 3 with android 12, was really looking forward to this!!!

@1YarKan1
Copy link

Не решилась проблема? Я просто недавно приобрёл xiaomi redmi note 11 и вот не получается указать путь к файлам игры (

@HappyDoggo-san
Copy link

So isn't there a way to manually set the game files location? It's driving me nuts

@InconsolableCellist
Copy link

It looks like the released APK is out of date, but even compiling a new version it doesn't appear to have access to /storage/emulated/0/Android/data/com.libopenmw.openmw, so it can't create the dir or find any config files

I increased the supported SDK version but the Config helper class still doesn't have access to that directory. I started refactoring it to use scoped storage, but there are a lot of calls into Config and making it non-static was a pain.

There are upstream changes that fix this on modern phones, as OpenMW-Nightly works on my Z Fold 4 with Android 13

@HappyDoggo-san
Copy link

It looks like the released APK is out of date, but even compiling a new version it doesn't appear to have access to /storage/emulated/0/Android/data/com.libopenmw.openmw, so it can't create the dir or find any config files

I increased the supported SDK version but the Config helper class still doesn't have access to that directory. I started refactoring it to use scoped storage, but there are a lot of calls into Config and making it non-static was a pain.

There are upstream changes that fix this on modern phones, as OpenMW-Nightly works on my Z Fold 4 with Android 13

Exactly, the openmw one works fine.
Isn't there a way to apply the same fix?

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

8 participants