keiji / mangaview

An ImageView for reading manga(comics) for Android.
Apache License 2.0
35 stars 4 forks source link

ConcurrentModificationException is occurred. #3

Closed keiji closed 3 years ago

keiji commented 3 years ago

System information

Describe the current behavior

Logcat

2020-12-26 02:22:41.272 3122-3122/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: jp.co.c_lis.mangaview.android, PID: 3122
    java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.next(ArrayList.java:860)
        at dev.keiji.mangaview.source.RegionSource.getPathList(RegionSource.kt:28)
        at dev.keiji.mangaview.layer.RegionLayer.onDraw(RegionLayer.kt:65)
        at dev.keiji.mangaview.layer.ContentLayer.draw(ContentLayer.kt:142)
        at dev.keiji.mangaview.widget.Page.draw(Page.kt:63)
        at dev.keiji.mangaview.widget.MangaView.onDraw(MangaView.kt:362)
        at android.view.View.draw(View.java:20346)
        at android.view.View.updateDisplayListIfDirty(View.java:19195)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4319)
        at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4292)
        at android.view.View.updateDisplayListIfDirty(View.java:19155)
        at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686)
        at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692)
        at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:801)
        at android.view.ViewRootImpl.draw(ViewRootImpl.java:3396)
        at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3158)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2525)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1500)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7314)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004)
        at android.view.Choreographer.doCallbacks(Choreographer.java:816)
        at android.view.Choreographer.doFrame(Choreographer.java:751)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6815)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Describe the expected behavior The exception is not occurred.