imagej2 icon indicating copy to clipboard operation
imagej2 copied to clipboard

Updater: "row index is bigger than sorter's row count"

Open cortig opened this issue 6 years ago • 4 comments

Every time I launch the updater in either Fiji or ImageJ (under macOS X with the Java 10.0.1 JDK) I get the following error in the Console: WARNING: row index is bigger than sorter's row count. Most likely this is a wrong sorter usage.

It doesn't seem to have much of an impact on the updater though.

cortig avatar May 18 '18 15:05 cortig

Thanks @cortig; I have noticed that error as well. Haven't had time to track down where it's coming from yet. Good to have an issue here as a reminder for later.

ctrueden avatar May 18 '18 20:05 ctrueden

I find this message in one of my projects as well, but only if I start the application in Java 9. I have tried to find the cause, but with no luck. As this doesn't appear in Java 8, I expect this to be a bug in Java 9.

uwemock avatar May 31 '18 12:05 uwemock

@uwemock Yeah, I had trouble finding anything initially as well.

I tried again, this time with the idea of searching the OpenJDK source code. Here is where the error message is generated.

It is probably the Swing UI of the ImageJ Updater where the bug lies. See here. It could be a bug in Java 9+ as @uwemock suggests, or it might be an issue with the data we feed into the TableRowSorter. Further investigation needed!

ctrueden avatar Jun 02 '18 11:06 ctrueden

Hello, I had same problem in my application after changing table data, solved it by adding : itemTable.getRowSorter().allRowsChanged()

turiot avatar Mar 06 '22 21:03 turiot