-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Hello, I have a trackmate action that corrects the tracks and sets the new graph on the model which does get updated in the trackscheme but the display setting of drawing the track overlay on the hyperstack throws this error:
Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1445) at java.util.HashMap$ValueIterator.next(HashMap.java:1474) at fiji.plugin.trackmate.TrackModel.nTracks(TrackModel.java:617) at fiji.plugin.trackmate.visualization.hyperstack.TrackOverlay.drawOverlay(TrackOverlay.java:103)
In my model.update() function I do ask it to clear the tracks and notify the listener with this code snippet:
`model.beginUpdate();
//Some calls
model.clearTracks(true);
model.setTracks(graph, true);
logger.log( "New tracks: " + model.getTrackModel().nTracks(false));
model.endUpdate();`
Any idea on how to avoid this exception?