EmiyaSyahriel / CrossLauncher

XMB-like Android Launcher
MIT License
85 stars 7 forks source link

[BUG] App crash (Android 13) #32

Closed Xatomix closed 1 year ago

Xatomix commented 1 year ago

Device Info

(the cross launcher app crashed again)

Alpha 1,2,3 work Screenshot_2023-03-27-02-52-46-02_b783bf344239542886fee7b48fa4b892 Screenshot_2023-03-27-03-06-21-97_57f1e41983602f52ac92e035df7871b3

EmiyaSyahriel commented 1 year ago

Can you try this debug APK of CrossLauncher?

This version of CrossLauncher should log any unhandled exception that's causing the app to crash, And may helps pinpoint where the problem is.

The log file should be located at /storage/emulated/0/Android/data/id.psw.vshlauncher/files/logs.txt or in case you use a simplified file explorer (e.g Google Files) it's in (Internal Storage)/Android/data/id.psw.vshlauncher/files/logs.txt. You can attach the log file here in this issue.

If you cannot see any file and folder past the Android/data folder (this folder never empty), you should install another file explorer like Total Commander or X-plore and grant them permissions to see contents of this directory.

Xatomix commented 1 year ago

вс, 2 апр. 2023 г., 01:48 Syahriel Ibnu Irfansyah @.***

:

Can you try this APK https://github.com/EmiyaSyahriel/CrossLauncher/releases/download/a_20230327/launcher_app-debug.apk ?

This version of CrossLauncher should log any unhandled exception that's causing the app to crash, And may helps pinpoint where the problem is.

The log file should be located at /storage/emulated/0/Android/data/id.psw.vshlauncher/files/logs.txt or in case you use a simplified file explorer (e.g Google Files) it's in (Internal Storage)/Android/data/id.psw.vshlauncher/files/logs.txt. You can attach the log file here in this issue.

If you cannot see any file and folder past the Android/data folder (this folder never empty), you should install another file explorer like Total Commander https://play.google.com/store/apps/details?id=com.ghisler.android.TotalCommander or X-plore https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore and grant them permissions to see contents of this directory.

— Reply to this email directly, view it on GitHub https://github.com/EmiyaSyahriel/CrossLauncher/issues/32#issuecomment-1493150728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWF5ZVFC5DJGJPS2JTQWNSDW7CWCVANCNFSM6AAAAAAWIPURDE . You are receiving this because you authored the thread.Message ID: @.***>

Log file content ========= SESSION! : 2023_04_02-03_11_33 ========= [03:11:33 #2/main] Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter java.lang.RuntimeException: Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7237) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8380) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at id.psw.vshlauncher.ExtensionsKt.combine(Unknown Source:2) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor(VSH.Customs.kt:43) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor$default(VSH.Customs.kt:36) at id.psw.vshlauncher.typography.FontCollections.init(FontCollection.kt:38) at id.psw.vshlauncher.VSH.onCreate(VSH.kt:167) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1285) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7230) ... 9 more ========= SESSION! : 2023_04_02-03_12_01 ========= [03:12:02 #2/main] Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter java.lang.RuntimeException: Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7237) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8380) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at id.psw.vshlauncher.ExtensionsKt.combine(Unknown Source:2) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor(VSH.Customs.kt:43) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor$default(VSH.Customs.kt:36) at id.psw.vshlauncher.typography.FontCollections.init(FontCollection.kt:38) at id.psw.vshlauncher.VSH.onCreate(VSH.kt:167) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1285) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7230) ... 9 more ========= SESSION! : 2023_04_02-03_12_36 ========= [03:12:36 #2/main] Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter java.lang.RuntimeException: Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7237) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8380) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at id.psw.vshlauncher.ExtensionsKt.combine(Unknown Source:2) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor(VSH.Customs.kt:43) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor$default(VSH.Customs.kt:36) at id.psw.vshlauncher.typography.FontCollections.init(FontCollection.kt:38) at id.psw.vshlauncher.VSH.onCreate(VSH.kt:167) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1285) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7230) ... 9 more ========= SESSION! : 2023_04_02-03_13_10 ========= [03:13:10 #2/main] Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter java.lang.RuntimeException: Unable to create application id.psw.vshlauncher.VSH: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7237) at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2288) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:240) at android.os.Looper.loop(Looper.java:351) at android.app.ActivityThread.main(ActivityThread.java:8380) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter at id.psw.vshlauncher.ExtensionsKt.combine(Unknown Source:2) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor(VSH.Customs.kt:43) at id.psw.vshlauncher.VSH_CustomsKt.getAllPathsFor$default(VSH.Customs.kt:36) at id.psw.vshlauncher.typography.FontCollections.init(FontCollection.kt:38) at id.psw.vshlauncher.VSH.onCreate(VSH.kt:167) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1285) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7230) ... 9 more
EmiyaSyahriel commented 1 year ago

Based on the log file you posted, this is indeed a rare error that I cannot reproduce in my devices, But, should not that complex to fix.

I've created an additional release build with the fix and additional logging if it still not working so I can see more what happen specifically with your device's runtime.

Now, please install the -debug.apk from 20230402 release page, see if you can run it. And if it still crashing, please attach the log file again as there is an additional info there. Attach the log file if possible, copy-pasting the log content directly makes this issue page a bit messy, still acceptable though.

Xatomix commented 1 year ago

Work!

вс, 2 апр. 2023 г., 18:48 Syahriel Ibnu Irfansyah @.***

:

Based on the log file you posted, this is indeed a rare error that I cannot reproduce in my devices, But, should not that complex to fix.

I've created an additional release build with the fix and additional logging if it still not working so I can see more what happen specifically with your device's runtime.

Now, please install the -debug.apk from 20230402 release page https://github.com/EmiyaSyahriel/CrossLauncher/releases/tag/a_20230402, see if you can run it. And if it still crashing, please attach the log file again as there is an additional info there. Attach the log file if possible, copy-pasting the log content directly makes this issue page a bit messy, still acceptable though.

— Reply to this email directly, view it on GitHub https://github.com/EmiyaSyahriel/CrossLauncher/issues/32#issuecomment-1493376721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWF5ZVDLUNYJAYAOPXK2ONLW7GNVFANCNFSM6AAAAAAWIPURDE . You are receiving this because you authored the thread.Message ID: @.***>

Xatomix commented 1 year ago

Screenshot_2023-04-02-18-50-26-20_57f1e41983602f52ac92e035df7871b3

EmiyaSyahriel commented 1 year ago

Please keep in mind that the fix is temporary, it may crash at some point. I'll close the issue for now, but feel free to reopen in-case it crashes again.

Xatomix commented 1 year ago

Thx! Please do not abandon the project, great job, I advise you not to stop and keep updating the application!

Xatomix commented 1 year ago

is it possible to change the icons in the menu?

EmiyaSyahriel commented 1 year ago

Not directly, but there are 2 ways and currently only for Apps & Games :