Skip to content

Track display reset after action #219

@kapoorlab

Description

@kapoorlab

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?

Metadata

Metadata

Assignees

Labels

investigateAssignee should verify the issue and try to reproduce it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions