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
Large selection #2469
Large selection #2469
Conversation
The method was invoked twice. This means that the annotation were loaded twice.
When selected the node (displayed in tree), the annotations were loaded twice.
This could lead to out of memory exception due to the number of call.
This still causes issues. Tested on Ubuntu. Followed these steps:
Insight hangs. I attached a |
|
Yes, I tested again and waited a minute before doing each select/deselect. From what I see, the hang happens when I deselect a large selection by using the central panel - deselecting in the tree doesn't upset Insight. |
@bpindelski: thanks for info |
Issue occurred when deselecting from central panel using the table view.
@bpindelski: The last commit should fix the issue. |
removeSelectedDisplay(previouslySelectedDisplay); | ||
Colors colors = Colors.getInstance(); | ||
for (final ImageDisplay node : previouslySelectedDisplays) { | ||
node.setHighlight(colors.getDeselectedHighLight(node)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing indentation.
I did actually glance it over previously but, apart from the minor thought that the |
@bpindelski: unless I totally reformat the code, we will have the issue with the indentation. (i.e. tabs vs space). I can do it when the review is complete otherwise it is very difficult to review it. |
@jburel The indentation is a "nice-to-have", but not a blocker. |
I would like to clean it, just due to the number of changes I was holding off. Will do it when we are all happy with the changes. |
Looks good to me, too. |
Next step? |
I will push the |
@mtbc: replace map by multimap. no more changes to come. |
} catch (Exception e) { | ||
UserNotifier un = | ||
TreeViewerAgent.getRegistry().getUserNotifier(); | ||
un.notifyInfo("Image Not valid", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and below, weird to capitalize "not" but not "valid"
Seems to actually work just fine, no actual blockers to merging. |
} | ||
} | ||
Map<Long, Collection<AnnotationData>> filesetMap = | ||
new HashMap<Long, Collection<AnnotationData>>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move the possibly wasted new
to an else
, can make the variable final
to make sure it does get assigned
For the avoidance of doubt, this is already okay to merge, it's a clear improvement that should be in 5.0.2. |
@mtbc: as indicated previously, I won't fix indent this makes the changes difficult to review. I can do that when we are happy with the changes |
I tried to comment only on indent that was within a larger block of green added lines. Still, latest commits look good, this PR remains good to merge. |
Thanks, guys. |
--rebased-to #2512 |
Review selection and loading of annotations.
Few methods were loaded twice and call not optimised.
see https://trac.openmicroscopy.org.uk/ome/ticket/12086
To test: