Apache OpenOffice (AOO) Bugzilla – Issue 119075
Crashes when right clicked to call context menu while a mixture of alphabets and Japanese texts are selected
Last modified: 2012-07-17 05:51:13 UTC
OOo crashes when right clicked to call context menu while a mixture of alphabets and Japanese texts are selected. I will attach a sample bugdoc created on OO 3.3.0 How to reproduce: 1:Open Bugdoc.ods 2:Select cell A1 and press F2 key to go into that cell 3:Press Ctrl+A to select all the text 4:Right click to call context menu 5:Calc Crashes As far as I can tell, the alphabets must come at the beginning of the line. And quite a number of Japanese text must also be selected at the same time. But no complex formatting or functions are needed to reproduce as you can see from the bugdoc. Work around: * Do not select all of the texts... It seems that the number of texts being selected matters. Select one less letter at the end of the line in the attached file then it works fine. * Disable "Hunspell SpellChecker" To do this, go to Tools - Options - Language Settings - Writing Aids - Uncheck "Hunspell SpellChecker" - Press OK, and the problem seems to go away. It also happens on Impress and Writer. I suspect that there is some sort of a conflict with "Hunspell Spellchecker" caused by a function called "Synonyms" within context menu that was introduced in OO 3.3.0. I have tested this on OO 3.2.1 and could not reproduce the bug. Anyway, it is only an assumption after all. So, please correct me if I'm wrong. And let me know if more information are needed. I will do my best to meet what is required. Regards,
Created attachment 77328 [details] Attached sample doc
AOO3.4.0 cannot reproduce this bug since there is no "Synonyms" within context menu. I'm not too sure if this change was intentional, but that seems to have solved the problem.
I can reproduce following the user's steps. AOO341m1 Build:9591 revision 1359641
Just downloaded the 341 snapshot 1359641(Japanese version) but cannot reproduce it. There is no "Synonyms" within the context menu, and the "Hunspell Spellchecker" isn't there just like 340. (Go to Tools - Options - Language Settings - Writing Aids, and notice the list of "Available language modules" is empty.) Perhaps someone removed the "Hunspell Spellchecker" from Japanese version? What language of 341 have you used? This is the URL for where I got the Japanese version of snapshot from people.apache.org/~jsc/developer-snapshots/r1359641/windows/Apache_OpenOffice_incubating_3.4.1_Win_x86_install_ja.exe
Never mind. I've downloaded and installed English version of 341 snapshot. The bug is reproducible, "Synonyms" is there and the "Hunspell Spellchecker" is there. It does look like the "Hunspell Spellchecker"(or "Available language modules itself?) have been removed for Japanese version. By this, the crash can be avoided, however, we now face another problem of "Spellcheck" not working at all. I suggest keeping the "Hunspell Spellchecker", but remove the "Synonyms" from the context menu for the time being until the root cause is solved. I believe it is a reasonable solution. (For now at least.)
Downloaded English version of 340 release just to clarify. "Available language modules" weren't empty, and "Hunspell Spellchecker" was there in the options. But no "Synonyms" within context menu for all of Calc, Writer and Impress. Hence no crash. Now, went back to Japanese version of 340 release. And confirmed "Available language modules" empty. Hence, no crash. But no spellcheck. I don't know why Hunspell was removed from the Japanese version only when how the English version of 340 implemented would have worked well. It didn't crash, and it could run a spellcheck. Some users may want this "Synonyms" function, so would it be better if there is an option to enable/disable this?(Default set to "OFF")
(In reply to comment #6) > Downloaded English version of 340 release just to clarify. > > "Available language modules" weren't empty, and "Hunspell Spellchecker" > was there in the options. But no "Synonyms" within context menu for all > of Calc, Writer and Impress. Hence no crash. There is a known bug with English dictionary extensions. You have to remove/disable all of them but the one that says "English spelling and hyphenation dictionaries and thesaurus - 2010.03.16" in order to have the spell checker back. > Now, went back to Japanese version of 340 release. > And confirmed "Available language modules" empty. > Hence, no crash. But no spellcheck. > > I don't know why Hunspell was removed from the Japanese version only Nothing has been removed. You need to install a Japanese dictionary. Dictionaries are installed as extensions, go to the menu Tools - Extension Manager. I guess you don't have a Japanese Thesaurus dictionary installed. > when how the English version of 340 implemented would have worked well. > It didn't crash, and it could run a spellcheck. > > Some users may want this "Synonyms" function, so would it be better if > there is an option to enable/disable this?(Default set to "OFF") Install a dictionary extension for the language you want the Thesaurus to work.
@Ariel >There is a known bug with English dictionary extensions. I wasn't aware of this. Thank you. But another thing to note that all my testing was done with clean and fresh install of OO. Meaning, uninstall OO - delete all the user profiles and program files and then install w/o any extensions. Does it apply to this case as well? >Nothing has been removed. Are you sure? Because I had Hunspell Spellchecker and other "Available language modules" w/o installing an extension up until OOo 330 and the latest version of LO. I got the "Empty Available language modules" from AOO 340 JP. I tried installing the JP language pack but I still get the empty Language modules. (It's a clean install as stated above.) I will attach screen shots of the options dialog box for you to see. >Install a dictionary extension for the language you want the Thesaurus >to work. There's no Japanese dictionary available at http://extensions.services.openoffice.org/en/dictionaries What other choices do I have?
Created attachment 78654 [details] Clean install of 341 snapshot (JP)
Created attachment 78655 [details] Clean install of 341 snapshot (EN)
Created attachment 78656 [details] Clean install of 330 release (JP)
(In reply to comment #8) > But another thing to note that all my testing was done with clean and > fresh install of OO. Meaning, uninstall OO - delete all the user > profiles and program files and then install w/o any extensions. > > Does it apply to this case as well? Yes. The Dictionary Extensions come with AOO, and are installed by default (together with other two extensions: "Presentation Minimizer" and "Presenter Console"; you can check this in the Tools - Extension Manager...). If you remove your user profile, these extensions will be installed in the new profile. > >Nothing has been removed. > Are you sure? Because I had Hunspell Spellchecker and other "Available > language modules" w/o installing an extension up until OOo 330 and the > latest version of LO. If you never installed any dictionary extension it was because the dictionary came with the installation (the full install set or the language pack). > I got the "Empty Available language modules" from AOO 340 JP. I tried > installing the JP language pack but I still get the empty Language > modules. (It's a clean install as stated above.) The language packs don't come with dictionaries now (in OOo times they did), may be this changes in the future (I'm not aware a feature request for this, you can submit a new bug for this). > I will attach screen shots of the options dialog box for you to see. > > >Install a dictionary extension for the language you want the Thesaurus > >to work. > There's no Japanese dictionary available at > http://extensions.services.openoffice.org/en/dictionaries > > What other choices do I have? You have to install dictionary extensions. Language packs don't come with them. And AFAIK the JP full install set does not come with dictionaries (and I don't know if there is an issue for it). Regarding your screen shots, the important thing to look is the Extensions Manager, dictionaries are installed as extensions since a long time ago http://wiki.services.openoffice.org/wiki/Dictionaries Users just didn't realize it because the extensions came with the install set/language pack.
@Ariel So it was a change in contents of installation file and not a bug. That cleared my mind on not having the Available language modules on newly installed AOO JP. As for my original report, I assume that the crash is reproducible on JP version of AOO as well if I install a dictionary(although I have not tried it yet.) But the official installation file of JP version do not come with a dictionary. And if a user installs it, disabling the Hunspell would work around it. So I suppose I can live with that for now. Sorry to have kept you off the track for a bit. Thank you kindly. Regards,