Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Summary Row numbers appear to change 'randomly'
Summary Row numbers appear to change 'randomly' [message #1241320] Fri, 07 February 2014 20:06 Go to next message
Suraj Shinde is currently offline Suraj ShindeFriend
Messages: 2
Registered: February 2014
Junior Member
Summary Row in the nattable produces random numbers whenever any event on nattable triggers recalculation of the summary.

Simmilar issue had been reported on diffrent site

SummaryRowLayer uses non-UI threads to calculate the summary. But GlazedListsDataProvider is not thread-safe (it uses last row index and object fields) which means not only are the calculated numbers are wrong, but also the numbers in the main table (the threads interfere with each other). This is a major problem that took us a while to track down.

Please suggest if this has been resolved or been reported as bug?
Re: Summary Row numbers appear to change 'randomly' [message #1241343 is a reply to message #1241320] Fri, 07 February 2014 20:56 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Quote:
Summary Row in the nattable produces random numbers whenever any event on nattable triggers recalculation of the summary.


I have never heard of such an issue before. It has been a while that I looked into the "different site". I only know about this issue that has been solved a while ago:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388957

Which version of NatTable do you use? How can the issue be reproduced?

To answer the questions that where raised in the other site too:

Quote:
SummaryRowLayer uses non-UI threads to calculate the summary


Yes of course. That is called background processing. Otherwise the calculation of the summary values would freeze the UI.

Quote:
GlazedListsDataProvider is not thread-safe (it uses last row index and object fields)


To be honest, I'm not sure about the GlazedListsDataProvider. Have you checked what happens if you are not using it? Does it have negative impact on the performance?

Quote:
SummaryRowLayer creates threads too regularly.


This was fixed in the current development base and will be released with 1.1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=425023

Quote:
SummationSummaryProvider converts numbers to floats. It should use BigDecimal or double at least.


It is just a default implementation and you can implement a custom one. But ok, for the default maybe another type is better. Open a ticket for this.
Re: Summary Row numbers appear to change 'randomly' [message #1243780 is a reply to message #1241343] Tue, 11 February 2014 12:32 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
For the SummationSummaryProvider I created a ticket and fixed it right away: https://bugs.eclipse.org/bugs/show_bug.cgi?id=427888

As I still don't know what is meant by "produces random numbers whenever any event on nattable triggers recalculation of the summary", which events you are talking in detail of for example, maybe this forum topic helps: http://www.eclipse.org/forums/index.php/t/647161/

Maybe it is about filtering, trees or something like that, that causes the "random" values. In that case the values are not random, which is explained in my answer there.
Previous Topic:SummaryRow numbers change 'randomly'
Next Topic:Issue with Tree grid
Goto Forum:
  


Current Time: Thu Mar 28 23:31:42 GMT 2024

Powered by FUDForum. Page generated in 0.01955 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top