Crazy-Marvin / FucksGiven

Count How Many Fucks You Give 🖕
https://crazymarvin.com/fucks-given/
Apache License 2.0
103 stars 10 forks source link

Crash on launch #100

Closed yephny closed 1 month ago

yephny commented 2 months ago

:writing_hand: Describe the bug

App crashes upon launch

:bomb: Steps to reproduce

  1. Launch the app

:iphone: Tech info

CrazyMarvin commented 2 months ago

I could reproduce crashes when opening the statistics. Do you mean that or don't you even see the Home screen?

pixelcap2 commented 2 months ago

it crashes on launch for me as well doesn't launch at all

BokitoInc commented 2 months ago

Same also crashes with the f-droid version or the latest 1.0.2 release from github. Tried the gplaystore (aurora) and that one worked. LineageOS 20 microg on apollon

Nindaleth commented 2 months ago

Hi, I also get a crash immediately on launch without seeing any UI. Version 1.0.0 from F-Droid, Android 13 (Motorola so almost stock Android).

Here's a backtrace that I get, ends with

java.lang.NoSuchMethodError: No direct method <init>(Landroid/os/LocaleList;)V in class Landroid/app/LocaleConfig; or its super classes (declaration of 'android.app.LocaleConfig' appears in /system/framework/framework.jar)
at rocks.poopjournal.fucksgiven.MainActivity$onCreate$1.invoke(MainActivity.kt:36)
at rocks.poopjournal.fucksgiven.MainActivity$onCreate$1.invoke(MainActivity.kt:32)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
Full backtrace ``` FATAL EXCEPTION: main Process: rocks.poopjournal.fucksgiven, PID: 30363 java.lang.NoSuchMethodError: No direct method (Landroid/os/LocaleList;)V in class Landroid/app/LocaleConfig; or its super classes (declaration of 'android.app.LocaleConfig' appears in /system/framework/framework.jar) at rocks.poopjournal.fucksgiven.MainActivity$onCreate$1.invoke(MainActivity.kt:36) at rocks.poopjournal.fucksgiven.MainActivity$onCreate$1.invoke(MainActivity.kt:32) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.ui.platform.ComposeView.Content(ComposeView.android.kt:428) at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:252) at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:251) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.ui.platform.CompositionLocalsKt.ProvideCommonCompositionLocals(CompositionLocals.kt:195) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:119) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:118) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:110) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$2.invoke(Wrapper.android.kt:158) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$2.invoke(Wrapper.android.kt:157) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:157) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:142) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.ActualJvm_jvmKt.invokeComposable(ActualJvm.jvm.kt:90) at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3302) at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:3235) at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:725) at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1071) at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:633) at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:619) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:142) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:133) at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1191) at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:133) at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:183) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:322) at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.kt:199) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:140) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:133) at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1266) at android.view.View.dispatchAttachedToWindow(View.java:21391) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3503) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3510) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3510) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3510) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3510) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3008) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2473) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9300) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1231) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1239) at android.view.Choreographer.doCallbacks(Choreographer.java:899) at android.view.Choreographer.doFrame(Choreographer.java:832) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1214) at android.os.Handler.handleCallback(Handler.java:984) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loopOnce(Looper.java:238) at android.os.Looper.loop(Looper.java:357) at android.app.ActivityThread.main(ActivityThread.java:8094) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) ```
Nindaleth commented 2 months ago

For the record, I've downloaded the 1.0.2 APK from the Releases and it crashes at the same time with the same backtrace.

CrazyMarvin commented 2 months ago

For the record, I've downloaded the 1.0.2 APK from the Releases and it crashes at the same time with the same backtrace.

Thanks for the information. That gave me an idea.

CrazyMarvin commented 2 months ago

@mubeen1519, may you please check if I messed up the per-app language setup?

I addedgenerateLocaleConfig = true in the build.gradle.kts and created the file android/app/src/main/res/resources.properties.

Spiderfffun commented 2 months ago

Same here, lineage android 13

CrazyMarvin commented 2 months ago

We will try to find a fix next month.

mubeen1519 commented 1 month ago

FucksGiven-1.0.5-debug.zip please test the apk guys and let me know if it still crash

https://github.com/Crazy-Marvin/FucksGiven/pull/116

yephny commented 1 month ago

@mubeen1519 It works, no crashes.

CrazyMarvin commented 1 month ago

@mubeen1519 It works, no crashes.

Awesome, thanks for your feedback. 👍