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

ComposeMultiplatform: App Crashes on iOS with Koin Version 4.0.1 Due to Uninitialized Koin Context in rememberKoinApplication #2095

Open
ksharma-xyz opened this issue Dec 28, 2024 · 1 comment

Comments

@ksharma-xyz
Copy link

ksharma-xyz commented Dec 28, 2024

Describe the bug

App crashes when using koin version 4.0.1
The crash is not present while using 4.0.1-Beta1
error: Uncaught Kotlin exception: kotlin.IllegalStateException: Koin context has not been initialized in rememberKoinApplication

To Reproduce
Steps to reproduce the behavior:

  • When using the koin version 4.0.1,
  • Install the application on a real iOS device.
  • Launch the application and kill it from the recents
  • The app will crash with logs provided below.

Expected behavior
The app should not crash, and should exit normally.
The same crash does not happen for previous beta version 4.0.1-Beta1

Koin module and version:
koin = "4.0.1"
koin-android = {module = "io.insert-koin:koin-android", version.ref = "koin"}
koin-compose-viewmodel = {module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin"}
koin-compose-viewmodel-nav = {module = "io.insert-koin:koin-compose-viewmodel-navigation", version.ref = "koin"}

Snippet or Sample project to help reproduce

Repo - https://github.com/InsertKoinIO/koin-getting-started/tree/main/ComposeMultiplatform
Branch - bump-koin-4.0.1 (has a crash as shown below in logs)

When using version 4.0.1-Beta1, there is no crash when killing the app on a real iPhone.

Logs

Uncaught Kotlin exception: kotlin.IllegalStateException: Koin context has not been initialized in rememberKoinApplication
    at 0   KotlinProject.debug.dylib           0x1088697ab        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 119 
    at 1   KotlinProject.debug.dylib           0x108862be7        kfun:kotlin.Exception#<init>(kotlin.String?){} + 115 
    at 2   KotlinProject.debug.dylib           0x108862e07        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 115 
    at 3   KotlinProject.debug.dylib           0x1088633a7        kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 115 
    at 4   KotlinProject.debug.dylib           0x1091cac5b        kfun:org.koin.compose#KoinApplication(kotlin.Function1<org.koin.core.KoinApplication,kotlin.Unit>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 2003 
    at 5   KotlinProject.debug.dylib           0x107fd8ad7        kfun:org.koin.sample#App(androidx.compose.runtime.Composer?;kotlin.Int){} + 551 
    at 6   KotlinProject.debug.dylib           0x107fe0e83        kfun:org.koin.sample.ComposableSingletons$MainViewControllerKt.<init>$lambda$0#internal + 419 
    at 7   KotlinProject.debug.dylib           0x107fe0f57        kfun:org.koin.sample.ComposableSingletons$MainViewControllerKt.$<init>$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 95 
    at 8   KotlinProject.debug.dylib           0x107fe100b        kfun:org.koin.sample.ComposableSingletons$MainViewControllerKt.$<init>$lambda$0$FUNCTION_REFERENCE$0.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 9   KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 10  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 11  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 12  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 13  KotlinProject.debug.dylib           0x108b2058f        kfun:androidx.compose.runtime#CompositionLocalProvider(kotlin.Array<out|androidx.compose.runtime.ProvidedValue<*>>...;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 615 
    at 14  KotlinProject.debug.dylib           0x108f9b8f7        kfun:androidx.compose.ui.scene.ComposeHostingViewController.ProvideContainerCompositionLocals#internal + 1923 
    at 15  KotlinProject.debug.dylib           0x108f9c92b        kfun:androidx.compose.ui.scene.ComposeHostingViewController.createMediator$lambda$4#internal + 503 
    at 16  KotlinProject.debug.dylib           0x108f9e687        kfun:androidx.compose.ui.scene.ComposeHostingViewController.$createMediator$lambda$4$FUNCTION_REFERENCE$7.invoke#internal + 115 
    at 17  KotlinProject.debug.dylib           0x108f9e7af        kfun:androidx.compose.ui.scene.ComposeHostingViewController.$createMediator$lambda$4$FUNCTION_REFERENCE$7.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 18  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 19  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 20  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 21  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 22  KotlinProject.debug.dylib           0x108f15667        kfun:androidx.compose.ui.layout#OverlayLayout(androidx.compose.ui.Modifier;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 2995 
    at 23  KotlinProject.debug.dylib           0x108f5c5fb        kfun:androidx.compose.ui.viewinterop#TrackInteropPlacementContainer__at__androidx.compose.ui.viewinterop.InteropContainer(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 1899 
    at 24  KotlinProject.debug.dylib           0x108faf55f        kfun:androidx.compose.ui.scene.ComposeSceneMediator.setContent$lambda$16$lambda$15$lambda$14$lambda$13#internal + 531 
    at 25  KotlinProject.debug.dylib           0x108fb507b        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$lambda$14$lambda$13$FUNCTION_REFERENCE$52.invoke#internal + 119 
    at 26  KotlinProject.debug.dylib           0x108fb51cf        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$lambda$14$lambda$13$FUNCTION_REFERENCE$52.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 27  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 28  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 29  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 30  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 31  KotlinProject.debug.dylib           0x108f1072b        kfun:androidx.compose.ui.layout#OffsetToFocusedRect(androidx.compose.ui.platform.PlatformInsets;kotlin.Function0<androidx.compose.ui.geometry.Rect?>;androidx.compose.ui.unit.IntSize?;kotlin.time.Duration;kotlin.Function0<kotlin.Unit>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 7855 
    at 32  KotlinProject.debug.dylib           0x108fa921f        kfun:androidx.compose.ui.scene.ComposeSceneMediator.FocusAboveKeyboardIfNeeded#internal + 3495 
    at 33  KotlinProject.debug.dylib           0x108faf85f        kfun:androidx.compose.ui.scene.ComposeSceneMediator.setContent$lambda$16$lambda$15$lambda$14#internal + 647 
    at 34  KotlinProject.debug.dylib           0x108fb5283        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$lambda$14$FUNCTION_REFERENCE$53.invoke#internal + 119 
    at 35  KotlinProject.debug.dylib           0x108fb53d7        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$lambda$14$FUNCTION_REFERENCE$53.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 36  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 37  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 38  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 39  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 40  KotlinProject.debug.dylib           0x108b2058f        kfun:androidx.compose.runtime#CompositionLocalProvider(kotlin.Array<out|androidx.compose.runtime.ProvidedValue<*>>...;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 615 
    at 41  KotlinProject.debug.dylib           0x108fa831f        kfun:androidx.compose.ui.scene.ComposeSceneMediator.ProvideComposeSceneMediatorCompositionLocals#internal + 1627 
    at 42  KotlinProject.debug.dylib           0x108fafb5f        kfun:androidx.compose.ui.scene.ComposeSceneMediator.setContent$lambda$16$lambda$15#internal + 647 
    at 43  KotlinProject.debug.dylib           0x108fb548b        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$FUNCTION_REFERENCE$54.invoke#internal + 119 
    at 44  KotlinProject.debug.dylib           0x108fb55df        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$lambda$15$FUNCTION_REFERENCE$54.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 45  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 46  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 47  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 48  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 49  KotlinProject.debug.dylib           0x108b2092b        kfun:androidx.compose.runtime#CompositionLocalProvider(androidx.compose.runtime.ProvidedValue<*>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 615 
    at 50  KotlinProject.debug.dylib           0x108f4169f        kfun:androidx.compose.ui.scene.BaseComposeScene.setContent$lambda$0#internal + 543 
    at 51  KotlinProject.debug.dylib           0x108f42577        kfun:androidx.compose.ui.scene.BaseComposeScene.$setContent$lambda$0$FUNCTION_REFERENCE$10.invoke#internal + 119 
    at 52  KotlinProject.debug.dylib           0x108f426cb        kfun:androidx.compose.ui.scene.BaseComposeScene.$setContent$lambda$0$FUNCTION_REFERENCE$10.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 53  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 54  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 55  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 56  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 57  KotlinProject.debug.dylib           0x108f01cb7        kfun:androidx.compose.ui.platform#ProvidePlatformCompositionLocals(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 783 
    at 58  KotlinProject.debug.dylib           0x108f3aedf        kfun:androidx.compose.ui.platform.setContent$lambda$3$lambda$2$lambda$1#internal + 463 
    at 59  KotlinProject.debug.dylib           0x108f3bdc3        kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$lambda$1$FUNCTION_REFERENCE$3.invoke#internal + 115 
    at 60  KotlinProject.debug.dylib           0x108f3beeb        kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$lambda$1$FUNCTION_REFERENCE$3.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 61  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 62  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 63  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 64  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 65  KotlinProject.debug.dylib           0x108b2058f        kfun:androidx.compose.runtime#CompositionLocalProvider(kotlin.Array<out|androidx.compose.runtime.ProvidedValue<*>>...;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 615 
    at 66  KotlinProject.debug.dylib           0x108ed736f        kfun:androidx.compose.ui.platform#ProvideCommonCompositionLocals(androidx.compose.ui.node.Owner;androidx.compose.ui.platform.UriHandler;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 3947 
    at 67  KotlinProject.debug.dylib           0x108f3b45f        kfun:androidx.compose.ui.platform.setContent$lambda$3$lambda$2#internal + 1287 
    at 68  KotlinProject.debug.dylib           0x108f3bf9f        kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$FUNCTION_REFERENCE$4.invoke#internal + 119 
    at 69  KotlinProject.debug.dylib           0x108f3c0f3        kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$FUNCTION_REFERENCE$4.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 70  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 71  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 72  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 73  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 74  KotlinProject.debug.dylib           0x108f3ab9f        kfun:androidx.compose.ui.platform.provide#internal + 1351 
    at 75  KotlinProject.debug.dylib           0x108f3b79f        kfun:androidx.compose.ui.platform.setContent$lambda$3#internal + 695 
    at 76  KotlinProject.debug.dylib           0x108f3b96b        kfun:androidx.compose.ui.platform.$setContent$lambda$3$FUNCTION_REFERENCE$0.invoke#internal + 123 
    at 77  KotlinProject.debug.dylib           0x108f3baeb        kfun:androidx.compose.ui.platform.$setContent$lambda$3$FUNCTION_REFERENCE$0.$<bridge-DNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 78  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 79  KotlinProject.debug.dylib           0x108c29dc7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 603 
    at 80  KotlinProject.debug.dylib           0x108c3883b        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 81  KotlinProject.debug.dylib           0x10899d977        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 82  KotlinProject.debug.dylib           0x108c3ce23        kfun:androidx.compose.runtime#invokeComposable(androidx.compose.runtime.Composer;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 219 
    at 83  KotlinProject.debug.dylib           0x108afff73        kfun:androidx.compose.runtime.ComposerImpl.doCompose#internal + 2431 
    at 84  KotlinProject.debug.dylib           0x108aff19f        kfun:androidx.compose.runtime.ComposerImpl#composeContent(androidx.compose.runtime.collection.ScopeMap<androidx.compose.runtime.RecomposeScopeImpl,kotlin.Any>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 279 
    at 85  KotlinProject.debug.dylib           0x108b0e067        kfun:androidx.compose.runtime.CompositionImpl#composeContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 899 
    at 86  KotlinProject.debug.dylib           0x108c444cf        kfun:androidx.compose.runtime.ControlledComposition#composeContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 99 
    at 87  KotlinProject.debug.dylib           0x108b38607        kfun:androidx.compose.runtime.Recomposer#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 795 
    at 88  KotlinProject.debug.dylib           0x108c43b37        kfun:androidx.compose.runtime.CompositionContext#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 71 
    at 89  KotlinProject.debug.dylib           0x108b0d41b        kfun:androidx.compose.runtime.CompositionImpl.composeInitial#internal + 323 
    at 90  KotlinProject.debug.dylib           0x108b0d1bb        kfun:androidx.compose.runtime.CompositionImpl#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 95 
    at 91  KotlinProject.debug.dylib           0x108c441e3        kfun:androidx.compose.runtime.Composition#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 99 
    at 92  KotlinProject.debug.dylib           0x108f3a607        kfun:androidx.compose.ui.platform#setContent__at__androidx.compose.ui.node.RootNodeOwner(androidx.compose.runtime.CompositionContext;kotlin.Function0<androidx.compose.runtime.CompositionLocalContext?>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}androidx.compose.runtime.Composition + 511 
    at 93  KotlinProject.debug.dylib           0x108f5a7cf        kfun:androidx.compose.ui.scene.PlatformLayersComposeSceneImpl.createComposition#internal + 287 
    at 94  KotlinProject.debug.dylib           0x1090287a3        kfun:androidx.compose.ui.scene.BaseComposeScene#createComposition(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}androidx.compose.runtime.Composition-trampoline + 71 
    at 95  KotlinProject.debug.dylib           0x108f3ddfb        kfun:androidx.compose.ui.scene.BaseComposeScene#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 1611 
    at 96  KotlinProject.debug.dylib           0x109023aa3        kfun:androidx.compose.ui.scene.ComposeScene#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 99 
    at 97  KotlinProject.debug.dylib           0x108fafd87        kfun:androidx.compose.ui.scene.ComposeSceneMediator.setContent$lambda$16#internal + 431 
    at 98  KotlinProject.debug.dylib           0x108fb2dd3        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$FUNCTION_REFERENCE$25.invoke#internal + 75 
    at 99  KotlinProject.debug.dylib           0x108fb2ecf        kfun:androidx.compose.ui.scene.ComposeSceneMediator.$setContent$lambda$16$FUNCTION_REFERENCE$25.$<bridge-DNN>invoke(){}#internal + 71 
    at 100 KotlinProject.debug.dylib           0x10899a55f        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99 
    at 101 KotlinProject.debug.dylib           0x108fb914f        kfun:androidx.compose.ui.scene.ComposeSceneMediatorView.runOnceOnAppeared$lambda$0#internal + 147 
    at 102 KotlinProject.debug.dylib           0x108fb921b        kfun:androidx.compose.ui.scene.ComposeSceneMediatorView.$runOnceOnAppeared$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 75 
    at 103 KotlinProject.debug.dylib           0x108fb9317        kfun:androidx.compose.ui.scene.ComposeSceneMediatorView.$runOnceOnAppeared$lambda$0$FUNCTION_REFERENCE$0.$<bridge-DNN>invoke(){}#internal + 71 
    at 104 KotlinProject.debug.dylib           0x10899a55f        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99 
    at 105 KotlinProject.debug.dylib           0x108fb87ef        kfun:androidx.compose.ui.scene.ComposeSceneMediatorView.runOnAppearedIfEligible#internal + 1183 
    at 106 KotlinProject.debug.dylib           0x108fb8a3f        kfun:androidx.compose.ui.scene.ComposeSceneMediatorView#objc:layoutSubviews + 243 
    at 107 KotlinProject.debug.dylib           0x108fb958f        _6f72672e6a6574627261696e732e636f6d706f73652e75693a75692f6f70742f6275696c644167656e742f776f726b2f386132303736303934356430616562612f636f6d706f73652f75692f75692f7372632f75696b69744d61696e2f6b6f746c696e2f616e64726f6964782f636f6d706f73652f75692f7363656e652f436f6d706f73655363656e654d65646961746f72566965772e75696b69742e6b74_knbridge22 + 155 
    at 108 UIKitCore                           0x1c0fe201f        <redacted> + 1979 
    at 109 QuartzCore                          0x1c04b79eb        <redacted> + 499 
    at 110 QuartzCore                          0x1c04cb09f        <redacted> + 147 
    at 111 QuartzCore                          0x1c04dc5af        <redacted> + 455 
    at 112 QuartzCore                          0x1c05115eb        <redacted> + 651 
    at 113 UIKitCore                           0x1c1470f83        <redacted> + 35 
    at 114 CoreFoundation                      0x1bee63563        <redacted> + 27 
    at 115 CoreFoundation                      0x1beecbd9b        <redacted> + 367 
    at 116 CoreFoundation                      0x1bee9bbbb        <redacted> + 855 
    at 117 CoreFoundation                      0x1beea0ed3        CFRunLoopRunSpecific + 611 
    at 118 GraphicsServices                    0x1f81a2367        GSEventRunModal + 163 
    at 119 UIKitCore                           0x1c137f3cf        <redacted> + 887 
    at 120 UIKitCore                           0x1c137f033        UIApplicationMain + 339 
    at 121 SwiftUI                             0x1c298c013        <redacted> + 2419 
    at 122 SwiftUI                             0x1c28ed16b        <redacted> + 387 
    at 123 SwiftUI                             0x1c28d64bb        <redacted> + 2867 
    at 124 KotlinProject.debug.dylib           0x107fd457b        $s13KotlinProject6iOSAppV5$mainyyFZ + 39 
    at 125 KotlinProject.debug.dylib           0x107fd462b        __debug_main_executable_dylib_entry_point + 11     
ksharma-xyz added a commit to ksharma-xyz/Krail that referenced this issue Dec 28, 2024
- Downgrading koin version as it fixes app crash on iOS
- Raised a issue on Koin Github Repo
InsertKoinIO/koin#2095
@ksharma-xyz
Copy link
Author

UPDATE:
Crash observed on iPhone 11 iOS 16.1. However, no crash on iOS 18.1.

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

1 participant