NetLogo / NetLogo/View2.5D

Error after running slime for a while

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

java.util.ConcurrentModificationException
 at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
 at java.util.AbstractList$Itr.next(AbstractList.java:343)
 at view25d.view.gl.PatchGL.display(PatchGL.java:250)
 at com.sun.opengl.impl.GLDrawableHelper.display(GLDrawableHelper.java:78)
 at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:435)
 at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
 at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:412)
 at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)
 at javax.media.opengl.GLCanvas.paint(GLCanvas.java:277)
 at javax.media.opengl.GLCanvas.update(GLCanvas.java:354)
 at sun.awt.RepaintArea.updateComponent(RepaintArea.java:267)
 at sun.awt.RepaintArea.paint(RepaintArea.java:233)
 at apple.awt.ComponentModel.handleEvent(ComponentModel.java:263)
 at java.awt.Component.dispatchEventImpl(Component.java:4852)
 at java.awt.Component.dispatchEvent(Component.java:4604)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
 at java.awt.EventQueue.access$400(EventQueue.java:82)
 at java.awt.EventQueue$2.run(EventQueue.java:676)
 at java.awt.EventQueue$2.run(EventQueue.java:674)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:690)
 at java.awt.EventQueue$3.run(EventQueue.java:688)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I suspect this is a timing bug that will be hard to reproduce. I had messed around with the view (just mouse manipulation, not code), but wasn't when the error occurred.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting PatchGL.java at line 250, where the ConcurrentModificationException occurs during display, and trace how the view data is changed while slime is running. Reproduce the failure by running slime for an extended period and confirm that the display completes without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.