Issue 10876 - spell check crashes OOO
Summary: spell check crashes OOO
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: khendricks
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-01-22 23:11 UTC by biloti
Modified: 2008-05-17 23:03 UTC (History)
1 user (show)

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


Attachments
Some files from OpenOffice1.0.2/share/dict/ooo (92.81 KB, application/x-gzip)
2003-02-06 11:48 UTC, biloti
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description biloti 2003-01-22 23:11:54 UTC
I have installed the Brazilian Portuguese (pt_BR) dictionary to my fresh OOO 
1.0.2 installation through the OOodi (OpenOffice Dictionary Installer). (By 
the way, the the bug I will describe happens also if I installed the 
dictionary manually.) After that, I enabled the dictionary on OOO, following 
the steps indicated at http://ooodi.sourceforge.net/OOodi.html#AEN422 and also 
set the Brazilian Portuguese as the default language. After I restarted the 
OOO, I tried it out. I wrote something orthographicaly correct in portuguese 
and run the spellcheck. It worked properly. Then I wrote something incorrect 
and tried to run the spell check again, but it crashes the ooo. For example, 
try: "texto correto" (rightly spelled) and "texto coret" (wrongly spelled).
Comment 1 thomas.lange 2003-01-23 08:30:39 UTC
TL->MRU: Please check.
Comment 2 michael.ruess 2003-01-23 13:18:09 UTC
MRU: cannot reproduce the problem. Are the files installed correctly
by OOodi? I installed the files manually an what I did is: 
copied the pt_BR files from the OOo homepage to /OOO/share/dict. Also
in this directory I modified the "dictionary.lst by adding the line
"DICT pt BR pt_BR" to it. Then I 
Comment 3 executorelassus 2003-02-04 01:50:37 UTC
i have this same issue, though i use the English (USA) dictionary. i have it installed (as per the default installation) in /path-to-OOo/user/wordbook. when i try to check spelling (either through F7 or by right-clicking a word underlined by the auto-checker) i get (roughly) the following:

"an unrecoverable error has occurred. all documents have been saved, and can probably be recovered at program restart."

and then OOo closes. 

i just installed 1.0.2, after trying to de-install 1.0.1. there was something during the deinstall about being "unable to remove all files," but i deleted the program directory after that, so it shouldn't have caused a problem. i didn't have this problem with 1.0 or 1.0.1. the dictionaries are there, and listed under the Tools / Language Settings / Writing Aids settings. also, when i edit a dictionary (say, standard.dic) the auto-checker correctly does not underline the added words. so i know the program is calling the dictionary correctly. it just crashes when it tries to check spelling.

any ideas? 

EE
Comment 4 khendricks 2003-02-04 13:14:47 UTC
Hi,   
  
This appears to be a lingucomponent problem so I am re-assigning  
ownership to myself if that is okay with everyone.  
   
So after reading the reports I have two questions:   
   
1.  The en_US dictioanry is already installed in OOo   
Why would you install it again?  It does work and has been tested? 
Please do a full clean re-install of OOo and verify that 
spellchecking in en_US works by typing some text in OOo (make sure 
you are using a font that actually exists on your system!) and 
invokeing the spellchecker.  This should work.   
   
2. As for the Brazilian Dictionry, if you improperly install a   
dictionary you can make OOo crash or if the dictioanry .aff file is 
bad, it can cause a crash.   
   
So let's go through in great detail the steps you use to install the   
dictionary.  
  
Here they are:  
  
1. start with a fresh install of OOo 1.0.2 (do not install over any  
old installations)  
  
2. unpack the dictioanry zip files in a temporariy location  
  
3. copy the brazillian pt_BR.aff and pt_BR.dic to the installed  
location into OpenOffice.org1.0.2/share/dict/ooo/  
  
4. change directory to OpenOffice.org1.0.2/share/dict/ooo/  
   and edit the dictionary.lst file with any text editor (emacs,   
   vi, etc)  
  
5. add the following line (as instructed below) to the  
dictionary.lst file  
  
DICT pt BR pt_BR  
  
6. Exit out of OpenOffice.org and any Quickstarter and start up OOo  
(that will force it to re-read the dictionary.lst file)  
  
7. The last step is to tell OOo that you actually want to use the  
spellchecker for that language.  
  
From the Writer menu go to:  
  
Tools->Options->LanguageSettings->WritingAids and hit the "Edit"  
button.  Use the pulldonw menu to select the Brazillain locale you  
want, and check the OpenOffice.org MySpell Spellchecker box.  
  
Then you should be good to go.  
  
  
All of this is documented on the  
http://whiteboard.openoffice.org/lingucomponent/download_dictionary.html  
site.  
  
 
If it still crashes, then perhaps the pt_BR.html dictioanry itself 
is corrupt.  I will test it on my own box to see if I can detect any 
issues with it 
 
 
Please follow these instructions and report back what happens so 
that we can narrow this one down. 
 
Thanks, 
 
Kevin 
 
Comment 5 khendricks 2003-02-05 14:29:21 UTC
Hi,    
   
I recieved your e-mail reply but for a full history it would be nice   
if you posted all corespondence via the Issue so that it is archived   
and searchable and ...   
    
Okay I downloaded the pt_BR.zip from the   http://dict.progbits.com  
and manually installed it in a fresh OOo 1.0.2 as I described above  
and then set the default document language to Portuguese (Brazil)  
and then entered the test string:  
  
"texto correto" (rightly spelled) and "texto coret" 
 
And then invoked spell checking and it worked perfectly (it 
identified all of the english words and the word "coret" as 
incorrect and offered suggestions. 
 
I then grabbed a large word doc with equations and graphs and things 
and selected everything and changed its language to Portuguese 
(Brazil) and then turned on AutoSpellcheck and every word was 
underlined. 
 
Nothing ever crashed in any way. 
 
So then passed the pt_BR.aff and pt_BT.dic through a strict affix 
file syntax checker I am developing and it passed with  
flying colors. 
 
So I simply can not recreate your problem report at all. 
 
Can you answer a few other things for me: 
 
1. Does spellchecking en_US cause any problems for you? 
 
2. Are you using a localized Portuguese build or the standard en_US 
build of OpenOffice.org 1.0.2? 
 
3.  What Linux distrobutiona re you running including glibc version 
if at all possible? 
 
Thanks, 
 
Kevin 
 
Comment 6 biloti 2003-02-06 11:48:07 UTC
Created attachment 4587 [details]
Some files from OpenOffice1.0.2/share/dict/ooo
Comment 7 biloti 2003-02-06 11:49:23 UTC
As attachment is the compressed file containing the files you have 
requested.
Comment 8 khendricks 2003-02-06 14:40:00 UTC
Hi,

Thanks for posting those files.

I examined them closely and noticed that have not been installed by root?
Did you do a setup -net to install OpenOffice.org or something else?

Are you sure the files we are discussing are all in 

PLACE_YOU_INSTALLED_OPENOFFICE_TO/OpenOffice.org1.0.2/share/dict/ooo/

I would expect all of the files there to be owned by root if you did a proper setup -net installations (or used the install.sh script?

The list of files shows that they are all owned by yourself and not root.

Perhaps you confused share/dict/ooo/ with usr/wordbook/?

Thanks,

Kevin
Comment 9 executorelassus 2003-02-25 00:56:22 UTC
mr. hendricks-

i followed your instructions, and i still get the crashing from using the spellchecker. the Writing Aids option shows all the dictionaries i enabled from the dictionary.lst file, so i know that it's reading that file properly. but the spellchecker still crashes, as does right-clicking a mis-spelled word.

shall i attach any files?

thanks,

EE
Comment 10 khendricks 2003-02-25 01:02:50 UTC
Hi, 
 
No, please search for multiple copies of the file named "dictionary.lst". 
 
Look in OpenOffice.org1.0.2/share/dict/ooo/ and OpenOffice.org1.0.2/user/wordbook/ 
and in other places as well. 
 
If you have multiple copies, we really need to remove the ones in user/wordbook/ and 
make sure things start working normnally again. 
 
Kevin 
 
Comment 11 executorelassus 2003-02-25 01:18:06 UTC
mr. hendricks-

i had /several/ copies of dictionary.lst, and deleted all but the main one (/.../share/dict/ooo/dict...). spellcheck no longer crashes, at least near as i can tell. i'll keep trying to crash it with weird words and long docs, but it looks stable for me.

thanks,

EE
Comment 12 khendricks 2003-02-25 01:43:44 UTC
Hi, 
 
The other older copies probably came from earlier OOo versions and the key issue here is 
that the lingucomponent pieces (spellchecker, etc) are still changing (trying to catch up 
to the rest of OOo) and some incompatible changes were needed to keep progress 
moving. 
 
So it is probably a good idea to remove all old dictionaries and things when upgrading to 
make sure all goes well. 
 
Kevin 
 
Comment 13 khendricks 2003-03-24 19:12:10 UTC
Hi, 
 
Resolving this as "works for me" 
 
Kevin 
 
Comment 14 ace_dent 2008-05-17 21:01:39 UTC
The Issue you raised has been marked as 'Resolved' and not updated within the
last 1 year+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 15 ace_dent 2008-05-17 23:03:30 UTC
As per previous posting: Verified -> Closed.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew