Uncaught Kotlin exception: kotlin.IllegalStateException: CompositionLocal ViewModelStoreOwner not present
at 0 iosApp 0x106f21b0b kfun:kotlin.Throwable#<init>(kotlin.String?){} + 107
at 1 iosApp 0x106f1b267 kfun:kotlin.Exception#<init>(kotlin.String?){} + 103
at 2 iosApp 0x106f1b547 kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 103
at 3 iosApp 0x106f1b947 kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 103
at 4 iosApp 0x10775ea43 kfun:moe.tlaster.precompose.ui.noLocalProvidedFor#internal + 643
at 5 iosApp 0x10775eaf2 kfun:moe.tlaster.precompose.ui.LocalViewModelStoreOwner$lambda$1#internal + 66
at 6 iosApp 0x10775ebaf kfun:moe.tlaster.precompose.ui.$LocalViewModelStoreOwner$lambda$1$FUNCTION_REFERENCE$48.invoke#internal + 63
at 7 iosApp 0x106f37b86 kfun:kotlin.native.concurrent.SynchronizedLazyImpl#<get-value>(){}1:0 + 1174
at 8 iosApp 0x1071932be kfun:androidx.compose.runtime.LazyValueHolder.<get-current>#internal + 222
at 9 iosApp 0x1071933b1 kfun:androidx.compose.runtime.LazyValueHolder#<get-value>(){}1:0 + 81
at 10 iosApp 0x1070f735b kfun:androidx.compose.runtime.ComposerImpl.resolveCompositionLocal#internal + 315
at 11 iosApp 0x1070f6d27 kfun:androidx.compose.runtime.ComposerImpl#consume(androidx.compose.runtime.CompositionLocal<0:0>){0§<kotlin.Any?>}0:0 + 247
at 12 iosApp 0x10775f3e0 kfun:moe.tlaster.precompose.ui#viewModel(kotlin.reflect.KClass<0:0>;kotlin.collections.List<kotlin.Any?>?;kotlin.Function0<0:0>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§<moe.tlaster.precompose.viewmodel.ViewModel>}0:0 + 2048
at 13 iosApp 0x107747744 kfun:moe.tlaster.precompose.navigation#rememberNavigator(androidx.compose.runtime.Composer?;kotlin.Int){}moe.tlaster.precompose.navigation.Navigator + 644
at 14 iosApp 0x107764de0 kfun:com.example.kmmstructure#MyApplication(androidx.compose.runtime.Composer?;kotlin.Int){} + 1888
at 15 iosApp 0x107762d3c kfun:com.example.kmmstructure#Content(androidx.compose.runtime.Composer?;kotlin.Int){} + 1196
at 16 iosApp 0x107769a5b kfun:com.example.kmmstructure.ComposableSingletons$RootViewControllerKt.<init>$lambda$0#internal + 651
at 17 iosApp 0x107769bb1 kfun:com.example.kmmstructure.ComposableSingletons$RootViewControllerKt.$<init>$lambda$0$FUNCTION_REFERENCE$11.invoke#internal + 97
at 18 iosApp 0x107769c6d kfun:com.example.kmmstructure.ComposableSingletons$RootViewControllerKt.$<init>$lambda$0$FUNCTION_REFERENCE$11.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 173
at 19 iosApp 0x107221842 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 1106
at 20 iosApp 0x107237991 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 177
at 21 iosApp 0x1071376de 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){} + 958
at 22 iosApp 0x10754f311 kfun:androidx.compose.ui.ComposeScene.setContent$lambda$8#internal + 1153
at 23 iosApp 0x1075510ae kfun:androidx.compose.ui.ComposeScene.$setContent$lambda$8$FUNCTION_REFERENCE$781.invoke#internal + 126
at 24 iosApp 0x10755120d kfun:androidx.compose.ui.ComposeScene.$setContent$lambda$8$FUNCTION_REFERENCE$781.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 173
at 25 iosApp 0x107221842 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 1106
at 26 iosApp 0x107237991 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 177
at 27 iosApp 0x1071376de 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){} + 958
at 28 iosApp 0x107517bd6 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){} + 8230
at 29 iosApp 0x107574b0e kfun:androidx.compose.ui.platform.setContent$lambda$3$lambda$2#internal + 2174
at 30 iosApp 0x107575986 kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$FUNCTION_REFERENCE$804.invoke#internal + 134
at 31 iosApp 0x107575b1d kfun:androidx.compose.ui.platform.$setContent$lambda$3$lambda$2$FUNCTION_REFERENCE$804.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 173
at 32 iosApp 0x107221842 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 1106
at 33 iosApp 0x107237991 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 177
at 34 iosApp 0x1075733d9 kfun:androidx.compose.ui.platform.provide#internal + 2713
at 35 iosApp 0x10757520e kfun:androidx.compose.ui.platform.setContent$lambda$3#internal + 1166
at 36 iosApp 0x10757548d kfun:androidx.compose.ui.platform.$setContent$lambda$3$FUNCTION_REFERENCE$801.invoke#internal + 141
at 37 iosApp 0x10757567d kfun:androidx.compose.ui.platform.$setContent$lambda$3$FUNCTION_REFERENCE$801.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 173
at 38 iosApp 0x107221842 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 1106
at 39 iosApp 0x107237991 kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 177
at 40 iosApp 0x10721ff08 kfun:androidx.compose.runtime#invokeComposable(androidx.compose.runtime.Composer;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 360
at 41 iosApp 0x107111071 kfun:androidx.compose.runtime.ComposerImpl.doCompose$lambda$25#internal + 417
at 42 iosApp 0x10711694b kfun:androidx.compose.runtime.ComposerImpl.$doCompose$lambda$25$FUNCTION_REFERENCE$1015.invoke#internal + 91
at 43 iosApp 0x107116a8d kfun:androidx.compose.runtime.ComposerImpl.$doCompose$lambda$25$FUNCTION_REFERENCE$1015.$<bridge-UNN>invoke(){}#internal + 77
at 44 iosApp 0x10713a3cc kfun:androidx.compose.runtime#observeDerivedStateRecalculations(kotlin.Function1<androidx.compose.runtime.State<*>,kotlin.Unit>;kotlin.Function1<androidx.compose.runtime.State<*>,kotlin.Unit>;kotlin.Function0<0:0>){0§<kotlin.Any?>} + 1196
at 45 iosApp 0x107103c67 kfun:androidx.compose.runtime.ComposerImpl.doCompose#internal + 2791
at 46 iosApp 0x1071028d3 kfun:androidx.compose.runtime.ComposerImpl#composeContent(androidx.compose.runtime.collection.IdentityArrayMap<androidx.compose.runtime.RecomposeScopeImpl,androidx.compose.runtime.collection.IdentityArraySet<kotlin.Any>?>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 515
at 47 iosApp 0x107125c3c kfun:androidx.compose.runtime.CompositionImpl#composeContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 700
at 48 iosApp 0x107154cf8 kfun:androidx.compose.runtime.Recomposer#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 1144
at 49 iosApp 0x107124f04 kfun:androidx.compose.runtime.CompositionImpl#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 580
at 50 iosApp 0x107572895 kfun:androidx.compose.ui.platform#setContent__at__androidx.compose.ui.platform.SkiaBasedOwner(androidx.compose.runtime.CompositionContext;kotlin.Function0<androidx.compose.runtime.CompositionLocalContext?>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}androidx.compose.runtime.Composition + 821
at 51 iosApp 0x10754891e kfun:androidx.compose.ui.ComposeScene#setContent(androidx.compose.runtime.CompositionContext?;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 2062
at 52 iosApp 0x107548c6a kfun:androidx.compose.ui.ComposeScene#setContent$default(androidx.compose.runtime.CompositionContext?;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>?;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;kotlin.Int){} + 634
at 53 iosApp 0x107541935 kfun:androidx.compose.ui.native.ComposeLayer.setContent$lambda$2#internal + 325
at 54 iosApp 0x107541d52 kfun:androidx.compose.ui.native.ComposeLayer.$setContent$lambda$2$FUNCTION_REFERENCE$763.invoke#internal + 98
at 55 iosApp 0x107541edd kfun:androidx.compose.ui.native.ComposeLayer.$setContent$lambda$2$FUNCTION_REFERENCE$763.$<bridge-UNN>invoke(){}#internal + 77
at 56 iosApp 0x1075416d8 kfun:androidx.compose.ui.native.ComposeLayer.initContent#internal + 296
at 57 iosApp 0x107541272 kfun:androidx.compose.ui.native.ComposeLayer#setContent(kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 418
at 58 iosApp 0x107541483 kfun:androidx.compose.ui.native.ComposeLayer#setContent$default(kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>?;kotlin.Function1<androidx.compose.ui.input.key.KeyEvent,kotlin.Boolean>?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;kotlin.Int){} + 483
at 59 iosApp 0x10757b6f0 kfun:androidx.compose.ui.window.ComposeWindow#objc:loadView + 1808
at 60 iosApp 0x107585423 _6f72672e6a6574627261696e732e636f6d706f73652e75693a75692f6f70742f6275696c644167656e742f776f726b2f626136303535356439646465393261652f636f6d706f73652f6672616d65776f726b732f737570706f72742f636f6d706f73652f75692f75692f7372632f75696b69744d61696e2f6b6f746c696e2f616e64726f6964782f636f6d706f73652f75692f77696e646f772f436f6d706f736557696e646f772e75696b69742e6b74_knbridge91 + 163
at 61 UIKitCore 0x10a0ace9b -[UIViewController loadViewIfRequired] + 92
at 62 UIKitCore 0x10a0ad6c8 -[UIViewController view] + 26
at 63 iosApp 0x106f0905f $s6iosApp12AvoidDisposeC14viewWillAppearyySbF + 415 (/Users/linh/StudioProjects/KMMStructure/iosApp/iosApp/AvoidDispose.swift:28:36)
at 64 iosApp 0x106f09171 $s6iosApp12AvoidDisposeC14viewWillAppearyySbFTo + 49
at 65 UIKitCore 0x10a0b37cc -[UIViewController _setViewAppearState:isAnimating:] + 1393
at 66 UIKitCore 0x10a0b405e -[UIViewController __viewWillAppear:] + 97
at 67 UIKitCore 0x109f7efa0 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.421 + 1126
at 68 UIKitCore 0x109f85749 +[UIPresentationController _scheduleTransition:] + 78
at 69 UIKitCore 0x109f7e8cb -[UIPresentationController runTransitionForCurrentState] + 2209
at 70 UIKitCore 0x109f7b6fb -[UIPresentationController _presentWithAnimationController:inWindow:interactionController:target:didFinish:] + 878
at 71 UIKitCore 0x10a9f02e9 -[UIWindow addRootViewControllerViewIfPossible] + 592
at 72 UIKitCore 0x10a9ef8c7 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 288
at 73 UIKitCore 0x10a9f0e1f -[UIWindow _setHidden:forced:] + 408
at 74 UIKitCore 0x10aa05b2a -[UIWindow _mainQueue_makeKeyAndVisible] + 46
at 75 iosApp 0x106f0760e $s6iosApp0B8DelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 846 (/Users/linh/StudioProjects/KMMStructure/iosApp/iosApp/iOSApp.swift:17:16)
at 76 iosApp 0x106f077d6 $s6iosApp0B8DelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 182
at 77 UIKitCore 0x10a9a4662 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 270
at 78 UIKitCore 0x10a9a6506 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4256
at 79 UIKitCore 0x10a9ac2e2 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1235
at 80 UIKitCore 0x109dd88ab -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 121
at 81 UIKitCore 0x10a44d1e0 _UIScenePerformActionsWithLifecycleActionMask + 87
at 82 UIKitCore 0x109dd93a5 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 197
at 83 UIKitCore 0x109dd8de2 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 251
at 84 UIKitCore 0x109dd91db -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 830
at 85 UIKitCore 0x109dd8a88 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 353
at 86 UIKitCore 0x109de78f4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 177
at 87 UIKitCore 0x10a31d946 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 832
at 88 UIKitCore 0x10a46b2a2 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 256
at 89 UIKitCore 0x109de7574 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 347
at 90 UIKitCore 0x109bca5ad __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.594 + 814
at 91 UIKitCore 0x109bc8fc3 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 244
at 92 UIKitCore 0x109bca15a -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 254
at 93 UIKitCore 0x10a9aaae8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 732
at 94 UIKitCore 0x10a35036a -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 349
at 95 FrontBoardServices 0x7ff80549db3a -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 414
at 96 FrontBoardServices 0x7ff8054cc7b9 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.187 + 101
at 97 FrontBoardServices 0x7ff8054abb89 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 208
at 98 FrontBoardServices 0x7ff8054cc3ae __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 343
at 99 libdispatch.dylib 0x7ff80013ca39 _dispatch_client_callout + 7
at 100 libdispatch.dylib 0x7ff8001404be _dispatch_block_invoke_direct + 483
at 101 FrontBoardServices 0x7ff8054f2bb7 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 29
at 102 FrontBoardServices 0x7ff8054f2aad -[FBSSerialQueue _targetQueue_performNextIfPossible] + 173
at 103 FrontBoardServices 0x7ff8054f2bdf -[FBSSerialQueue _performNextFromRunLoopSource] + 18
at 104 CoreFoundation 0x7ff800387fe4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 16
at 105 CoreFoundation 0x7ff800387f23 __CFRunLoopDoSource0 + 156
at 106 CoreFoundation 0x7ff800387720 __CFRunLoopDoSources0 + 211
at 107 CoreFoundation 0x7ff800381e22 __CFRunLoopRun + 926
at 108 CoreFoundation 0x7ff8003816a6 CFRunLoopRunSpecific + 559
at 109 GraphicsServices 0x7ff809cb1289 GSEventRunModal + 138
at 110 UIKitCore 0x10a9a8ad2 -[UIApplication _run] + 993
at 111 UIKitCore 0x10a9ad9ee UIApplicationMain + 122
at 112 iosApp 0x106f07abe main + 62 (/Users/linh/StudioProjects/KMMStructure/iosApp/iosApp/iOSApp.swift:<unknown>)
at 113 dyld 0x1096ec2be 0x0 + 4453221054
at 114 ??? 0x113e6a30f 0x0 + 4628849423
Process finished with exit code 0
I got this issue when I tried to use Precompose for iOS. Would you happen to have any idea?
Version: 1.3.14