Skip to content

Crash in iOS when calling ProvidePreferenceLocals referencing converting Long to Int #30

@PerrigoGames

Description

@PerrigoGames

I'm experiencing a crash in my Compose Multiplatform application when I try to open my Settings screen. It seems to be coming from the call to ProvidePreferenceLocals.

This only happens in iOS (iOS 26.2 targets were tested); Android and Desktop targets do not crash.
First observed in Compose Preferences 2.1.0, but was also observed after upgrading to 2.1.1.
It doesn't seem to be related to the values I keep in the preferences, I went through and converted all instances of Longs being stored into Ints, but that didn't change the behavior.

v2.1.0

Uncaught Kotlin exception: kotlin.ClassCastException: class kotlin.Long cannot be cast to class kotlin.Int
    at 0   LIFE4DDR.debug.dylib                0x10845f077        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 99 
    at 1   LIFE4DDR.debug.dylib                0x108458c43        kfun:kotlin.Exception#<init>(kotlin.String?){} + 95 
    at 2   LIFE4DDR.debug.dylib                0x108458e13        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 95 
    at 3   LIFE4DDR.debug.dylib                0x1084596b3        kfun:kotlin.ClassCastException#<init>(kotlin.String?){} + 95 
    at 4   LIFE4DDR.debug.dylib                0x10849201b        ThrowClassCastException + 627 
    at 5   LIFE4DDR.debug.dylib                0x109931f3f        kfun:me.zhanghai.compose.preference.<get-preferences>#internal + 3367 
    at 6   LIFE4DDR.debug.dylib                0x1099310c3        kfun:me.zhanghai.compose.preference#createPreferenceFlow(platform.Foundation.NSUserDefaults){}kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences> + 251 
    at 7   LIFE4DDR.debug.dylib                0x109930ec7        kfun:me.zhanghai.compose.preference#createDefaultPreferenceFlow(androidx.compose.runtime.Composer?;kotlin.Int){}kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences> + 463 
    at 8   LIFE4DDR.debug.dylib                0x109958537        kfun:me.zhanghai.compose.preference#ProvidePreferenceLocals(kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences>?;me.zhanghai.compose.preference.PreferenceTheme?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 1651 
    at 9   LIFE4DDR.debug.dylib                0x1079ec92b        kfun:com.perrigogames.life4ddr.nextgen.feature.settings#SettingsScreenContent(kotlin.collections.List<com.perrigogames.life4ddr.nextgen.feature.settings.view.UISettingsItem>;androidx.compose.ui.Modifier?;kotlin.Function1<com.perrigogames.life4ddr.nextgen.feature.settings.viewmodel.SettingsAction,kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 1627 
    at 10  LIFE4DDR.debug.dylib                0x1079f07f3        kfun:com.perrigogames.life4ddr.nextgen.feature.settings.SettingsScreenContent$3.invoke#internal + 4107 
    at 11  LIFE4DDR.debug.dylib                0x1079f09ff        kfun:com.perrigogames.life4ddr.nextgen.feature.settings.SettingsScreenContent$3.$<bridge-DNNNU>invoke(androidx.compose.foundation.layout.PaddingValues;androidx.compose.runtime.Composer;kotlin.Int){}#internal + 195 
    at 12  LIFE4DDR.debug.dylib                0x1085a1f17        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 123 
    at 13  LIFE4DDR.debug.dylib                0x1088748c7        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 651 
    at 14  LIFE4DDR.debug.dylib                0x10888034f        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 199 
    at 15  LIFE4DDR.debug.dylib                0x1085a1f17        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 123 
    at 16  LIFE4DDR.debug.dylib                0x109670fdb        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$4.invoke#internal + 3819 
    at 17  LIFE4DDR.debug.dylib                0x1096711c3        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$4.$<bridge-DNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 18  LIFE4DDR.debug.dylib                0x1085a1e23        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 19  LIFE4DDR.debug.dylib                0x108874553        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 607 
    at 20  LIFE4DDR.debug.dylib                0x108880253        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 21  LIFE4DDR.debug.dylib                0x1085a1e23        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 22  LIFE4DDR.debug.dylib                0x108bdf08b        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.LayoutNodeSubcompositionsState$subcompose$$inlined$withoutReadObservation$1.invoke#internal + 1003 
    at 23  LIFE4DDR.debug.dylib                0x108bdf20f        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.LayoutNodeSubcompositionsState$subcompose$$inlined$withoutReadObservation$1.$<bridge-DNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 159 
    at 24  LIFE4DDR.debug.dylib                0x1085a1e23        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 25  LIFE4DDR.debug.dylib                0x108874553        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 607 
    at 26  LIFE4DDR.debug.dylib                0x108880253        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 163 
    at 27  LIFE4DDR.debug.dylib                0x1085a1e23        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 28  LIFE4DDR.debug.dylib                0x1088e1ee3        kfun:androidx.compose.runtime.internal#invokeComposable(androidx.compose.runtime.Composer;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 215 
    at 29  LIFE4DDR.debug.dylib                0x108779fe7        kfun:androidx.compose.runtime.ComposerImpl.doCompose#internal + 1483 
    at 30  LIFE4DDR.debug.dylib                0x108778b6b        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>;androidx.compose.runtime.ShouldPauseCallback?){} + 355 
    at 31  LIFE4DDR.debug.dylib                0x10878b6cb        kfun:androidx.compose.runtime.CompositionImpl#composeContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 1075 
    at 32  LIFE4DDR.debug.dylib                0x1088eae3b        kfun:androidx.compose.runtime.ControlledComposition#composeContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 99 
    at 33  LIFE4DDR.debug.dylib                0x1087c45c7        kfun:androidx.compose.runtime.Recomposer#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 1615 
    at 34  LIFE4DDR.debug.dylib                0x1088e9fef        kfun:androidx.compose.runtime.CompositionContext#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 67 
    at 35  LIFE4DDR.debug.dylib                0x10877cc6f        kfun:androidx.compose.runtime.ComposerImpl.CompositionContextImpl#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 195 
    at 36  LIFE4DDR.debug.dylib                0x1088e9fef        kfun:androidx.compose.runtime.CompositionContext#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 67 
    at 37  LIFE4DDR.debug.dylib                0x10877cc6f        kfun:androidx.compose.runtime.ComposerImpl.CompositionContextImpl#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 195 
    at 38  LIFE4DDR.debug.dylib                0x1088e9fef        kfun:androidx.compose.runtime.CompositionContext#composeInitial(androidx.compose.runtime.ControlledComposition;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 67 
    at 39  LIFE4DDR.debug.dylib                0x108789b5f        kfun:androidx.compose.runtime.CompositionImpl.composeInitial#internal + 227 
    at 40  LIFE4DDR.debug.dylib                0x108789747        kfun:androidx.compose.runtime.CompositionImpl#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){} + 187 
    at 41  LIFE4DDR.debug.dylib                0x1088eacb7        kfun:androidx.compose.runtime.ReusableComposition#setContent(kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}-trampoline + 99 
    at 42  LIFE4DDR.debug.dylib                0x108bd6923        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose#internal.30 + 1923 
    at 43  LIFE4DDR.debug.dylib                0x108bd6023        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.subcompose#internal + 1283 
    at 44  LIFE4DDR.debug.dylib                0x108bd59fb        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState#subcompose(kotlin.Any?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}kotlin.collections.List<androidx.compose.ui.layout.Measurable> + 2355 
    at 45  LIFE4DDR.debug.dylib                0x108bdcbab        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.Scope.subcompose#internal + 135 
    at 46  LIFE4DDR.debug.dylib                0x108e594d3        kfun:androidx.compose.ui.layout.SubcomposeMeasureScope#subcompose(kotlin.Any?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>){}kotlin.collections.List<androidx.compose.ui.layout.Measurable>-trampoline + 115 
    at 47  LIFE4DDR.debug.dylib                0x109673637        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$6.invoke#internal + 4395 
    at 48  LIFE4DDR.debug.dylib                0x109673f43        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$6.$<bridge-NNNU>invoke(androidx.compose.ui.layout.SubcomposeMeasureScope;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult#internal + 163 
    at 49  LIFE4DDR.debug.dylib                0x1085a1e23        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 50  LIFE4DDR.debug.dylib                0x108bdf9df        kfun:androidx.compose.ui.layout.LayoutNodeSubcompositionsState.LayoutNodeSubcompositionsState$createMeasurePolicy$1.measure#internal + 1163 
    at 51  LIFE4DDR.debug.dylib                0x108e56bff        kfun:androidx.compose.ui.layout.MeasurePolicy#measure__at__androidx.compose.ui.layout.MeasureScope(kotlin.collections.List<androidx.compose.ui.layout.Measurable>;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 52  LIFE4DDR.debug.dylib                0x108bfcb17        kfun:androidx.compose.ui.node.InnerNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 1179 
    at 53  LIFE4DDR.debug.dylib                0x108e6100f        kfun:androidx.compose.ui.node.NodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 67 
    at 54  LIFE4DDR.debug.dylib                0x108c52b97        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.invoke#internal + 183 
    at 55  LIFE4DDR.debug.dylib                0x108c52c03        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.$<bridge-DN>invoke(){}#internal + 71 
    at 56  LIFE4DDR.debug.dylib                0x10859ee5b        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99 
    at 57  LIFE4DDR.debug.dylib                0x10888e1e7        kfun:androidx.compose.runtime.snapshots.Snapshot.Companion#observe(kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0 + 1131 
    at 58  LIFE4DDR.debug.dylib                0x1088c36f7        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver.ObservedScopeMap.observe#internal + 891 
    at 59  LIFE4DDR.debug.dylib                0x1088c0693        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<kotlin.Any>} + 1383 
    at 60  LIFE4DDR.debug.dylib                0x108c81187        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<androidx.compose.ui.node.OwnerScope>} + 227 
    at 61  LIFE4DDR.debug.dylib                0x108c80e9f        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeMeasureSnapshotReads(androidx.compose.ui.node.LayoutNode;kotlin.Boolean;kotlin.Function0<kotlin.Unit>){} + 411 
    at 62  LIFE4DDR.debug.dylib                0x108c4e093        kfun:androidx.compose.ui.node.MeasurePassDelegate#performMeasure(androidx.compose.ui.unit.Constraints){} + 571 
    at 63  LIFE4DDR.debug.dylib                0x108c4e8cb        kfun:androidx.compose.ui.node.MeasurePassDelegate#remeasure(androidx.compose.ui.unit.Constraints){}kotlin.Boolean + 1103 
    at 64  LIFE4DDR.debug.dylib                0x108c4e433        kfun:androidx.compose.ui.node.MeasurePassDelegate#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 743 
    at 65  LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 66  LIFE4DDR.debug.dylib                0x108e8c987        kfun:androidx.compose.foundation.layout.BoxMeasurePolicy.measure#internal + 923 
    at 67  LIFE4DDR.debug.dylib                0x108e56bff        kfun:androidx.compose.ui.layout.MeasurePolicy#measure__at__androidx.compose.ui.layout.MeasureScope(kotlin.collections.List<androidx.compose.ui.layout.Measurable>;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 68  LIFE4DDR.debug.dylib                0x108bfcb17        kfun:androidx.compose.ui.node.InnerNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 1179 
    at 69  LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 70  LIFE4DDR.debug.dylib                0x108b691cf        kfun:androidx.compose.ui.graphics.SimpleGraphicsLayerModifier.measure#internal + 219 
    at 71  LIFE4DDR.debug.dylib                0x108e5d7a3        kfun:androidx.compose.ui.node.LayoutModifierNode#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 72  LIFE4DDR.debug.dylib                0x108c04a33        kfun:androidx.compose.ui.node.LayoutModifierNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 2491 
    at 73  LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 74  LIFE4DDR.debug.dylib                0x108eb18bf        kfun:androidx.compose.foundation.layout.FillNode.measure#internal + 1531 
    at 75  LIFE4DDR.debug.dylib                0x108e5d7a3        kfun:androidx.compose.ui.node.LayoutModifierNode#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 76  LIFE4DDR.debug.dylib                0x108c04a33        kfun:androidx.compose.ui.node.LayoutModifierNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 2491 
    at 77  LIFE4DDR.debug.dylib                0x108e6100f        kfun:androidx.compose.ui.node.NodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 67 
    at 78  LIFE4DDR.debug.dylib                0x108c52b97        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.invoke#internal + 183 
    at 79  LIFE4DDR.debug.dylib                0x108c52c03        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.$<bridge-DN>invoke(){}#internal + 71 
    at 80  LIFE4DDR.debug.dylib                0x10859ee5b        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99 
    at 81  LIFE4DDR.debug.dylib                0x10888e1e7        kfun:androidx.compose.runtime.snapshots.Snapshot.Companion#observe(kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0 + 1131 
    at 82  LIFE4DDR.debug.dylib                0x1088c36f7        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver.ObservedScopeMap.observe#internal + 891 
    at 83  LIFE4DDR.debug.dylib                0x1088c0693        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<kotlin.Any>} + 1383 
    at 84  LIFE4DDR.debug.dylib                0x108c81187        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<androidx.compose.ui.node.OwnerScope>} + 227 
    at 85  LIFE4DDR.debug.dylib                0x108c80e9f        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeMeasureSnapshotReads(androidx.compose.ui.node.LayoutNode;kotlin.Boolean;kotlin.Function0<kotlin.Unit>){} + 411 
    at 86  LIFE4DDR.debug.dylib                0x108c4e093        kfun:androidx.compose.ui.node.MeasurePassDelegate#performMeasure(androidx.compose.ui.unit.Constraints){} + 571 
    at 87  LIFE4DDR.debug.dylib                0x108c4e8cb        kfun:androidx.compose.ui.node.MeasurePassDelegate#remeasure(androidx.compose.ui.unit.Constraints){}kotlin.Boolean + 1103 
    at 88  LIFE4DDR.debug.dylib                0x108c4e433        kfun:androidx.compose.ui.node.MeasurePassDelegate#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 743 
    at 89  LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 90  LIFE4DDR.debug.dylib                0x108e8c987        kfun:androidx.compose.foundation.layout.BoxMeasurePolicy.measure#internal + 923 
    at 91  LIFE4DDR.debug.dylib                0x108e56bff        kfun:androidx.compose.ui.layout.MeasurePolicy#measure__at__androidx.compose.ui.layout.MeasureScope(kotlin.collections.List<androidx.compose.ui.layout.Measurable>;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 92  LIFE4DDR.debug.dylib                0x108bfcb17        kfun:androidx.compose.ui.node.InnerNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 1179 
    at 93  LIFE4DDR.debug.dylib                0x108e6100f        kfun:androidx.compose.ui.node.NodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 67 
    at 94  LIFE4DDR.debug.dylib                0x108c52b97        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.invoke#internal + 183 
    at 95  LIFE4DDR.debug.dylib                0x108c52c03        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.$<bridge-DN>invoke(){}#internal + 71 
    at 96  LIFE4DDR.debug.dylib                0x10859ee5b        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 99 
    at 97  LIFE4DDR.debug.dylib                0x10888e1e7        kfun:androidx.compose.runtime.snapshots.Snapshot.Companion#observe(kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function1<kotlin.Any,kotlin.Unit>?;kotlin.Function0<0:0>){0§<kotlin.Any?>}0:0 + 1131 
    at 98  LIFE4DDR.debug.dylib                0x1088c36f7        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver.ObservedScopeMap.observe#internal + 891 
    at 99  LIFE4DDR.debug.dylib                0x1088c0693        kfun:androidx.compose.runtime.snapshots.SnapshotStateObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<kotlin.Any>} + 1383 
    at 100 LIFE4DDR.debug.dylib                0x108c81187        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeReads(0:0;kotlin.Function1<0:0,kotlin.Unit>;kotlin.Function0<kotlin.Unit>){0§<androidx.compose.ui.node.OwnerScope>} + 227 
    at 101 LIFE4DDR.debug.dylib                0x108c80e9f        kfun:androidx.compose.ui.node.OwnerSnapshotObserver#observeMeasureSnapshotReads(androidx.compose.ui.node.LayoutNode;kotlin.Boolean;kotlin.Function0<kotlin.Unit>){} + 411 
    at 102 LIFE4DDR.debug.dylib                0x108c4e093        kfun:androidx.compose.ui.node.MeasurePassDelegate#performMeasure(androidx.compose.ui.unit.Constraints){} + 571 
    at 103 LIFE4DDR.debug.dylib                0x108c4e8cb        kfun:androidx.compose.ui.node.MeasurePassDelegate#remeasure(androidx.compose.ui.unit.Constraints){}kotlin.Boolean + 1103 
    at 104 LIFE4DDR.debug.dylib                0x108c4e433        kfun:androidx.compose.ui.node.MeasurePassDelegate#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 743 
    at 105 LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 106 LIFE4DDR.debug.dylib                0x108eedc53        kfun:androidx.compose.animation.AnimatedEnterExitMeasurePolicy.measure#internal + 867 
    at 107 LIFE4DDR.debug.dylib                0x108e56bff        kfun:androidx.compose.ui.layout.MeasurePolicy#measure__at__androidx.compose.ui.layout.MeasureScope(kotlin.collections.List<androidx.compose.ui.layout.Measurable>;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 108 LIFE4DDR.debug.dylib                0x108bfcb17        kfun:androidx.compose.ui.node.InnerNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 1179 
    at 109 LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 110 LIFE4DDR.debug.dylib                0x108f0ca8b        kfun:androidx.compose.animation.EnterExitTransitionModifierNode.measure#internal + 1783 
    at 111 LIFE4DDR.debug.dylib                0x108e5d7a3        kfun:androidx.compose.ui.node.LayoutModifierNode#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 112 LIFE4DDR.debug.dylib                0x108c04a33        kfun:androidx.compose.ui.node.LayoutModifierNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 2491 
    at 113 LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 114 LIFE4DDR.debug.dylib                0x108b676f3        kfun:androidx.compose.ui.graphics.BlockGraphicsLayerModifier#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult + 219 
    at 115 LIFE4DDR.debug.dylib                0x108e5d7a3        kfun:androidx.compose.ui.node.LayoutModifierNode#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 116 LIFE4DDR.debug.dylib                0x108c04a33        kfun:androidx.compose.ui.node.LayoutModifierNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 2491 
    at 117 LIFE4DDR.debug.dylib                0x108e4844f        kfun:androidx.compose.ui.layout.Measurable#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 107 
    at 118 LIFE4DDR.debug.dylib                0x108ee4183        kfun:androidx.compose.animation.AnimatedContent$$inlined$fastForEach$1.AnimatedContent$$inlined$fastForEach$1$invoke$1.invoke#internal + 219 
    at 119 LIFE4DDR.debug.dylib                0x108ee451b        kfun:androidx.compose.animation.AnimatedContent$$inlined$fastForEach$1.AnimatedContent$$inlined$fastForEach$1$invoke$1.$<bridge-NNNNU>invoke(androidx.compose.ui.layout.MeasureScope;androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult#internal + 199 
    at 120 LIFE4DDR.debug.dylib                0x1085a1f17        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 123 
    at 121 LIFE4DDR.debug.dylib                0x108bbff43        kfun:androidx.compose.ui.layout.LayoutModifierImpl#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult + 267 
    at 122 LIFE4DDR.debug.dylib                0x108e5d7a3        kfun:androidx.compose.ui.node.LayoutModifierNode#measure__at__androidx.compose.ui.layout.MeasureScope(androidx.compose.ui.layout.Measurable;androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.MeasureResult-trampoline + 123 
    at 123 LIFE4DDR.debug.dylib                0x108c04a33        kfun:androidx.compose.ui.node.LayoutModifierNodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable + 2491 
    at 124 LIFE4DDR.debug.dylib                0x108e6100f        kfun:androidx.compose.ui.node.NodeCoordinator#measure(androidx.compose.ui.unit.Constraints){}androidx.compose.ui.layout.Placeable-trampoline + 67 
    at 125 LIFE4DDR.debug.dylib                0x108c52b97        kfun:androidx.compose.ui.node.MeasurePassDelegate.MeasurePassDelegate$1.invoke#internal + 183 

v2.1.1

Uncaught Kotlin exception: kotlin.ClassCastException: class kotlin.Long cannot be cast to class kotlin.Int
    at 0   LIFE4DDR.debug.dylib                0x109cf4397        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 99 
    at 1   LIFE4DDR.debug.dylib                0x109cee7b3        kfun:kotlin.Exception#<init>(kotlin.String?){} + 95 
    at 2   LIFE4DDR.debug.dylib                0x109cee973        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 95 
    at 3   LIFE4DDR.debug.dylib                0x109cef1c3        kfun:kotlin.ClassCastException#<init>(kotlin.String?){} + 95 
    at 4   LIFE4DDR.debug.dylib                0x109d22247        ThrowClassCastException + 627 
    at 5   LIFE4DDR.debug.dylib                0x10afcf5d7        kfun:me.zhanghai.compose.preference.<get-preferences>#internal + 3091 
    at 6   LIFE4DDR.debug.dylib                0x10afce8a7        kfun:me.zhanghai.compose.preference#createPreferenceFlow(platform.Foundation.NSUserDefaults){}kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences> + 251 
    at 7   LIFE4DDR.debug.dylib                0x10afce6cb        kfun:me.zhanghai.compose.preference#createDefaultPreferenceFlow(androidx.compose.runtime.Composer?;kotlin.Int){}kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences> + 415 
    at 8   LIFE4DDR.debug.dylib                0x10aff228b        kfun:me.zhanghai.compose.preference#ProvidePreferenceLocals(kotlinx.coroutines.flow.MutableStateFlow<me.zhanghai.compose.preference.Preferences>?;me.zhanghai.compose.preference.PreferenceTheme?;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 1547 
    at 9   LIFE4DDR.debug.dylib                0x1092c2e8f        kfun:com.perrigogames.life4ddr.nextgen.feature.settings#SettingsScreenContent(kotlin.collections.List<com.perrigogames.life4ddr.nextgen.feature.settings.view.UISettingsItem>;androidx.compose.ui.Modifier?;kotlin.Function1<com.perrigogames.life4ddr.nextgen.feature.settings.viewmodel.SettingsAction,kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){} + 1499 
    at 10  LIFE4DDR.debug.dylib                0x1092c687b        kfun:com.perrigogames.life4ddr.nextgen.feature.settings.SettingsScreenContent$3.invoke#internal + 3691 
    at 11  LIFE4DDR.debug.dylib                0x1092c6a4f        kfun:com.perrigogames.life4ddr.nextgen.feature.settings.SettingsScreenContent$3.$<bridge-DNNNU>invoke(androidx.compose.foundation.layout.PaddingValues;androidx.compose.runtime.Composer;kotlin.Int){}#internal + 187 
    at 12  LIFE4DDR.debug.dylib                0x109e1c6db        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 123 
    at 13  LIFE4DDR.debug.dylib                0x10a0c0b7f        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 575 
    at 14  LIFE4DDR.debug.dylib                0x10a0cbc5f        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNU>invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 191 
    at 15  LIFE4DDR.debug.dylib                0x109e1c6db        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 123 
    at 16  LIFE4DDR.debug.dylib                0x10ad8717b        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$4.invoke#internal + 3451 
    at 17  LIFE4DDR.debug.dylib                0x10ad8732b        kfun:androidx.compose.material3.ScaffoldLayout$$inlined$cache$4.$<bridge-DNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 151 
    at 18  LIFE4DDR.debug.dylib                0x109e1c5f3        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115 
    at 19  LIFE4DDR.debug.dylib                0x10a0c086f        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 531 
    at 20  LIFE4DDR.debug.dylib                0x10a0cbb77        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNU>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 155 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions