unable to compose messages

Bug #35212 reported by Mrts
18
Affects Status Importance Assigned to Milestone
Mozilla Thunderbird
Fix Released
Critical
mozilla-thunderbird (Ubuntu)
Fix Released
Medium
Adam Conrad

Bug Description

Distribution: Dapper Xubuntu, flight-5.

When trying to compose a message (pushing 'Write' or 'Reply' buttons, choosing 'Reply' from message right-click context menu) , the following error dialog appears

"An error occurred while creating a message compose window. Please try again."

After clicking OK, no compose message window appears, I'm taken back to the main window.

thunderbird reports no errors to stderr.

Repeatable: always after at least one initial account has been created.
Expected behaviour: a compose message window should appear.

Revision history for this message
In , Ducarroz (ducarroz) wrote :

-->varada

Revision history for this message
In , Vparthas (vparthas) wrote :

Are your mail accounts all there?
Are you able to receive mail properly?
Is there any difference when you send from one account as opposed to another?
Can you create new mail accounts and if so does the same problem happen there?
There was a known bug (that has been fixed now) about losing the prefs.js and
that could cause a lot of problems - can you see if this is the case(i.e. you
lost some of your prefs as well)

Revision history for this message
In , Randy-randy (randy-randy) wrote :

I did have multiple accounts and two of them 'forgot' their password. I removed
those after the described problem occurred to see if that would help. I added
one again, no problem there.

Yes I can receive mail, no problems, I just can't reply or compose. As for
sending from one account or another, I can't test that for I only have one
server I can use to send mail.

as for my prefs file, it was still there (one of the first things I checked) and
all my preferences seemed ok (except for those two passwords that is).

Revision history for this message
In , Chris Carlin (chris-r-carlin) wrote :

I'm getting this same completely out of the blue error message. I can also
receive mail just fine. The difference is that my error message says:

An error occurred while creating a message compose window. Please try again.
R

(note the R instead of the T).

Revision history for this message
In , Hana-skoumalova (hana-skoumalova) wrote :

I observed this bug today in the build 20020924 on Sparc/Solaris. I can't
compose any message and I get the error message "An error occurred while
creating a message compose window. Please try again." (Without the T on the next
line.) I just installed a new version of Mozilla, but I left untouched my
settings and profile.

Revision history for this message
In , Randy-randy (randy-randy) wrote :

I solved this problem in my case by removing my mail accounts and manually
re-adding them..

Randy

Revision history for this message
In , Chris Carlin (chris-r-carlin) wrote :

Removing and readding accounts doesn't do it for me.

I forgot to specify that I'm running under Linux, build 2002092421. I've tried
running it under root in addition to my normal user account, with no dice.

I suppose it's just a hopefully temporal nightly problem.

Revision history for this message
In , Chris Carlin (chris-r-carlin) wrote :

Seems fixed with build 2002092511

Revision history for this message
In , Jasonr-speakeasy (jasonr-speakeasy) wrote :

Same error using latest W2k build. Have un/re-installed. Have crested new profile and rebuilt maile accounts. All three accounts respond with same error.

Revision history for this message
In , Tnight (tnight) wrote :

I'm seeing this behavior with the latest nightly, 2003011405. Whenever I try to
open a message composer window, either by replying, forwarding, or trying to
compose a new message, I get the error:

"An error occurred while creating a message compose window. Please try again.\n["

Revision history for this message
In , Tnight (tnight) wrote :

Build 2003011408 gives me the same behavior.

Revision history for this message
In , Jpd (jpd) wrote :

I am also seeing this on Mac OS X, Mozilla 2003011408.

In my case, creating a new profile and immediately creating a mail message works
(prior to setting up mail accounts; this also prompts the setup wizard). As soon
as I configure my mail account (using IMAP, but I have not tried POP) I get the
error message.

Moreover the alert box has no focus and clicking on it does not bring it into
focus so you cannot dismiss it. Switching to another window or application and
then switching to the alert box will bring it into focus (during that time there
is a "compose" item listed under the window menu along with an item with no
name. Choosing the compose item brings the alert into focus.

Revision history for this message
In , Jpd (jpd) wrote :

This does NOT happen in 2003011308 on Mac OS X.

Revision history for this message
In , Jean-Max Reymond (jmreymond-free) wrote :

same troubles with:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030114
I can reproduce the problem with a new user (and a new account)

Revision history for this message
In , Wd-pobox (wd-pobox) wrote :

Looks like 20030114 had this problem temporarily
2003011505 is fine.

Revision history for this message
In , Michelpereira (michelpereira) wrote :

It's happening here with:
Mozilla 1.3b Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.3b) Gecko/20030114
and it's running on:
bash-2.05$ uname -a
SunOS assdebuger 5.8 Generic_108529-11 i86pc i386 i86pc
bash-2.05$

Can't create a new mail and can't post to a newsgroup.

Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

Is this a duplicate of the bug 131384?

Revision history for this message
In , Mozilla-bugzilla (mozilla-bugzilla) wrote :

This doesn't seem to be depdendant on the prefs. I tried copying a prefs.js file
of a fresh new profile, and then creating a mail account thru the wizard.
Afterwards, I can open a Compose window -- UNTIL I RESTART MOZILLA - then the
problem returns.

The new profile I created doesn't have the problem.

Can the Mozilla developers add some more clues to this error message? As it is
now, it's totally unclear -- is it something in the RDF files? Something in the
component cache?

Revision history for this message
In , Matt-mail (matt-mail) wrote :

I am having the exact same problem with the 1.3b so it appears that this problem
i still around. I am using the RH8 RPMS with gtk2/xft

Revision history for this message
In , Wkfx2003-bugzilla (wkfx2003-bugzilla) wrote :

I had this problem using 2003022508 build.
Then I switch back to 2003022408 build (rename 0225 build folder and change my
0204 folder back) the problem does not appear.

Revision history for this message
In , Phil-anderton (phil-anderton) wrote :

This has just started happening to me on 1.4a

Revision history for this message
In , Phil-anderton (phil-anderton) wrote :

I'm taking the liberty of confirming this.
The error message is generated when an exception is caught at line 1380 of
mozilla/mailnews/compose/resources/content/MsgComposeCommands.js, but I have no
idea how to debug this. Can someone give me a clue? How do I see the output
generated by the dump function at line 1381?

Revision history for this message
In , Le-mozilla (le-mozilla) wrote :

Same here, build 2003022408 works fine, the latest builds don't. This
is a blocker for me, since I am no longer able to write or reply
to emails.

I am using multiple identities, maybe this is the cause?

Revision history for this message
In , Phil-anderton (phil-anderton) wrote :

The fix for bug 195085 seems to have triggered this bug for me. If I back out
the changes to mailnews/compose/resources/content/MsgComposeCommands.js, the
problem disappears.

Revision history for this message
In , James-alberta-rules (james-alberta-rules) wrote :

This started for me also with 20030301, since then I have tried deleting the
mozilla.org folder and re-installing, with no result.

I am running winxp/amd/512mb, 4GB free on C drive

Revision history for this message
In , Pascalc (pascalc) wrote :

Same problem here with build 2003031714 winXP

It worked perfectly yesterday and I didn't change anything in my profile. The
only unusual thing related to mail I did yesterday was deleting a news server
account I no longer use.

My prefs.js is still there, I tried deleting chrome directory, xul.mfl,
panacea.dat all rdf files in my profile as well as registry.dat without any
success. I use multiple pop accounts and my SMTP hasn't changed. I can receive
my pop mail without any problem. This is really weird :-( I also
uninstalled/reinstalled the build without success. I tried with a new profile
and it works.

Revision history for this message
In , Pascalc (pascalc) wrote :

Ok, I fixed the problem. the suppression of the newsgroup account yesterday did
not suppress the account in the prefs.js file and caused the problem.

It seems similar to the problem in bug 131384 (actually, this bug gave me the
idea of checking all references to accounts)

Revision history for this message
In , Phil-anderton (phil-anderton) wrote :

WFM after editing pref.js by hand - removed a superfluous account.

Revision history for this message
In , Brendthess (brendthess) wrote :

Created attachment 121256
subset of bad prefs.js, with bad info

Installed moz 1.4a and received this error on any message create. After
tracking down this bug entry, manually edited prefs.js, finally figured out
what was wrong (a mail.account.accountX entry referring to a non-existant
mail.server.serverY and a truncated mail.identity.idZ), removed the data, and
things worked.

However, this would be very bad if a non-tech ran into this (and some non-techs
are using Mozilla). IMO, there needs to be a mechanism to parse the prefs.js
for nonsense entries and comment them out. If I had C++ experience, I would
code it myself, but I don't (nor a compiler, but that can be fixed by getting
Gnu).

Revision history for this message
In , Tomkitty (tomkitty) wrote :

I'm seeing the same error message when I try to compose a mail message. It
doesn't matter what method I use to try to compose a message (keyboard shortcut,
web link, button). I have two accounts, one pop, one imap. I'm running Linux
Mandrake 9.0 (and recently upgraded to 9.1; same problem). I was running 1.4a,
problem goes away if I load 1.3 (no change in configuration). I receive email
without problems.

Revision history for this message
In , Martin Heitzer (martin-heitzer) wrote :

Created attachment 122958
Screenshot of error message

Revision history for this message
In , Martin Heitzer (martin-heitzer) wrote :

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507
Reproducable: Always

I ran into this problem today simply installing 1.4 beta into a new directory
not changing anything.
I use multiple mail accounts and IMAP; also I'm still able to get messages.
It doesn't matter what method I use to try to compose a message (keyboard
shortcut, web link, button).

I'm a non-tech :-( - so I now try to install 1.3.1 to fix.

Revision history for this message
In , Martin Heitzer (martin-heitzer) wrote :

An complete de- and re-installation of Mozilla 1.4 beta, including an manual delete of the folder, solved the problem for me.

I guess it was caused by copying files from the Mozilla 1.4 alpha-folder to the (new) folder of Mozilla 1.4 beta. So by now I recommend to "re-install" all plugins, skins etc. by their original files (saved on the harddisk) and to do NOT simply copy them from the old folders.

Revision history for this message
In , Mozilla-cronos (mozilla-cronos) wrote :

After installing 1.4a to 1.4b ( 2003050714 ) i had te same problem, could not compose a new e-mail. or edit a e-mail as new. Hope there will be a more easy solution.. hate to reinstall my whole Mozilla again.

Revision history for this message
In , Bugzilla-strategon (bugzilla-strategon) wrote :

I installed Mozilla 1.4 RC1 Build ID: 2003052908 last night, and this morning I
tried to send an email and I'm getting this error message. I installed over
Mozilla 1.3

Revision history for this message
In , Wd-pobox (wd-pobox) wrote :

Do not install "over" previous versions of mozilla.
Uninstall the old version, and make sure the directory that mozilla was
installed to has been removed.

Revision history for this message
In , Jacekf (jacekf) wrote :

I've been getting this since 1.4 beta. I'm dead in the water with all my mail,
can't send a single one. This is the worse showstopper bug in Mozilla since 1.0
(at least for me). Could someone explain clearly how prefs.js needs to be fixed?

Revision history for this message
In , Andy M (andrew-anvil) wrote :

Just started getting this same error dialog after upgrading to mozilla-win32-1.4b on a fully patched up Win98SE machine. Multiple accounts used, will try cleaning prefs.js.

Revision history for this message
In , Andy M (andrew-anvil) wrote :

Created attachment 125181
prefs file from affected user account

This is the prefs file from a Mozilla account using win32-1.4b on WIndows 98
SE, fully patched. It will not allow the creation of a Compose window, showing
the same dialog mentioned above.

Revision history for this message
In , Wd-pobox (wd-pobox) wrote :

The original reporter had a profile corruption issue due to a crash. Nearly
every comment since then has described a problem due to installing a new version
of Mozilla over top of an existing installation. That is bug 200419 , not this
one.

Resolving as WFM, since the reporter is not having this problem anymore.

Revision history for this message
In , Jacekf (jacekf) wrote :

I can't believe a crucial bug like this get swept under the table. if Mozilla
wants to make it anywhere, any time it's supposed to handle the case of users
upgrading to new versions without corrupting their setups. This solution (or
lack of it) sucks, plain and simple, I'm appalled this is the response of the
Mozilla team....in the meantime I still can't send a single piece of email from
Mozilla...and I presume I am expected to redo the setups for all the 8 different
email accounts I have setup all over again, etc, etc...?

Sorry...it's not resolved...it does not work for me...and I'm appalled you do
not seem to be interested in fixing the worst bug in Mail & News since 2-3 years
(yes, I've been using Mozilla since the pre-1.0 days).

And this has nothing to do with bug 200419...my Mozilla 1.4a never crashed
during install and I still have this issue! So how come it has anything to do
with 200419?

Revision history for this message
In , Wd-pobox (wd-pobox) wrote :

I mean bug 200651
The bug linked to in my previous comment was a typo.

Revision history for this message
In , Keith-bowes (keith-bowes) wrote :

Comment #40, I had this problem with 1.4a and 1.4b, so I re-installed 1.3 both
times. But when 1.4rc1 came out, I took the not pleasant task of deleting the
mail-related settings from prefs.js and then re-setting up my e-mail and
newsgroup accounts.

This is a problem with upgrading. I always uninstall previous versions and
delete everything in the program folder except for plug-ins and my splash
screen. This is indeed a real issue, not user incompetence.

Comment #41, you are right. I mean, we can't expect Mozilla to always behave,
being that it's for testers. But the thing that concerns me is that this bug is
going unfixed and 1.4 is going to become the stable branch, meaning that
Netscape users that upgrade to the 1.4-based version are likely going to have
this problem too. Netscape is supposed to be for end-users but, in my opinion,
this bug is just too much of a blocker for anyone other than us testers to
contend with.

Revision history for this message
In , Andy M (andrew-anvil) wrote :

I think the view from the floor is "Fix it" and I can't help but agree I'm afraid.

If it is a case of prioritising work, how about we look at the impact to user of
this fault. They upgrade the thing and it stops them sending mail. Bit of a show
stopper for a mail client I'd say.

I'm not really sure that suggesting that we should dump all our setting and
start from scratch is really a runner either.

I understand that this is a beta version and therefore a bit ragged at times,
but the idea of a beta is to be grooming it for the general user. Well the
general user sure ain't going to like this one.

How does one get a bug reopened around here. It may have a workaround, and a
rather untidy one at that, but that isn't resolved it's relieved at best.

Revision history for this message
In , Wd-pobox (wd-pobox) wrote :

Go nuts

Revision history for this message
In , Martin Heitzer (martin-heitzer) wrote :

" ... But the thing that concerns me is that this bug is
going unfixed and 1.4 is going to become the stable branch, meaning that
Netscape users that upgrade to the 1.4-based version are likely going to have
this problem too. Netscape is supposed to be for end-users but, in my opinion,
this bug is just too much of a blocker for anyone other than us testers to
contend with."

That's it in fact. And then at worst case we have a new Netscape 6.0 which is
rather unusable ;)
Just my 2 cents BEING an kind of a "normal" end-user...

Revision history for this message
In , Csupi (csupi) wrote :

this is a big-big problem, 'cause i cannot compose any mail with 1.4 final version.
when will this bug fixed?

Revision history for this message
In , Ajschult (ajschult) wrote :

skerl: you cannot set (+) blocking flags, only request them (?).

Revision history for this message
In , Skerl (skerl) wrote :

Ok, so I'm requesting the blocking flags. The email client
is totally useless for me and a lot of other people.
Since more than a month I'm not able to send any email.
I cannot understand, that a bug that blocks a lot of users
from sending emails, isn't a blocking bug.
Please don't force me to switch to Outlook!

Revision history for this message
In , Bugzilla-strategon (bugzilla-strategon) wrote :

Composing email in 1.4 final was working fine until just now. I fixed the bug by
downgrading to 1.3. This is the second time I've downgraded. I had this
problem in one of the RC builds, and I thought it was fixed, but I was wrong. I
generally compose email by clicking the "compose" button in the mail client.
Just now, for the first time since I've installed 1.4 final, I clicked on an "A"
tag with a mailto: url, and then the bug appeared, then immediatly trying to
click on the compose button in the mail client, the same error occurs. That's
all I can think of that I've done differently lately.

Revision history for this message
In , Pierre-airpierre (pierre-airpierre) wrote :

No problems with 1.3.1 on my 98 machine or my xp-pro I8200.
Loaded 1.4 final on my 98 machine and it works fine.
Loaded it on my xp laptop (new directory) and I get the
"error occurred while creating a message compose window"
message. Did multiple remove and reinstalls - no luck.
Put 1.3.1 back on the xp machine.

Revision history for this message
In , Fyzik001 (fyzik001) wrote :

Hi all

it observed the sabe havior, upgraded from mozilla-1.3-r2 to 1.4 at gentoo.
Do I really have to reset and d/l all my few GB mailboxes???

eek

Revision history for this message
In , FredBezies (fredbezies-deactivatedaccount) wrote :

*** Bug 212085 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Peterph-bugzilla (peterph-bugzilla) wrote :

Considering this bug in 1.4 (Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4)
Gecko/20030624) creating a new profile helped (even with the overwriting
installation).
However I would also tend to marking this bug as a blocker.

Revision history for this message
In , Sspitzer (sspitzer) wrote :

well, varada ain't going to fix it, that's for sure.

the theory (at least in bugs #195230 and bug #195085) was that bad prefs
(account settings) lead to this problem.

the fix for bug #195085 should have addressed this, but sounds like there is
still a problem.

Revision history for this message
In , Sspitzer (sspitzer) wrote :

not a blocker, but I need to figure out what state (of account settings, in
prefs) is leading to this, so I can make the compose js (or C++) more robust.

Revision history for this message
In , L. David Baron (dbaron) wrote :

Marking as "not a blocker" (comment 56). We've shipped with this before, and
while it's serious, we're not going to hold the release for it.

Revision history for this message
In , Skerl (skerl) wrote :

Wow, what an altitude..
I mean, an email client that cannot send emails...
What’s next, loosing browsing ability in the browser?
Best statement of all is: we had this bug in a
shipped release so we don’t need to fix this for
the next release. Being a software developer, I should
told my boss that we don’t need to fix *shipped*
bugs. We could save a lot of money and time...
But the question that remains using this point of
view is: do we ever need to fix *any* bug in the
future?

Revision history for this message
In , Matt-marksman-tech (matt-marksman-tech) wrote :

Astonishing - We've shipped with this before, so we can do so again?

And how many potential users are you going to lose each time?

You'll either risk creating an island of users sticking with 1.3 or get a
percentage migrating back to outlook.

Personally, I spent about 4 hours figuring out the prefs settings, isolating
this to the area of account prefs, then creating a new profile and manually move
across all the settings and accounts I wanted to keep. If I was non-technical I
would only have the choice to stick with 1.3 or go back to another mail client.
 Each time this happens a user is less likely to risk trying future versions,
just in case he finds he can't migrate back to 1.3

Given that these faulty settings were working in 1.3, (however damaged or
irrational they might appear), at the very least a new profile, copy and
sanitisation should be offered at install.

If I was using the nightly builds I'd understand the point of view to live with
it - when it has occured through using the "public" releases

When it is not a bug that can be harvested via talkback, and bugzilla is not
exactly friendly for non-techies, one wonders how many people silently met this
bug, decided Mozilla was useless and went elsewhere. As others have said a mail
client being able to send mail is fairly fundamental after all.

Revision history for this message
In , Dwoldrich-ebay (dwoldrich-ebay) wrote :

Time to install a validating parser on all these prefs?

XML suuure is nice for that kind of structured data... I'm a little frustrated
with js anyhow.

Maybe we could break prefs into multiple XML files so any corruption or
inconsistencies could be localized to a subset of prefs and replaced with best
guess or backup documents?

Revision history for this message
In , Peterph-bugzilla (peterph-bugzilla) wrote :

still occurs with Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5b) Gecko/20030717

Revision history for this message
In , Jacekf (jacekf) wrote :

For those of us who are stuck dead in the water...could someone finally
post a step-by-step guide to manually cleaning up the prefs.js file, so that
Mozilla Mail is usable again?

I've tried deleting stuff in it myself, but alas the error still is happening...

Revision history for this message
In , Matt-marksman-tech (matt-marksman-tech) wrote :

Created attachment 128124
Broken mail server prefs - only the relevant section

Revision history for this message
In , Matt-marksman-tech (matt-marksman-tech) wrote :

type about:config into the URL box, then scroll down to the mail.* settings -
you'll find all the settings changed from default values are in bold.

In my case I managed to pin it down to some sort of inconsistencies in

mail.account.*
mail.identity.*

I haven't spent much time looking at what was wrong, but there were far too many
of them - I have three servers set up and local folders, yet there were entries
for 1 through 16. Moz 1.3 was quite happy with whatever mess it was in, which
is the irritating thing. Once I had imported across to a new profile I had four
sets of entries in sensible order. 1.3 only showed 4 sets of data in mail
account preferences window, yet underlying this was much messier. It should
therefore be possible to automate the cleanup.

Profile settings - Reinstalling with a new profile and a little messing around
and I'm back running with all my important settings. You'll find
http://www.gemal.dk/mozilla/files.html is an excellent help in this regard, for
instance telling you which files your passwords are saved to. The only bit that
was a pain was switching back and forth between profiles on a trial and error
basis, manually creating the e-mail accounts in the new profiles, quit mozilla,
copy in the mail files, restart.

Hopefully this gives you something to go on - if you're going down this route
TAKE A COPY FIRST!

I've attached a file with the relevant broken settings from my own system.

Revision history for this message
In , Ajschult (ajschult) wrote :

*** Bug 213259 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ajschult (ajschult) wrote :

This is a minimalist list of prefs from Matt's prefs file:
user_pref("mail.account.account1.identities", "id1");
user_pref("mail.account.account1.server", "server1");
user_pref("mail.account.account2.identities", "id2");
user_pref("mail.accountmanager.accounts", "account1,account2");
user_pref("mail.server.server1.hostname", "news.mozilla.org");
user_pref("mail.server.server1.type", "nntp");

The problem is that account4 exists, but has no server. In Matt's original
prefs, server4-9 did not exist, but were referenced in accounts4-9. This seems
to be the same thing as Brendt (comment 29). Andrew Meredith might have a
different problem...

Revision history for this message
In , Ajschult (ajschult) wrote :

Created attachment 128134
patch

this fixes the minimalist pref list as well as Matt's full-blown prefs.
I was able to open compose with Andrew Meredith's prefs even without this
patch.

Revision history for this message
In , Ajschult (ajschult) wrote :

this is a regression from bug 191011

Revision history for this message
In , Gerd-flender (gerd-flender) wrote :

I had this problem starting with 1.4 final too.
After cleaning up mail.account.account*.*, mail.accountmanager.accounts with no
longer existing server* and id* entries in prefs.js it worked for me again.
But this is a highly annoying bug and should be a showstopper! Very bad!

Revision history for this message
In , Asa (asa) wrote :

mozilla1.5a released. unsetting blocking request.

Revision history for this message
In , Skerl (skerl) wrote :

I hope that someone is sane enough to set the blocking flag for 1.5b
I’m afraid I already know the answer: the bug was in 1.5a so we don’t
need to fix it for 1.5b....
:-(

Revision history for this message
In , Chofmann (chofmann) wrote :

we should try for 1.5b... if there is any possible way for folks to help out in
debugging or isolating this problem that would really help...

Revision history for this message
In , Ajschult (ajschult) wrote :

> if there is any possible way for folks to help out in debugging or isolating
> this problem that would really help...

the problem is already debugged and isolated.
review-love is the missing ingredient

Revision history for this message
In , Mscott-mozilla (mscott-mozilla) wrote :

what identity is chosen for the message if we run this new patch which falls out
of Fill In Idnetity if the server entry in prefs is bogus?

Revision history for this message
In , Neil-httl (neil-httl) wrote :

Comment on attachment 128134
patch

mscott, this function is to fill in the From: drop-down; the previous code
required a server for each identity but used try/catch so ignoring corrupt
accounts... the current code does no checking, so if a corrupt account has no
server (even Local Folders has a server with no identities) then it fails...
nothing here affects the preselected identity. (r=me if you want it.)

Revision history for this message
In , Mscott-mozilla (mscott-mozilla) wrote :

Thanks Neil. Let's treat this as

r=neil
sr=mscott

I can check this in.

Revision history for this message
In , Mscott-mozilla (mscott-mozilla) wrote :

fixed for thunderbird and seamonkey mail.

Revision history for this message
In , Ajschult (ajschult) wrote :

Comment on attachment 128134
patch

this patch fixes a bug that prevents people from composing mail (through no
fault of their own)
virtually no risk.

Revision history for this message
In , Mozilla-kaply (mozilla-kaply) wrote :

Comment on attachment 128134
patch

a=mkaply

Revision history for this message
In , Mozilla-kaply (mozilla-kaply) wrote :

Please add fixed1.4.1 keyword when checked in.

Revision history for this message
In , Ajschult (ajschult) wrote :

*** Bug 217869 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Engele (engele) wrote :

Created attachment 141589
an error occurred while creating a message compose window

Revision history for this message
In , Mips-cyberspace (mips-cyberspace) wrote :

I use thunderbird 0.6 and i got the famous "an error occurred while creating a
message compose window".
This is my first use of thunderbird. I've checked the prefs.js file for
consistency. I've also recreated the profile. But i still got this message when
trying to compose a message.
A mail application that can't send message is not useful ...

Damien

Revision history for this message
In , Steve-kelem-elementcxi (steve-kelem-elementcxi) wrote :

(In reply to comment #29)
> Created an attachment (id=121256) [edit]
> subset of bad prefs.js, with bad info
>
> Installed moz 1.4a and received this error on any message create. After
> tracking down this bug entry, manually edited prefs.js, finally figured out
> what was wrong (a mail.account.accountX entry referring to a non-existant
> mail.server.serverY and a truncated mail.identity.idZ), removed the data, and
> things worked.

I got rid of old accounts. ids, and servers, and it still doesn't work!
1. What does "remove the data" mean?
2. Does the Local Account need an id?
3. I don't have an account1, and thunderbird keeps trying to create a reference
to account1 in mail.accountmanager.account!

I renamed my last account, account8, to account1 globally, I also did global
replacements to make sure I had contiguous "account"s, "id"s, and "server"s in
prefs.js. (I.e., the numbering of these went from 1 to n (by 1) with no missing
numbers)

Now thunderbird is mostly happy. If I double-click on a message in my main
drafts folder, the message doesn't open up in an edit window, as it's supposed
to do. (a) If I right-click the message and select "Edit as new...", then I can
edit. (b) If I double-click a template in my Local Folder, then the message is
copied to an edit window.

Revision history for this message
Mrts (mrts) wrote :

Distribution: Dapper Xubuntu, flight-5.

When trying to compose a message (pushing 'Write' or 'Reply' buttons, choosing 'Reply' from message right-click context menu) , the following error dialog appears

"An error occurred while creating a message compose window. Please try again."

After clicking OK, no compose message window appears, I'm taken back to the main window.

thunderbird reports no errors to stderr.

Repeatable: always after at least one initial account has been created.
Expected behaviour: a compose message window should appear.

Revision history for this message
Mrts (mrts) wrote :

The error seems to be related to http://mozilla.gunnars.net/mozfaq_use.html#mail_compose_window_error

However, it appears on clean start (after rm -rf .mozilla-thunderbird).

Revision history for this message
Mrts (mrts) wrote :
Download full text (4.3 KiB)

To reproduce the bug (you can substitute anything, **including valid data** for 'none' in the following):
0) from console rm -rf ~/.mozilla-thunderbird
1) launch thunderbird
2) Import wizard: Don't import anything
3) Account wizard: Email account
4) Name: none, email address: none@none
5) Server information: IMAP, Incoming: none, Outgoing: none
6) Incoming username: none
7) Account name: none@none
8) Finish
9) (Alert, failed to connect to none -- this is as expected)
10) press WRITE --->
"An error occurred while creating a message compose window. Please try again."

I tried it all with valid, DNS-resolvable server names.

----
The bug did not appear right away when I did not use the Account Setup Wizard for creating the initial account at first launch -- temporary workaround:

0) from console rm -rf ~/.mozilla-thunderbird
1) launch thunderbird
2) Import wizard: Don't import anything
3) Account wizard: CANCEL, confirm with EXIT
4) press WRITE
5) Account wizard appears, proceed as in 4)-8) before
6) open/close compose windows **works as expected**
7) when thunderbird is restarted, the same bug occurs again

I'll attach the generated prefs.js (which looks OK to me):

# Mozilla User Preferences

/* Do not edit this file.
 *
 * If you make changes to this file while the application is running,
 * the changes will be overwritten when the application exits.
 *
 * To make a manual change to preferences, you can visit the URL about:config
 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
 */

user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1142531187);
user_pref("app.update.lastUpdateTime.background-update-timer", 1142531186);
user_pref("extensions.lastAppVersion", "1.5");
user_pref("ldap_2.prefs_migrated", true);
user_pref("mail.account.account1.server", "server1");
user_pref("mail.account.account2.identities", "id1");
user_pref("mail.account.account2.server", "server2");
user_pref("mail.accountmanager.accounts", "account1,account2");
user_pref("mail.accountmanager.defaultaccount", "account2");
user_pref("mail.accountmanager.localfoldersserver", "server1");
user_pref("mail.identity.id1.doBcc", false);
user_pref("mail.identity.id1.draft_folder", "imap://none@none/Drafts");
user_pref("mail.identity.id1.drafts_folder_picker_mode", "0");
user_pref("mail.identity.id1.fcc_folder", "imap://none@none/Sent");
user_pref("mail.identity.id1.fcc_folder_picker_mode", "0");
user_pref("mail.identity.id1.fullName", "none");
user_pref("mail.identity.id1.smtpServer", "smtp1");
user_pref("mail.identity.id1.stationery_folder", "imap://none@none/Templates");
user_pref("mail.identity.id1.tmpl_folder_picker_mode", "0");
user_pref("mail.identity.id1.useremail", "none@none");
user_pref("mail.identity.id1.valid", true);
user_pref("mail.root.imap", "/home/user/.mozilla-thunderbird/l4a71msl.default/ImapMail");
user_pref("mail.root.imap-rel", "[ProfD]ImapMail");
user_pref("mail.root.none", "/home/user/.mozilla-thunderbird/l4a71msl.default/Mail");
user_pref("mail.root.none-rel", "[ProfD]Mail");
user_pref("mail.server.server1.directory", "/home/user/.mozilla-thunderbird/l4a71msl.default/Mail/Local Folders");
user_pref("mail.server...

Read more...

Revision history for this message
Adam Conrad (adconrad) wrote :

Does this magically work if you install myspell-en-us (or any other myspell dictionary)?

Revision history for this message
Mrts (mrts) wrote : Re: unable to compose messages *RESOLVED*

Yes, thank you, when I installed myspell-en-us everything works as expected.

Please consider adding package dependency to myspell to fix the bug.

Matt Zimmerman (mdz)
Changed in mozilla-thunderbird:
assignee: nobody → adconrad
Revision history for this message
Adam Conrad (adconrad) wrote :

This is fixed in the 1.5.0.2-0ubuntu1 update.

Changed in mozilla-thunderbird:
status: Unconfirmed → Fix Released
Changed in thunderbird:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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