Closed
Bug 366255
Opened 19 years ago
Closed 17 years ago
Exception thrown in nsIEditor.inlineSpellChecker when opening/closing the compose window
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
Thunderbird2.0
People
(Reporter: LpSolit, Assigned: mscott)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Thunderbird version 2 beta 1 (20070105)
Everytime I click the "Compose new message" icon in the toolbar, I get the following error:
Erreur : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIEditor.inlineSpellChecker]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://editor/content/editorInlineSpellCheck.js :: anonymous :: line 54" data: no]
Fichier source : chrome://editor/content/editorInlineSpellCheck.js
Ligne : 54
The corresponding code is:
var InlineSpellChecker =
{
editor : null,
inlineSpellChecker: null,
Init : function (editor, enable)
{
this.editor = editor;
this.inlineSpellChecker = editor.inlineSpellChecker; # This is line 54!
this.editor.QueryInterface(Components.interfaces.nsIEditor_MOZILLA_1_8_BRANCH).setSpellcheckUserOverride(enable);
},
The same error is thrown when closing the compose window.
Comment 1•19 years ago
|
||
Does this also happen if you run Thunderbird in Safe Mode?
![]() |
Reporter | |
Comment 2•19 years ago
|
||
(In reply to comment #1)
> Does this also happen if you run Thunderbird in Safe Mode?
>
Yes. I renamed my .thunderbird/ directory, then started thunderbird in safe mode, configured one account (a POP3 account, if that helps), and when clicking the "Compose New Message" icon, I get this error. I also get this error if I go to File > New > Message and also if I type Ctrl+N.
Tomcat told me he couldn't reproduce on FC6, using GNOME. I'm using KDE 3.5.4.
Comment 3•19 years ago
|
||
(In reply to comment #2)
> Tomcat told me he couldn't reproduce on FC6, using GNOME. I'm using KDE 3.5.4.
What happens if you deactivate the spellchecker preferences (one or both) inside the options?
![]() |
Reporter | |
Comment 4•19 years ago
|
||
(In reply to comment #3)
> What happens if you deactivate the spellchecker preferences (one or both)
> inside the options?
They are both deactivated, already.
Comment 5•19 years ago
|
||
(In reply to comment #4)
> > What happens if you deactivate the spellchecker preferences (one or both)
> > inside the options?
>
> They are both deactivated, already.
So, activate them please. Does the error still occurs?
After having a look at nsEditor.cpp the exception will be thrown here:
http://lxr.mozilla.org/seamonkey/source/editor/libeditor/base/nsEditor.cpp#1329
Frederic, does this exception occur immediately after opening the compose window or after you start writing?
![]() |
Reporter | |
Comment 6•19 years ago
|
||
(In reply to comment #5)
> Frederic, does this exception occur immediately after opening the compose
> window or after you start writing?
Immediately after opening the compose window
![]() |
Reporter | |
Comment 7•19 years ago
|
||
And yes, the error still occurs if I enable them.
![]() |
Reporter | |
Comment 8•19 years ago
|
||
Ohhhh.... I think I made an interesting discovery! :) The error only occurs with the french version of Tb, downloaded from ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-mozilla1.8-l10n/thunderbird-2.0b1.fr.linux-i686.tar.gz
I see no error (except the one reported in bug 361702) when using the en-US version.
Maybe this is related: when starting Tb2b1 french version, I get this message:
Failed to load old-style contents.rdf at 'jar:resource:///chrome/en-US.jar!/locale/en-US/wallet/contents.rdf'.
This *could* explain why this only happens with the french version.
Note that I didn't test with other l10n tarballs. CC'ing Axel.
Comment 9•19 years ago
|
||
Confirmed on Fedora FC 6 - also other Errors when trying to use the Spellchecker on the fr-FR Build:
Erreur : uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIEditorSpellCheck.GetNextMisspelledWord]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://editor/content/EdSpellCheck.js :: NextWord :: line 298" data: no]
Erreur : window.opener.InlineSpellChecker.inlineSpellChecker has no properties
Fichier source : chrome://editor/content/EdSpellCheck.js
Ligne : 590
Updated•19 years ago
|
Assignee: nobody → bugzilla.fr
Component: MailNews: Composition → fr-FR / French
Product: Core → Mozilla Localizations
QA Contact: composition → benoit.leseul
Version: 1.8 Branch → unspecified
Comment 10•19 years ago
|
||
All localized versions seems to be affected. I additionally tested with the German localization under Windows. If you go to the spell checker tab inside options you will notice that no dictionary is installed. I followed the given link and tried to install some dictionaries. But without success. It's not possible. Is something broken for spell checker?
OS: Linux → All
Hardware: PC → All
Comment 11•19 years ago
|
||
Dunno if it's the right component now so change it to a better one if neccessary. IMO this should be an regression but I cannot find any older release for testing.
Assignee: bugzilla.fr → registration
Component: fr-FR / French → Registration & Management
Flags: blocking-thunderbird2?
QA Contact: benoit.leseul → registration
Summary: Error thrown when composing a new message → Exception thrown in nsIEditor.inlineSpellChecker when opening/closing the compose window
Comment 12•19 years ago
|
||
the claim is that beta 2.0 localized builds don't have a dictionary installed...maybe that's known, I don't know...
Assignee: registration → mscott
Assignee | ||
Comment 13•19 years ago
|
||
I thought all locales shipped with the en-US dictionary. henrik, can you verify if that was the case in 1.5? I know most locales can't ship with their localized dictionary due to license issues.
Comment 14•19 years ago
|
||
(In reply to comment #8)
> Failed to load old-style contents.rdf at
> 'jar:resource:///chrome/en-US.jar!/locale/en-US/wallet/contents.rdf'.
>
> This *could* explain why this only happens with the french version.
>
> Note that I didn't test with other l10n tarballs. CC'ing Axel.
>
This error also occurred for other locale (I tested it with it locale) and
doesn't seem to be related to the spellchecker imo
For this error "chrome://editor/content/EdSpellCheck.js :: NextWord :: line
298" data: no]" I couldn't reproduce it when a dictionary is installed (either
for it and fr) tested both with latest nightlies
Comment 15•19 years ago
|
||
(In reply to comment #13)
> I thought all locales shipped with the en-US dictionary. henrik, can you verify
> if that was the case in 1.5? I know most locales can't ship with their
> localized dictionary due to license issues.
Yeah. Thunderbird version 1.5.0.9 (20061207) does have the enUS dictionary installed. The error doesn't occur for this build. So it's a regression for the 1.8 branch.
Keywords: regression
Comment 16•19 years ago
|
||
For Firefox, we remove the en-US dictionary on repackaging, I bet we do for Thunderbird, too.
Component: Registration & Management → fr-FR / French
Keywords: regression
Updated•19 years ago
|
Keywords: regression
Assignee | ||
Comment 17•19 years ago
|
||
(In reply to comment #16)
> For Firefox, we remove the en-US dictionary on repackaging, I bet we do for
> Thunderbird, too.
>
Hmm, I wonder if for Thunderbird we should go back to what we did in 1.5 and always ship en-US so there's a dictionary installed.
![]() |
Reporter | |
Comment 18•19 years ago
|
||
(In reply to comment #17)
> Hmm, I wonder if for Thunderbird we should go back to what we did in 1.5 and
> always ship en-US so there's a dictionary installed.
Why not let the spellchecker sleeps if no dictionary is present, and avoid any call to it unless at least one dictionary is installed?
Comment 19•19 years ago
|
||
(In reply to comment #16)
> For Firefox, we remove the en-US dictionary on repackaging, I bet we do for
> Thunderbird, too.
Axel, is there a tracking bug for the ongoing work? And why you switch back to fr-FR?
Comment 20•19 years ago
|
||
(In reply to comment #19)
Oops, seems like that didn't survive the mid-air and it didn't talk about it.
Anyway, Registration is totally wrong, as this is not specific to any particular locale, I'm moving it back to the Thunderbird product. I really think that thunderbird should cope with an install without a spell checker.
Component: fr-FR / French → General
Product: Mozilla Localizations → Thunderbird
QA Contact: registration → general
Assignee | ||
Comment 21•19 years ago
|
||
Ok, if you think the right thing to do for localized builds is to not ship the en-US dictionary, I'll make things work better when we don't have a dictionary installed.
Flags: blocking-thunderbird2? → blocking-thunderbird2+
Target Milestone: --- → Thunderbird2.0
Assignee | ||
Comment 22•19 years ago
|
||
I believe the work I did to convert Thunderbird to use toolkit's InlineSpellCheckerUI in Bug 355064 on the trunk and the branch made this much better.
The inline spell checker no longer throws any JS errors when you start it without any dictionaries.
The only error I can trigger now is when you invoke the spell check dialog:
JavaScript error: , line 0: uncaught exception: [Exception... "Component returne
d failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIEditorSpellCheck.GetNe
xtMisspelledWord]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location:
"JS frame :: chrome://editor/content/EdSpellCheck.js :: NextWord :: line 299"
data: no]
Status: NEW → ASSIGNED
![]() |
||
Comment 24•17 years ago
|
||
(In reply to comment #22)
> The only error I can trigger now is when you invoke the spell check dialog:
>
> JavaScript error: , line 0: uncaught exception: [Exception... "Component
> returne
> d failure code: 0x80004003 (NS_ERROR_INVALID_POINTER)
> [nsIEditorSpellCheck.GetNe
> xtMisspelledWord]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"
> location:
> "JS frame :: chrome://editor/content/EdSpellCheck.js :: NextWord :: line 299"
> data: no]
>
I don't see any issues with opening/closing the compose window, nor the spellcheck issue, on Thunderbird 2.0.0.12 (20080213) on Leopard anymore. Marking WFM.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
![]() |
Reporter | |
Comment 25•17 years ago
|
||
Well, the problem has rather been FIXED.
Resolution: WORKSFORME → FIXED
Comment 26•17 years ago
|
||
It's not FIXED unless you can point to a bug / patch that fixed it.
Resolution: FIXED → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•