Issue 68052 - sorting data sometimes doesn't work Mac Intel
Summary: sorting data sometimes doesn't work Mac Intel
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.4
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: DevTools
Assignee: eric.bachard
QA Contact: issues@porting
URL:
Keywords:
: 69870 69981 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-08-01 21:39 UTC by bmonno
Modified: 2006-10-02 03:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
screen short sort tests (90.64 KB, image/png)
2006-09-25 03:42 UTC, sparcmoz
no flags Details
example spreadsheet (11.48 KB, application/vnd.oasis.opendocument.spreadsheet)
2006-09-25 03:43 UTC, sparcmoz
no flags Details
environment file (8.79 KB, text/plain)
2006-09-25 03:49 UTC, sparcmoz
no flags Details
cvs diff (8.23 KB, text/plain)
2006-09-25 03:51 UTC, sparcmoz
no flags Details
list of shared libraries used (678.82 KB, text/plain)
2006-09-25 04:20 UTC, sparcmoz
no flags Details
diff -u nm_maho.txt nm_jim.txt > nm.diff (688.01 KB, text/plain)
2006-09-27 10:17 UTC, sparcmoz
no flags Details
diff -u nm_maho2.txt nm_jim2.txt > nm2.diff (27.06 KB, text/plain)
2006-09-27 10:51 UTC, sparcmoz
no flags Details
diff of icu build logs (44.59 KB, text/plain)
2006-09-27 11:26 UTC, sparcmoz
no flags Details
same warnings for both builds (2.65 KB, text/plain)
2006-09-27 12:08 UTC, sparcmoz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmonno 2006-08-01 21:39:32 UTC
sorting a column with mixed data like A1, A2, A3, B1 ... or B/1, A/1, ... doesn't work. It seems to be a 
random result.
This only happens in the Macintosh-Intel-Version of OO, the PPC-Version and XP-Version (tested in 
Parallels) work fine.

I tested it with the most recent versions of NeoOffice and OpenOffice (Mac Mini Dual Core, OSX 10.4.7).
Comment 1 relacksd 2006-09-17 16:03:57 UTC
I, too, have confirmed that this is a real issue in the Mac OS X version of OOo
2.0.3 on Intel (I'm on Mac OS X 10.4.7/Intel). As the original poster indicated,
the bug happens with mixed data. I used the following data to confirm
(interestingly, this data is presented post-sort):

AD4
AE1
AE3
AE3
AE1
AE2
AE3
AJ5
AJ5

Furthermore, I also confirmed that the bug does not exist on the Linux/Intel
2.0.3 version (running on Ubuntu on the same machine under Parallels). It'd be
nice to see this issue's status changed from unconfirmed as putting the above
data into a spreadsheet and trying to sort it would confirm the problem in a
matter of seconds.
Comment 2 gercokees 2006-09-18 15:22:09 UTC
Confirmed, because two different users report the same issue.
Comment 3 frank 2006-09-19 13:49:24 UTC
Hi Eric,

please have a look at this one too.

Frank
Comment 4 sparcmoz 2006-09-22 11:38:10 UTC
please provide some details of the build version, and URL where it can be down loaded.
Comment 5 sparcmoz 2006-09-22 12:22:53 UTC
I would like to try and re-produce this when the version and origin are known - it would also be useful to 
attach a file containing an example - meanwhile I cannot see this problem in my own build m183
Comment 6 relacksd 2006-09-23 22:58:49 UTC
Viewing the Help->About OpenOffice.org window yields the following information:

680m7 (Build:9044)

The version number is listed as 2.0.3 and it's the Intel build for Mac OS X
under X11 that is (was until recently?) available from the
porting.openoffice.org Web site.

The small amount of data in my original port entered into a spreadsheet will
demonstrate the problem as soon as a sort of it is attempted, at least on this
build on this platform.
Comment 7 sparcmoz 2006-09-24 02:48:11 UTC
I can consistently reproduce the problem as reported in 2.0.3 maho 680m7(9044) and again in 2.0.4 
maho build 680m4(9070) but not seen in my own build of m183.

The simplest case I could make is in two cells, enter text values such as A1 with A2 below, select the range 
and go to the sort dialog - in the options tab make sure to un-check the "Range contains column labels". 
Each time the same data is sorted again, the sequence is reversed.
Comment 8 sparcmoz 2006-09-25 03:35:04 UTC
This problem is NOT seen in my own build on Mac OSX Intel OOD680_m4 Build 9070.
(a) config.parms: jim-watsons-computer:~/vanilla/config_office jim$ cat *rms
--with-gnu-cp=/sw/bin/cp --enable-fontconfig --with-jdk-home=/System/Library/Frameworks/
JavaVM.framework/Home/ --with-x

(b) cvs diff attached, env file attached

(c) Xcode 2.4 IDE 759.0 Core 757.0 ToolSupport 733.0

(d) jim-watsons-computer:~/vanilla/config_office jim$ gcc -v      
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking -enable-
werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-
transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-
slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --
program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)

(e) example file and screenshot attached

Comment 9 sparcmoz 2006-09-25 03:42:11 UTC
Created attachment 39341 [details]
screen short sort tests
Comment 10 sparcmoz 2006-09-25 03:43:03 UTC
Created attachment 39342 [details]
example spreadsheet
Comment 11 sparcmoz 2006-09-25 03:49:50 UTC
Created attachment 39343 [details]
environment file
Comment 12 sparcmoz 2006-09-25 03:51:27 UTC
Created attachment 39344 [details]
cvs diff
Comment 13 sparcmoz 2006-09-25 03:56:59 UTC
What else is different? I did not disable gtk, therefore to build vcl i had to include /sw/lib in the SOLARLIB 
before /usr/lib thus: 
export SOLARLIB=' -L/Users/jim/vanilla/solver/680/unxmacxi.pro/lib -L/sw/lib -L/usr/lib -L/usr/
X11R6/lib'
Comment 14 sparcmoz 2006-09-25 04:20:52 UTC
Created attachment 39345 [details]
list of shared libraries used
Comment 15 maho.nakata 2006-09-25 05:38:05 UTC
okay I'll investigate this on this weekend.
Sorry for delay...
Comment 16 eric.bachard 2006-09-26 18:20:28 UTC
*** Issue 69870 has been marked as a duplicate of this issue. ***
Comment 17 eric.bachard 2006-09-26 22:24:17 UTC
ericb->maho

Eike Rathke proposed to rebuild not using system ICU, and see if the bug is still here.

-> maybe an i18npool issue. 
Comment 18 sparcmoz 2006-09-26 23:58:18 UTC
If I copy libicui18n.dylib.26.0 from my build to maho build, then the bug is removed in maho build. 
If I copy that file from maho build into my own build, then the bug is seen in my build.
I do not use --with-system for any libs. 
Comment 19 maho.nakata 2006-09-27 09:23:26 UTC
I'm using Xcode 2.2.1 :) and I suspect that it is Xcode's bug.
How do you think? anyway I'll update Xcode for next releases.
Comment 20 eric.bachard 2006-09-27 09:33:17 UTC
Maho,

I use XCode 2.2 and I got the same bug. IMHO, one of the system libs is simply buggy.

If ever I can find the time, I'll build today (or this week sure) m185 using internal stuff (nothing system).

Stay tuned.
Comment 21 sparcmoz 2006-09-27 10:17:13 UTC
Created attachment 39390 [details]
diff -u nm_maho.txt nm_jim.txt > nm.diff
Comment 22 sparcmoz 2006-09-27 10:51:43 UTC
Created attachment 39392 [details]
diff -u nm_maho2.txt nm_jim2.txt > nm2.diff
Comment 23 sparcmoz 2006-09-27 11:26:07 UTC
Created attachment 39393 [details]
diff of icu build logs
Comment 24 sparcmoz 2006-09-27 12:08:23 UTC
Created attachment 39394 [details]
same warnings for both builds
Comment 25 maho.nakata 2006-09-29 03:26:35 UTC
I switched from Xcode 2.2 to Xcode 2.4,
the problem seems to disapper. So I think this is a bug
of Xcode...

BTW: I'll provide RC3 builds with Xcode 2.4. Please verify this
issue with newer builds.

thanks,
 maho
Comment 26 eric.bachard 2006-09-29 14:57:57 UTC
Hi Maho,

>Le 29 sept. 06 à 04:26, maho@openoffice.org a écrit :
>
>------- Additional comments from maho@openoffice.org Thu Sep 28 19:26:35 -0700 2006 -------
>I switched from Xcode 2.2 to Xcode 2.4,

I'm still using XCode 2.2

>the problem seems to disapper.

Ufff...  :-/

>So I think this is a bug
>of Xcode...

I know Stephan Bergmann  and Tino Rachui are working on  a strange issue concerning strip : too much 
symbols are stripped with Intel version of strip.
Pavel found a difference between bad and good libicu18n concerning exceptions ...
Jim Watson is doing an important work too for the SDK, and everything seems to design XCode as 
faulty.

...the list is growing :-/

If this is confirmed, I invite all developers to switch for XCode2.4
FYI, it should be possible to build OpenOffice.org using XCode2.4 (inside XCode, yes)

>BTW: I'll provide RC3 builds with Xcode 2.4. Please verify this issue with newer builds.

I'd suggest you ask for a verification on QA list too. this way, all testers will confirm.
Time to download XCode2.4 ...
Comment 27 frank 2006-09-29 15:15:24 UTC
*** Issue 69981 has been marked as a duplicate of this issue. ***
Comment 28 sparcmoz 2006-10-01 11:55:17 UTC
The sort problem is not seen in my tests using maho 680_m5 Build 9073 packaged as 
OOo_2.0.4rc3_060930_MacOSXIntel_en-US.dmg
Comment 29 bmonno 2006-10-02 01:45:37 UTC
With OOo_2.0.4rc3_060930_MacOSXIntel_de.dmg I downloaded yesterday the sort problem is gone. I 
tested the sort with some little spreadsheets and with a greater one where I detected it.

Thanks
Comment 30 sparcmoz 2006-10-02 03:19:00 UTC
This problem on Mac Intel is fixed by building 2.0.4rc3 with Xcode 2.4.
Comment 31 sparcmoz 2006-10-02 03:19:27 UTC
Closed
Comment 32 maho.nakata 2006-10-02 03:30:14 UTC
thanks all!