Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track display reset after action #219

Open
kapoorlab opened this issue May 12, 2022 · 2 comments
Open

Track display reset after action #219

kapoorlab opened this issue May 12, 2022 · 2 comments
Assignees
Labels
investigate Assignee should verify the issue and try to reproduce it.

Comments

@kapoorlab
Copy link

kapoorlab commented May 12, 2022

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?

@tinevez tinevez self-assigned this May 12, 2022
@tinevez tinevez added the investigate Assignee should verify the issue and try to reproduce it. label May 12, 2022
@kapoorlab
Copy link
Author

This only occurs to me if I have track display on while running the extension. If I turn the track display off then I am able to avoid this error.

@kapoorlab
Copy link
Author

The issue is not gone, I have uploaded the Copenhagen challenge dataset that includes the oneat detections in a csv file titled CleanDetections, if you use that with the TrackMate-oneat action it will throw the concurrent modification error as above, that disallows me to select a spot in the hyperstack displayer by not making it turn green. https://zenodo.org/record/6569672#.YoknIXZBxEY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Assignee should verify the issue and try to reproduce it.
Projects
None yet
Development

No branches or pull requests

2 participants