java.util.ConcurrentModificationException

Appcelerator JIRA | Shuo Liang | 1 year ago
  1. 0

    h6.Reproduce Step: 1. Simply the test case attached. 2. Scroll down until exception throw out and app crash. h6.Exception {code} [DEBUG] : AndroidRuntime: Shutting down VM [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40cbb930) [ERROR] : TiApplication: (main) [914474,914474] Sending event: exception on thread: main msg:java.util.ConcurrentModificationException; Titanium 5.0.0,2015/09/15 23:07,ec79bc5 [ERROR] : TiApplication: java.util.ConcurrentModificationException [ERROR] : TiApplication: at java.util.ArrayList$ArrayListIterator.remove(ArrayList.java:582) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.listview.TiListView.checkMarker(TiListView.java:457) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.listview.TiListView$TiBaseAdapter.getView(TiListView.java:255) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220) [ERROR] : TiApplication: at android.widget.AbsListView.obtainView(AbsListView.java:2143) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1831) [ERROR] : TiApplication: at android.widget.ListView.fillDown(ListView.java:674) [ERROR] : TiApplication: at android.widget.ListView.fillGap(ListView.java:638) [ERROR] : TiApplication: at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4930) [ERROR] : TiApplication: at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4087) [ERROR] : TiApplication: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) [ERROR] : TiApplication: at android.view.Choreographer.doCallbacks(Choreographer.java:562) [ERROR] : TiApplication: at android.view.Choreographer.doFrame(Choreographer.java:531) [ERROR] : TiApplication: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) [ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:725) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h6.Note 1. It was working well in SDK 3.5.1.GA, but after upgrade to 5.0.x, it happened. 2. Basically test code is using ListView.setMarker() heavily to track which row the user has scrolled to and loading of additional rows. 3. Only happens on Android, iOS works well.

    Appcelerator JIRA | 1 year ago | Shuo Liang
    java.util.ConcurrentModificationException
  2. 0

    h6.Reproduce Step: 1. Simply the test case attached. 2. Scroll down until exception throw out and app crash. h6.Exception {code} [DEBUG] : AndroidRuntime: Shutting down VM [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40cbb930) [ERROR] : TiApplication: (main) [914474,914474] Sending event: exception on thread: main msg:java.util.ConcurrentModificationException; Titanium 5.0.0,2015/09/15 23:07,ec79bc5 [ERROR] : TiApplication: java.util.ConcurrentModificationException [ERROR] : TiApplication: at java.util.ArrayList$ArrayListIterator.remove(ArrayList.java:582) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.listview.TiListView.checkMarker(TiListView.java:457) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.listview.TiListView$TiBaseAdapter.getView(TiListView.java:255) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220) [ERROR] : TiApplication: at android.widget.AbsListView.obtainView(AbsListView.java:2143) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1831) [ERROR] : TiApplication: at android.widget.ListView.fillDown(ListView.java:674) [ERROR] : TiApplication: at android.widget.ListView.fillGap(ListView.java:638) [ERROR] : TiApplication: at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4930) [ERROR] : TiApplication: at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4087) [ERROR] : TiApplication: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) [ERROR] : TiApplication: at android.view.Choreographer.doCallbacks(Choreographer.java:562) [ERROR] : TiApplication: at android.view.Choreographer.doFrame(Choreographer.java:531) [ERROR] : TiApplication: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) [ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:725) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:92) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} h6.Note 1. It was working well in SDK 3.5.1.GA, but after upgrade to 5.0.x, it happened. 2. Basically test code is using ListView.setMarker() heavily to track which row the user has scrolled to and loading of additional rows. 3. Only happens on Android, iOS works well.

    Appcelerator JIRA | 1 year ago | Shuo Liang
    java.util.ConcurrentModificationException
  3. 0

    ConcurrentModificationException even with the use of Iterator in android ArrayList

    Stack Overflow | 5 years ago | user1339255
    java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Worklight push leads to ConcurrentModificationException

    Stack Overflow | 2 years ago | Qylin
    java.lang.RuntimeException: Error receiving broadcast Intent { act=com.MeaWallet.MeaWallet.C2DM_REGISTERED flg=0x10 (has extras) } in com.worklight.wlclient.api.WLPush$3@2e2deef4

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.ConcurrentModificationException

      No message provided

      at java.util.ArrayList$ArrayListIterator.remove()
    2. Java RT
      ArrayList$ArrayListIterator.remove
      1. java.util.ArrayList$ArrayListIterator.remove(ArrayList.java:582)
      1 frame
    3. ti.modules.titanium
      TiListView$TiBaseAdapter.getView
      1. ti.modules.titanium.ui.widget.listview.TiListView.checkMarker(TiListView.java:457)
      2. ti.modules.titanium.ui.widget.listview.TiListView$TiBaseAdapter.getView(TiListView.java:255)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.widget.HeaderViewListAdapter.getView(HeaderViewListAdapter.java:220)
      2. android.widget.AbsListView.obtainView(AbsListView.java:2143)
      3. android.widget.ListView.makeAndAddView(ListView.java:1831)
      4. android.widget.ListView.fillDown(ListView.java:674)
      5. android.widget.ListView.fillGap(ListView.java:638)
      6. android.widget.AbsListView.trackMotionScroll(AbsListView.java:4930)
      7. android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4087)
      8. android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
      9. android.view.Choreographer.doCallbacks(Choreographer.java:562)
      10. android.view.Choreographer.doFrame(Choreographer.java:531)
      11. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
      12. android.os.Handler.handleCallback(Handler.java:725)
      13. android.os.Handler.dispatchMessage(Handler.java:92)
      14. android.os.Looper.loop(Looper.java:137)
      15. android.app.ActivityThread.main(ActivityThread.java:5041)
      15 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame