Community
Participate
Working Groups
Created attachment 281466 [details] ArrayIndexOutOfBoundsException in StructuredViewer.notifyFilteredOut Get the following exception (see also attachment): java.lang.ArrayIndexOutOfBoundsException: 4 at org.eclipse.jface.viewers.StructuredViewer.notifyFilteredOut(StructuredViewer.java:870) Steps to reproduce it: 1. In the Project Explorer/Model Explorer filter type something 2. Do some hide/expand on the displayed tree structure (of an existing project) 3. Click on the - button (uncollapse) 4. Click on the arrow near the project to expand the project --> ArrayIndexOutOfBoundsException triggered in StructuredViewer.notifyFilteredOut Reproduced with: eclipse modeling-2019-12 R
New Gerrit change created: https://git.eclipse.org/r/155740
(In reply to Georgiana Ecobici from comment #0) > Created attachment 281466 [details] > ArrayIndexOutOfBoundsException in StructuredViewer.notifyFilteredOut > > Get the following exception (see also attachment): > java.lang.ArrayIndexOutOfBoundsException: 4 > at > org.eclipse.jface.viewers.StructuredViewer. > notifyFilteredOut(StructuredViewer.java:870) > > Steps to reproduce it: > 1. In the Project Explorer/Model Explorer filter type something Please provide exact steps. > 2. Do some hide/expand on the displayed tree structure (of an existing > project) Same here. > 3. Click on the - button (uncollapse) I don't see such button nowhere. > 4. Click on the arrow near the project to expand the project Which button, which project? I'm lost at this point. Is this a regression in 4.14?
Created attachment 281473 [details] How to reproduce issue I have attached a picture on how to reproduce it.
Created attachment 281485 [details] content of RawResult and filteredResult
(In reply to Georgiana Ecobici from comment #4) > Created attachment 281485 [details] > content of RawResult and filteredResult The issue here is not in the StructuredViewer, but in the ViewerFilter implementation that returns unknown elements. Looking at the Capella code [1], my first guess would be that it has a stale cache. Moving to Sirius for further investigation. [1] https://git.polarsys.org/r/plugins/gitiles/capella/capella/+/edab45b84493bad44f5b527a670e0c2aa5cc2561/core/plugins/org.polarsys.capella.core.platform.sirius.ui.navigator/src/org/polarsys/capella/core/platform/sirius/ui/navigator/view/CapellaCommonNavigator.java#126
Opened this bug to fix the stalled cache in Capella: https://bugs.eclipse.org/bugs/show_bug.cgi?id=559253
Moved to https://github.com/eclipse/capella/issues/1872