-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
java.lang.IllegalStateException: Deque is too big #1353
Comments
Any update root cause for this issue ? |
Clearly need investigation yes 👍 |
Can we do anything to support? |
if you have any sample app that help reproduce, it's a great help. |
As of now I don't have any sample code that I would be allowed to share unfortunately. But I may have a lead: We have classes implementing
And when I look at the parameterStack at sizes > 0 I can see Now when I add
I still don't quite understand why the same code seems to behave so differently in different pods (and why the parameter size still goes down sometimes, or why it seems to have appeared only more or less recently) but to me this looks like a very potential root cause candidate (and incorrect use of Koin, thus qualifying indeed as "not a bug"). Does any of that sound plausible? |
I think I can confirm that the above change (getting rid of manual instance creation within a Koin managed context) fixed the issue for us. Maybe @shettigarsanthosh can confirm for them, otherwise I'd leave it up to you how to proceed here. |
Have the same issue 🧐 |
Also faced such issue after migrating to 3.2.1 from 2.1.5 We use dynamic resolving by named argument on other end we have
For now assuming that due to concurrent calls to content provider arraydeque params logic has some issues In some cases we got |
I'm facing this issue while using And my
Koin version: 3.2.2 |
Any update for this issue? as we are having the same crash as well |
are you all using it in ktor? |
@arnaudgiuliani I am. |
We aren't |
I believe we can try this fix: b2efb22 this is pushing synchronization when we have parameters on stack. This would avoid having dangling parameters on stack I will publish it in Koin 3.3. |
Feel free to reopen an issue if you need 👍 |
Facing following issue, when tried to use access get() in KoinComponent Scope
java.lang.IllegalStateException: Deque is too big.
at kotlin.collections.ArrayDeque.ensureCapacity(ArrayDeque.java:59)
at kotlin.collections.ArrayDeque.addFirst(ArrayDeque.java:124)
at org.koin.core.scope.Scope.resolveInstance(Scope.java:238)
at org.koin.core.scope.Scope.get(Scope.java:204)
Can you please help to understand the possible root cause for above crash ?
Koin version - 3.1.5
The text was updated successfully, but these errors were encountered: