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 startup #224

Open
tlc630 opened this issue Sep 18, 2022 · 5 comments
Open

Crash on startup #224

tlc630 opened this issue Sep 18, 2022 · 5 comments

Comments

@tlc630
Copy link

tlc630 commented Sep 18, 2022

I'm running android 4.4.4 (kitkat) on a hacked 1st gen Kindle (otterx). All three available versions crash on startup (Gelli has stopped). Would love to try this out. How can I diagnose the issue. I'm new to debugging on android and would be thankful for any and all pointers

@jakobkukla
Copy link
Contributor

If you are comfortable using adb you can use adb logcat to get a log file and post it here. There are also some logcat reader apps on the Play Store. There should be a stack trace from the crash in there.

@jakobkukla
Copy link
Contributor

jakobkukla commented Sep 20, 2022

I was able to reproduce this running kitkat in the emulator. Not sure yet what the issue is though. This seems to be isolated to kitkat (API 19). Can't reproduce this on API 21 and above.

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.dkanada.gramophone.debug, PID: 2523
    java.lang.RuntimeException: Unable to get provider androidx.core.content.FileProvider: java.lang.ClassNotFoundException: Didn't find class "androidx.core.content.FileProvider" on path: DexPathList[[zip file "/data/app/com.dkanada.gramophone.debug-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.dkanada.gramophone.debug-1, /vendor/lib, /system/lib]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
        at android.app.ActivityThread.access$1500(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5017)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.content.FileProvider" on path: DexPathList[[zip file "/data/app/com.dkanada.gramophone.debug-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.dkanada.gramophone.debug-1, /vendor/lib, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
        at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325) 
        at android.app.ActivityThread.access$1500(ActivityThread.java:135) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:136) 
        at android.app.ActivityThread.main(ActivityThread.java:5017) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
        at dalvik.system.NativeStart.main(Native Method) 

@tlc630
Copy link
Author

tlc630 commented Sep 21, 2022

Thanks for the update. I never got that far in my debugging. Hopefully and developer/maintainer will take a look.

@bgaesslein
Copy link
Contributor

bgaesslein commented Mar 30, 2023

Making the App class extend MultiDexApplication makes it start up in a KitKat emulator but on login it crashes because apparently isIgnoreBatteryOptimizations is not found (NoSuchMethodError). Makes sense since this was only added in API 23.
Not sure if we can make it fully compatible with KitKat or anything below Marshmallow, might be too much work/not feasible.

Maybe try a different ROM for your kindle. I think there's a 6.0 available: https://forum.xda-developers.com/t/rom-resurrection-remix-5-7-otterx-6-0-1-marshmallow.3308676/

@dkanada I'm guessing the minSdkVersion should probably bumped to 23?

@tlc630
Copy link
Author

tlc630 commented Mar 30, 2023

Thanks for looking into this. I have moved on from Jellyfin/gelli on my android boxes.

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

3 participants