[ooo-build] [hardy] Speadsheet has problems in hardy

Bug #209474 reported by Jim Hutchinson
8
Affects Status Importance Assigned to Milestone
OpenOffice
Fix Released
Unknown
openoffice.org (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: openoffice.org2

I mistakenly submitted this as question 28478. I'm adding it here as well since I can include the file.

Sorry, but I'm not sure how to explain this problem. In short, the spreadsheet is not working correctly. I have a sheet with data on dice rolls for a project my daughter is working on. Column B and C, for example contain data on dice rolls. Column D is the sum of these two dice rolls using the sum function. She needed to count the frequencies of each sum (2, 3, 4...12). Using the frequency function this worked fine. After upgrading to hardy, however, the data is wrong.

In the attached file, columns P and Q contain the frequencies of the sums in columns D and G. When opened with Open Office in Hardy, the values in these columns are not the same as those generated using Open Office in Windows (sorry, I had to test somewhere). For comparison, the values in cells P3-P13 should be:

2, 16, 31, 24, 30, 50, 33, 29, 16, 13, 8

For cells Q3-Q13:

5, 11, 24, 17, 35, 36, 33, 39, 32, 13, 7

When I open this file in Hardy I get the following (note that these seem to change with each save and open)

P3-P13: 30, 16, 31, 24, 33, 50, 2, 29, 16, 13, 8
Q3-Q13: 33, 11, 24, 17, 36, 35, 5, 39, 32, 13, 7

I hope someone can confirm this as it's very odd and very frustrating. I have confirmed similar behavior on two separate installs of Hardy.

Revision history for this message
Jim Hutchinson (jphutch) wrote :
description: updated
Revision history for this message
Jim Hutchinson (jphutch) wrote :

I'm adding a bit more info. Attached are two screenshots of frequency data sent to me. One was opened right after the other. Notice that the data is not the same. Both were opened by clicking on the download link in my email and choosing to open with OO.o. They opened in read only form. When the files was opened in gutsy this problem did not manifest. Only in Hardy and on two different machines.

Revision history for this message
Jim Hutchinson (jphutch) wrote :

Here is the second screenshot. Guess I can't add two to one post.

Revision history for this message
Jim Hutchinson (jphutch) wrote :

Okay, one last bit of info on this. It was just pointed out to me that values are not changing - they are being moved around. Still, not normal but maybe a bit of info that will help explain what is happening and how to fix it.

Revision history for this message
Ralph Janke (txwikinger) wrote :

I can confirm the correct results in gutsy and and wrong results in hardy (OO 2.4.0). However, P3-P13 has wrong but different results as described (13, 16, 31, 24, 29, 50, 33, 30, 16, 2, 8).

Changed in openoffice.org:
status: New → Confirmed
importance: Undecided → Medium
Changed in openoffice:
status: Unknown → New
Revision history for this message
Jim Hutchinson (jphutch) wrote :

Ralph, That is part of the problem. Each time it's opened the values have moved. Your results will be different from mine and different from your own the next time you open it.

For what it's worth, I did file this upstream.

http://www.openoffice.org/issues/show_bug.cgi?id=87954

Revision history for this message
Michael Devenish (mdevenish) wrote : Re: [Upstream] [hardy] Speadsheet has problems in hardy

This bug only seems to occur in the ubuntu build of OpenOffice.org 2.4.0. I've installed the Sun build of 2.4.0 (downloaded from openoffice.org) in Hardy beta and the values are displayed correctly. The results are also correct using OO.o 2.4.0 in windows xp.

I've installed the latest updates to hardy beta, which included updates to OO.o (ubuntu build), and the bug is still present.

Might be worth trying another array formula to see if this has similar issues or if its just the frequency function. I'll give this a go, but I don't have much experience with array formulas.

Revision history for this message
Jim Hutchinson (jphutch) wrote :

Mike, that is my experience too. I've used it in OSX (well it's NeoOffice there), windows and Ubuntu Gutsy and Hardy and only in Hardy do I see it. I don't know much about spreadsheets so it was just happenstance that I found this and recognized that something was wrong.

Revision history for this message
Michael Devenish (mdevenish) wrote :

I've tried some other array formulas and there doesn't seem to be a problem with them.

From a quick look on openoffice.org (OOo), I think this bug is related to OOo issue 8946,

http://www.openoffice.org/issues/show_bug.cgi?id=8946

which had some changes to the frequency function at the end of last year and in February 2008 to allow for the values in the classes range not being in ascending order. The following comment was made by er on 6th Feb 2008:

"The results of FREQUENCY() were somewhat arbitrary because when shuffling the
sort array prior to invoking QuickSort the index order didn't follow. Fixed in

sc/source/core/tool/interpr3.cxx 1.20.30.8"

Strangely though, the "FREQUENCY_test.ods" file attached to OOo issue 8946 appears to work (with results in the correct order) in the OOo 2.4-ubuntu build but the OOo 2.4-sun build gives incorrect results when the values in the classes are not in ascending order.

Revision history for this message
Michael Devenish (mdevenish) wrote :

I should also add that this bug of frequency formula results being displayed in a random order also occurs when using the example from the openoffice.org help file, see attached. As its only a small file, sometimes the results are displayed correctly but sometimes its in an apparently random order.

Changed in openoffice:
status: New → Invalid
Changed in openoffice:
status: Unknown → Fix Released
Revision history for this message
Jim Hutchinson (jphutch) wrote :

According to the OO.o site (http://www.openoffice.org/issues/show_bug.cgi?id=88477) this bug has been fixed and only affected ooo-build trunk. Has this fix made it's way to Hardy? I'm guessing no as I have an updated hardy and it is most definitely still a problem. This really undermines ones faith in this product. It's hard to do calculations and have confidence in them knowing such issues exist.

Revision history for this message
Michael Devenish (mdevenish) wrote :

I've installed today's updates to hardy, which included openoffice.org 2.4.0-3ubuntu6, and the problem still exists.

Revision history for this message
Chris Cheney (ccheney) wrote :

This was fixed in ooo-build but was fixed too late for it to make it into Hardy. So it will be fixed in Ubuntu 8.10.

Changed in openoffice.org:
status: Confirmed → In Progress
Revision history for this message
Jim Hutchinson (jphutch) wrote : Re: [ooo-build] [intrepid] Speadsheet has problems in hardy

Fair enough if it can't be in the hardy release, but why not add it to the updates that invariably come a week or so after release? This isn't a small error. Anyone using frequencies will get wrong results. We pretty much have blind faith in the calculating power of computers. This will cause problems for people and should be fixed as soon as possible.

Revision history for this message
Chris Cheney (ccheney) wrote :

Ok, I will mark it as 8.04.1 and see if the RM will allow the patch in.

Changed in openoffice.org:
milestone: none → ubuntu-8.04.1
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Martin Pitt (pitti)
Changed in openoffice.org:
status: New → Fix Committed
Steve Langasek (vorlon)
Changed in openoffice.org:
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
milestone: ubuntu-8.04.1 → none
Revision history for this message
Steve Langasek (vorlon) wrote :

Jim, can you confirm that the OpenOffice package in hardy-proposed fixes this problem as you saw it?

Chris Cheney (ccheney)
Changed in openoffice.org:
status: In Progress → Triaged
Revision history for this message
Jim Hutchinson (jphutch) wrote :

Steve, thanks for the info. I will check into it.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

I can confirm that the spreadsheet attached by Jim now gives the correct results with the OO version in -proposed.

Jim, Ralph: Please see my blog post on how to do hardy-proposed testing to test for yourself: http://blog.omma.net/?p=11

If you can confirm the fix we can push out the update!

Revision history for this message
Martin Pitt (pitti) wrote :

The hardy-proposed SRU was copied to intrepid some time ago.

Changed in openoffice.org:
status: Triaged → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in openoffice.org:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.