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

IndexOutOfBoundException on iOS #461

Open
gswierczynski opened this issue Dec 7, 2024 · 2 comments
Open

IndexOutOfBoundException on iOS #461

gswierczynski opened this issue Dec 7, 2024 · 2 comments

Comments

@gswierczynski
Copy link

Hello,

Thank you for the library.

I am having issue on iOS.

I am getting this on app start (very rarely). I do use a scope in case that matters.

What could I possible be doing wrong for Kodein to throw it?

Last Exception Backtrace:
0   kmm                           	       0x108168f5c kfun:kotlin.Throwable#<init>(){} + 100
1   kmm                           	       0x108162300 kfun:kotlin.Exception#<init>(){} + 88
2   kmm                           	       0x108162520 kfun:kotlin.RuntimeException#<init>(){} + 88
3   kmm                           	       0x108162e5c kfun:kotlin.IndexOutOfBoundsException#<init>(){} + 88
4   kmm                           	       0x108162f50 kfun:kotlin.ArrayIndexOutOfBoundsException#<init>(){} + 88
5   kmm                           	       0x10819a6a0 ThrowArrayIndexOutOfBoundsException + 144
6   kmm                           	       0x1083228b4 Kotlin_IntArray_set + 44
7   kmm                           	       0x1081d64a8 kfun:kotlin.collections.HashMap#addKey(1:0){}kotlin.Int + 820
8   kmm                           	       0x1081d3560 kfun:kotlin.collections.HashMap#put(1:0;1:1){}1:1? + 244
9   kmm                           	       0x1082b5850 kfun:kotlin.collections.MutableMap#put(1:0;1:1){}1:1?-trampoline + 116
10  kmm                           	       0x108632154 kfun:org.kodein.di.bindings.StandardScopeRegistry#getOrCreate(kotlin.Any;kotlin.Boolean;kotlin.Function0<org.kodein.di.bindings.Reference<kotlin.Any>>){}kotlin.Any + 1392
11  kmm                           	       0x10865b7b4 kfun:org.kodein.di.bindings.ScopeRegistry#getOrCreate(kotlin.Any;kotlin.Boolean;kotlin.Function0<org.kodein.di.bindings.Reference<kotlin.Any>>){}kotlin.Any-trampoline + 92
12  kmm                           	       0x10863987c kfun:org.kodein.di.bindings.Singleton.getFactory$lambda$3#internal + 668
13  kmm                           	       0x108639a74 kfun:org.kodein.di.bindings.Singleton.$getFactory$lambda$3$FUNCTION_REFERENCE$7.invoke#internal + 116
14  kmm                           	       0x1082adf04 kfun:kotlin.Function1#invoke(1:0){}1:1-trampoline + 108
15  kmm                           	       0x10862cb7c kfun:org.kodein.di.DIContainer.provider$lambda$0#internal + 116
16  kmm                           	       0x10862cd68 kfun:org.kodein.di.DIContainer.$provider$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 80
17  kmm                           	       0x1082af2bc kfun:kotlin.Function0#invoke(){}1:0-trampoline + 100
18  kmm                           	       0x1086539ac kfun:org.kodein.di.internal.DirectDIBaseImpl#Instance(org.kodein.type.TypeToken<0:0>;kotlin.Any?){0§<kotlin.Any>}0:0 + 600
19  kmm                           	       0x1086592bc kfun:org.kodein.di.DirectDI#Instance(org.kodein.type.TypeToken<0:0>;kotlin.Any?){0§<kotlin.Any>}0:0-trampoline + 116
@gswierczynski
Copy link
Author

I am guessing that it might be connected to #460

@romainbsl
Copy link
Member

Yes it's probably related to the synchronise that does not synchronise...

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

2 participants