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

Fatal Exception: java.util.ConcurrentModificationException #273

Open
NarekAslik opened this issue Oct 3, 2024 · 2 comments
Open

Fatal Exception: java.util.ConcurrentModificationException #273

NarekAslik opened this issue Oct 3, 2024 · 2 comments

Comments

@NarekAslik
Copy link

я из presenterScope вызываю метод viewState а, и натыкаюсь на такую ошибку
java.util.ArrayList$Itr.checkForComodification (ArrayList.java:1029)
java.util.ArrayList$Itr.next (ArrayList.java:982)
moxy.viewstate.strategy.AddToEndSingleStrategy.beforeApply (AddToEndSingleStrategy.java:20)
moxy.viewstate.ViewCommands.beforeApply (ViewCommands.java:22)

@senneco
Copy link
Collaborator

senneco commented Oct 4, 2024

Скорей всего у вас по команде во View, View сразу отправляет что-то в Presenter и Presenter сразу опять что-то отправляет во ViewState. Ну и можно ещё стек трейс весь скинуть.

@NarekAslik
Copy link
Author

java.util.ArrayList$Itr.checkForComodification (ArrayList.java:1029)
java.util.ArrayList$Itr.next (ArrayList.java:982)
moxy.viewstate.strategy.AddToEndSingleStrategy.beforeApply (AddToEndSingleStrategy.java:20)
moxy.viewstate.ViewCommands.beforeApply (ViewCommands.java:22)
ru.deltapay.puntopago.hipo.fragments.payment.PaymentView$$State.showProgressDialog (PaymentView$$State.java:97)
ru.deltapay.puntopago.hipo.fragments.payment.payment_confirm.PaymentConfirmPresenter$endConfirmRequestState$1.invokeSuspend (PaymentConfirmPresenter.kt:925)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
android.os.Handler.handleCallback (Handler.java:996)
android.os.Handler.dispatchMessage (Handler.java:110)
android.os.Looper.loopOnce (Looper.java:210)
android.os.Looper.loop (Looper.java:302)
android.app.ActivityThread.main (ActivityThread.java:9652)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:601)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1062)
Это весь стек трейс. Не совсем понимаю о чём здесь речь "View сразу отправляет что-то в Presenter"

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