Closed
Bug 595644
Opened 16 years ago
Closed 16 years ago
Thunderbird starts with empty folder pane when folder discovery broken by "duplicate" names // 0x80550013 == NS_MSG_FOLDER_EXISTS
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(thunderbird3.1 .7-fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| thunderbird3.1 | --- | .7-fixed |
People
(Reporter: mi_du, Assigned: Bienvenu)
Details
Attachments
(1 file, 2 obsolete files)
|
1.16 KB,
patch
|
rain1
:
review+
standard8
:
approval-thunderbird3.1.7+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.9) Gecko/20100824 SUSE/3.6.9-1.2 Firefox/3.6.9
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100824 SUSE/3.1.3 Thunderbird/3.1.3
Operating system: OpenSuse 10.3
About Mozilla: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100824 SUSE/3.1.3 Thunderbird/3.1.3
If a long list is displayed in left pane (folder pane) and thunderbird is closed, upon next start of thunderbird the folder pane is empty. Exiting and starting thunderbird again does not help: the pane is empty and the folder structure is not displayed.
I found two ways to circumvent the problem and see the folder structure again:
a) use the right arrow button above the (empty) folder list and select anything except "All Folders". E.g. select "Unread Folders", or "Recent Folders", ... If then th. is restarted, the folder list is displayed again.
b) the error only occurs if th. is closed when a scrollbar is available (folder list is too long to fit into the pane, i. e. the structure is expanded to show some sub folders). Therefore a workaround is to shrink the list by de-expanding sub structures so far that no scrollbar is needed. Then you can safely close thunderbird. Upon next start, the pane shows the structure.
Reproducible: Always
Steps to Reproduce:
1.expand folder list in folder pane so far, that a scrollbar appears because the list is too long to fit into the pane
2.restart thunderbird
3.folder pane is empty
(see Details)
Actual Results:
Folder pane is empty
Expected Results:
Folder pane displays the folder structure of my email accounts
My folder pane contains the structure (Inbox, Drafts, Templates, Sent, Junk, Trash,and some more names with sub folders) for 4 different email accounts plus some news servers. So it is quite long and if some folders are expanded to show the sub folders, I usually have a scrollbar and the problem occurs.
By try and error I found the workaround to select e.g. "Unread Folders" and restart thunderbird. So I know a way to display the folder list again.
| Reporter | ||
Comment 1•16 years ago
|
||
My folder pane contains the structure (Inbox, Drafts, Templates, Sent, Junk,
Trash,and some more names with sub folders) for 4 different email accounts plus
some news servers. So it is quite long and if some folders are expanded to show
the sub folders, I usually have a scrollbar and the problem occurs.
By try and error I found the workaround to select e.g. "Unread Folders" and
restart thunderbird. So I know a way to display the folder list again.
Version: unspecified → 3.1
| Assignee | ||
Comment 2•16 years ago
|
||
Anything on the Thunderbird error console when this problem happens?
| Reporter | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> Anything on the Thunderbird error console when this problem happens?
No, nothing on the console, except what always appears (with and without
my problem):
"*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB
to enable)."
| Reporter | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> (In reply to comment #2)
> > Anything on the Thunderbird error console when this problem happens?
>
> No, nothing on the console, except what always appears (with and without
> my problem):
> "*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB
> to enable)."
I had started thunderbird from the shell, not from the error console. Just found out that David wanted me to start with "thunderbird -jsconsole", I guess.
Well, there was an error on the console, which I ignored because my problem can be reproduced, I thought. First wanted to check on the result.
But since starting with "thunderbird -jsconsole", the problem has disappeared.
???????
I feel kind of ashamed now, having opened a bug report, and now I cannot reproduce it anymore. But I had lived with this "still a bug" for several days ...
So I guess I should close it now ???
| Assignee | ||
Comment 5•16 years ago
|
||
Hmm, that's odd, but in a good way, I guess. I'll just mark it Incomplete and if it starts happening again, you can re-open the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 6•16 years ago
|
||
Hi,
I would like to reopen the bug, the problem occurred again.
Here is the message from the error log:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80550013 [nsIMsgFolder.subFolders]" nsresult: "0x80550013 (<unknown>)" location: "JS frame :: chrome://messenger/content/folderPane.js :: anonymous :: line 1982" data: no]
How can I change the status and reopen the bug? I try to reset it ot unconfirmed, and hope this is what I have to do ...???
Regards and thanks, Michael
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
| Assignee | ||
Comment 7•16 years ago
|
||
0x80550013 is NS_MSG_FOLDER_EXISTS, which is a strange error to get during folder discovery. I could probably get a test build for you to try that gives more info about where the error is occurring.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 8•16 years ago
|
||
Assignee: nobody → bienvenu
| Assignee | ||
Comment 9•16 years ago
|
||
Comment on attachment 475904 [details] [diff] [review]
patch to catch exception and log error
Sid, is there some better way to log the exception *and* the folder URI at the same time?
Attachment #475904 -
Flags: review?(sid.bugzilla)
| Reporter | ||
Comment 10•16 years ago
|
||
(In reply to comment #9)
> Comment on attachment 475904 [details] [diff] [review]
> patch to catch exception and log error
>
> Sid, is there some better way to log the exception *and* the folder URI at the
> same time?
(In reply to comment #8)
> Created attachment 475904 [details] [diff] [review]
> patch to catch exception and log error
Hi,
that's what I did (for the first time, hope I did all correct ;-):
- get sources
- get several packages to get compliling working
- try to complile thunderbird
- as soon as it worked; applied patch
- compiled again
- start thunderbird
Here is the error log:
chrome://messenger/content/folderPane.js Line 1989
(if I follow the link, source code is displayed with the following line highlighted:
this._children = [new ftvItem(f) for each (f in iter)];
Hope this helps,
Michael
| Assignee | ||
Comment 11•16 years ago
|
||
was there text in the error console indicating what the error was?
| Assignee | ||
Comment 12•16 years ago
|
||
oh, duh, that patch isn't right. I'll attach a new one.
| Assignee | ||
Comment 13•16 years ago
|
||
Michael, can you revert the old patch and try this one instead? My build hasn't finished yet, so I'm not sure it works, but it can't be worse than the prev one.
Attachment #475904 -
Attachment is obsolete: true
Attachment #475904 -
Flags: review?(sid.bugzilla)
| Reporter | ||
Comment 14•16 years ago
|
||
(In reply to comment #13)
> Created attachment 476023 [details] [diff] [review]
> better patch
>
> Michael, can you revert the old patch and try this one instead? My build hasn't
> finished yet, so I'm not sure it works, but it can't be worse than the prev
> one.
I compiled it again, based on version 3.1.3, with the new patch.
Error is:
"Cc is not defined
chrome://messenger/content/folderPane.js Line 1986"
When I follow the link, the marked line is:
"Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService)"
I also have seen the error message, which I cannot reproduce:
"generator unread failed with exception: [Exception... "Component returned failure code: 0x80550013 [nsIMsgFolder.subFolders]" nsresult: "0x80550013 (<unknown>)" location: "JS frame :: chrome://messenger/content/folderPane.js :: ftv_addSubFolders :: line 1709" data: no]
| Reporter | ||
Comment 15•16 years ago
|
||
(In reply to comment #14)
> (In reply to comment #13)
> > Created attachment 476023 [details] [diff] [review] [details]
> > better patch
> >
> > Michael, can you revert the old patch and try this one instead? My build hasn't
> > finished yet, so I'm not sure it works, but it can't be worse than the prev
> > one.
>
> I compiled it again, based on version 3.1.3, with the new patch.
> Error is:
> "Cc is not defined
> chrome://messenger/content/folderPane.js Line 1986"
>
> When I follow the link, the marked line is:
> "Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService)"
>
>
> I also have seen the error message, which I cannot reproduce:
> "generator unread failed with exception: [Exception... "Component returned
> failure code: 0x80550013 [nsIMsgFolder.subFolders]" nsresult: "0x80550013
> (<unknown>)" location: "JS frame :: chrome://messenger/content/folderPane.js
> :: ftv_addSubFolders :: line 1709" data: no]
Hi again:
Now I know how to reproduce the second message "generator unread ...". This message occurs in the error console, if I use my workaround described above: If folder pane is empty, then select "unread folders" and restart thunderbird. Then this error message occurs, but at least the folder pane is correctly filled.
| Assignee | ||
Comment 16•16 years ago
|
||
OK, one last patch - I think you should see an error on the error console this time telling you which folder is causing the problem...
Attachment #476023 -
Attachment is obsolete: true
| Reporter | ||
Comment 17•16 years ago
|
||
(In reply to comment #16)
> Created attachment 476249 [details] [diff] [review]
> third time
>
> OK, one last patch - I think you should see an error on the error console this
> time telling you which folder is causing the problem...
Thanks for the new patch.
With the patch installed the problem does NOT occur. I get the following info message in the error log, which I do not understand: "discovering children for mailbox://xxxxx/rcv/friends failed with exception: [Exception ... "Component returned failure code: 0x80550013 [nsIMsgFolder.subFolders]" nsresult: "0x80550013 (<unknown>)" location: "JS frame :: chrome:/messenger/content/folderPane.js :: anonymous :: line 1984" data: no]
To me the folder "rcv/friends" look pretty normal: it contains 17 unusual mails, all already read and nothing noticeable. So I have no idea, why there should be a failure code, and what it means "data: no".
However the following is interesting: if I start the thunderbird from the rpm package (version 3.1.3, which is NOT patched), the folder pane is empty.
This is reproduceable: the patched thunderbird has no probem, the original has it ...
Well, I wonder if a folder is causing the problem: I was already running thunderbird 3.1.3 on openSuse 11.2 without any problems. It only occurs on openSuse 11.3 (same mails, same folders ... just a copy of the directory $HOME/.thunderbird)
I will continue using the newly patched version, hoping that the error appears again.
| Assignee | ||
Comment 18•16 years ago
|
||
Michael - the patch was intended to fix the empty folder pane and help us figure out the underlying cause. Can you look at the actual directory in your user profile dir and see if there's anything odd about it, or the parent directory?
| Assignee | ||
Updated•16 years ago
|
Attachment #476249 -
Flags: review?(sid.bugzilla)
Comment 19•16 years ago
|
||
David, do you mean to check this patch in?
| Assignee | ||
Comment 20•16 years ago
|
||
Sid, yeah, I think we should try to be robust when building up the folder tree, and not make errors finding one folder's sub-folders break the whole folder pane. And logging the error is useful for trouble shooting.
Comment 21•16 years ago
|
||
(In reply to comment #20)
> Sid, yeah, I think we should try to be robust when building up the folder tree,
> and not make errors finding one folder's sub-folders break the whole folder
> pane. And logging the error is useful for trouble shooting.
Right, but if subfolders don't work here they won't work anywhere.
One possible way the error could happen is via nsLocalMailFolder::GetSubFolders -> nsLocalMailFolder::CreateSubFolder -> nsLocalMailFolder::AddSubfolder -> nsMsgDBFolder::AddSubfolder <http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp#3591>.
| Assignee | ||
Comment 22•16 years ago
|
||
(In reply to comment #21)
> Right, but if subfolders don't work here they won't work anywhere.
Right, but it's one particular folder that's failing to get sub-folders. And I'm not even sure that there are sub-folders in this case. I still think it's better to display the other folders - otherwise the user will think all their mail is gone.
Comment 23•16 years ago
|
||
So the only way I can think that error can happen is if two folders have the same URI. The twist is that we only compare case-insensitively. I guess it's possible that two folders with names only differing in case can exist. Michael, is that the case with your profile?
Comment 24•16 years ago
|
||
Comment on attachment 476249 [details] [diff] [review]
third time
Fair enough. Please add a comment mentioning this bug though.
>+ iter = new Array;
iter = [];
Attachment #476249 -
Flags: review?(sid.bugzilla) → review+
| Reporter | ||
Comment 25•16 years ago
|
||
(In reply to comment #18)
> Michael - the patch was intended to fix the empty folder pane and help us
> figure out the underlying cause. Can you look at the actual directory in your
> user profile dir and see if there's anything odd about it, or the parent
> directory?
Hi David
as I wrote, the folder mentioned in the error console after applying the patch contains 17 normal mails, so it was not empty.
Indeed there were a few empty folders, but the error remained after deleting these empty folders. So this was not the problem.
However, I did some more tests and now the problem is gone. That's what I did:
Well, there were 2 folders which had a german Umlaut in the name. I know that this is no problem in the german version of thunderbird, however I'm using the english version since changing from openSuse 11.2 to 11.3.
- I emptied these 2 folders by creating new ones without german umlaut in the name and moving the mails to the new folders.
- then I tried to delete these folders via the context menu
- this didn't work: thunderbird did not delete the empty folders. They still appeared in the folder list (which was visible when using my workaround ;-)
- I even compressed all folders (context menu -> compact). The folders remained and also the problem with the empty folder pane.
Next I removed the 2 folders via the shell directly in the resp. directories
"$HOME/.thunderbird/.../Mail/..." by deleting the 4 files "xxx.msf" and "xxx.sbd".
Guess what: the folder pane is no longer empty. !!!!
However, I can't really believe that the german umlaut was the problem, because I assume you do a lot of tests with character encodings. Maybe it only occured in the context of some other characteristic of my configuration. Furthermore, the german umlauts appear also in many subjects of my emails.
If the problem reappears or if I find out some more, I will contact you again, of course.
For now, I want to thank you very much for your work and your commitment, for the support with my problem and for developing such a great application as thunderbird. THANKS A LOT !!!
Michael
| Reporter | ||
Comment 26•16 years ago
|
||
(In reply to comment #25)
> (In reply to comment #18)
> > Michael - the patch was intended to fix the empty folder pane and help us
> > figure out the underlying cause. Can you look at the actual directory in your
> > user profile dir and see if there's anything odd about it, or the parent
> > directory?
>
> Hi David
> as I wrote, the folder mentioned in the error console after applying the patch
> contains 17 normal mails, so it was not empty.
> Indeed there were a few empty folders, but the error remained after deleting
> these empty folders. So this was not the problem.
>
> However, I did some more tests and now the problem is gone. That's what I did:
>
> Well, there were 2 folders which had a german Umlaut in the name. I know that
> this is no problem in the german version of thunderbird, however I'm using the
> english version since changing from openSuse 11.2 to 11.3.
> - I emptied these 2 folders by creating new ones without german umlaut in the
> name and moving the mails to the new folders.
> - then I tried to delete these folders via the context menu
> - this didn't work: thunderbird did not delete the empty folders. They still
> appeared in the folder list (which was visible when using my workaround ;-)
> - I even compressed all folders (context menu -> compact). The folders remained
> and also the problem with the empty folder pane.
>
> Next I removed the 2 folders via the shell directly in the resp. directories
> "$HOME/.thunderbird/.../Mail/..." by deleting the 4 files "xxx.msf" and
> "xxx.sbd".
> Guess what: the folder pane is no longer empty. !!!!
> However, I can't really believe that the german umlaut was the problem, because
> I assume you do a lot of tests with character encodings. Maybe it only occured
> in the context of some other characteristic of my configuration. Furthermore,
> the german umlauts appear also in many subjects of my emails.
>
> If the problem reappears or if I find out some more, I will contact you again,
> of course.
> For now, I want to thank you very much for your work and your commitment, for
> the support with my problem and for developing such a great application as
> thunderbird. THANKS A LOT !!!
> Michael
Although I kind of closed the bug report with my last comment, I made
some more tests. This is my analysis so far:
First I saved my Mail directory. Then I
- removed account by account until only one account remained
- deleted folder by folder and finally
- deleted **all** my mails in the remaining folders
... until the problem with the empty folder pane was gone.
So I have good knowledge, what causes the problem. The last remaining folder structure (which still had the probloem) is very simple and as follows:
- There are no remaining mails in the folders
- there is only the folder structure
- Either each folder name directly contains a german umlaut or the folder contains a sub folder with a german umlaut.
The relevant part of the last structure with the problem looks as follows (here I list the files in the filesystem):
Mail/
Mail/pop.gmx.de/
Mail/pop.gmx.de/Junk.msf
Mail/pop.gmx.de/rcv.msf
Mail/pop.gmx.de/Trash
Mail/pop.gmx.de/Drafts
Mail/pop.gmx.de/Templates.msf
Mail/pop.gmx.de/Junk
Mail/pop.gmx.de/Drafts.msf
Mail/pop.gmx.de/Templates
Mail/pop.gmx.de/Sent
Mail/pop.gmx.de/msgFilterRules.dat
Mail/pop.gmx.de/popstate.dat
Mail/pop.gmx.de/Inbox.msf
Mail/pop.gmx.de/Inbox
Mail/pop.gmx.de/rcv
Mail/pop.gmx.de/rcv.sbd/
Mail/pop.gmx.de/rcv.sbd/.Hrspiel.ObRst1
Mail/pop.gmx.de/rcv.sbd/Männer.msf
Mail/pop.gmx.de/rcv.sbd/.Hrspiel.msf.GT1aS4
Mail/pop.gmx.de/rcv.sbd/M\344nner
Mail/pop.gmx.de/rcv.sbd/friends
Mail/pop.gmx.de/rcv.sbd/friends.sbd/
Mail/pop.gmx.de/rcv.sbd/friends.sbd/Männer.msf
Mail/pop.gmx.de/rcv.sbd/friends.sbd/M\344nner
Mail/pop.gmx.de/rcv.sbd/friends.sbd/Männer
Mail/pop.gmx.de/rcv.sbd/friends.sbd/M\344nner.msf
Mail/pop.gmx.de/rcv.sbd/friends.msf
Mail/pop.gmx.de/rcv.sbd/Männer
Mail/pop.gmx.de/rcv.sbd/M\344nner.msf
Mail/pop.gmx.de/Trash.msf
Mail/pop.gmx.de/Sent.msf
The following is odd and may cause problems:
a) deleting any of the remaining folders out of thunderbird is not
complete. The folder names remain in the filesystem.
This may have been the reason why there are some "left overs" with "similar/same/identical?" names.
So I believe, the 2 following 2 files are identical:
- Mail/pop.gmx.de/rcv.sbd/friends.sbd/Männer.msf
- Mail/pop.gmx.de/rcv.sbd/friends.sbd/M\344nner.msf
Only one of them appears in the folder pane, but both names appear in
the filesystem.
Assumption: Maybe the issues comes when switching from german thunderbird version to english thunderbird version. With each switching I usually copy the profiles to keep existing mails also in the new version. Whenever I migrate from one version of the operating system (in my case OpenSuse), I also copy the complete .thunderbird directory including the mail directory.
b) If I delete **any** of the folders (via shell by deleting corresponding
files in the file system), the problem is no longer available. Mind that all folder names contain german umlaut.
So maybe the combination of more than one german umlaut file names cause
the problem with the empty folder pane.
c) Next is not a problem, but difficult for users to understand:
Use 2 identical folder names in different places in the folder tree ->
delete one folder -> it goes to trash -> delete the other -> an error appears
that a file with the same name exists ...
Hmmm, what is the problem? I want to delete a folder and
the error message says something about identical names (what I'd rather
expect when creating a file ...)
I don't have a good proposal, but maybe you could precise the error
message by saying that the file with the identical name is in the trash ...
I hope this additional information is helpful.
Kind regards, Michael
| Assignee | ||
Comment 27•16 years ago
|
||
Hi Michael,
Yeah, Sid was right, as usual, and M\344nner is probably an encoded version of Männer. I don't know how the duplicate came about, but I suspect if you're copying profiles around by hand, something might have gotten messed up. We shouldn't let this break folder discovery, and ideally we'd figure out a way to show you both folders, or at the very least, one of the duplicates, and all the other siblings.
| Reporter | ||
Comment 28•16 years ago
|
||
(In reply to comment #27)
> Hi Michael,
> Yeah, Sid was right, as usual, and M\344nner is probably an encoded version of
> Männer. I don't know how the duplicate came about, but I suspect if you're
> copying profiles around by hand, something might have gotten messed up. We
> shouldn't let this break folder discovery, and ideally we'd figure out a way to
> show you both folders, or at the very least, one of the duplicates, and all the
> other siblings.
Hi David,
great, so Sid is also thinking that the 2 folders are identical. Anyway, I saved the mails in other folders and deleted all problematic folders manually in the filesystem and now I'm fine ;-)
Well, copying profiles should be allowed to migrate from one computer to another or - even simpler - to a new version of the operating system. I've done this for years and never had problems. I rather assume, that I should be careful mixing english and german versions...
Furthermore I assume still an existing bug related to deleting folders: corresponding files in the filesystem may not be deleted in all cases. This however would require more investigation.
KR, Michael
| Assignee | ||
Comment 29•16 years ago
|
||
I'll try to land this when the tree is a bit greener.
Keywords: checkin-needed
| Assignee | ||
Comment 30•16 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 16 years ago → 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
| Assignee | ||
Comment 31•16 years ago
|
||
Comment on attachment 476249 [details] [diff] [review]
third time
I don't know if any other users besides the reporter have encountered this issue, but the patch helps diagnose the issue if it arises, as well as fixing it.
Attachment #476249 -
Flags: approval-thunderbird3.1.6?
Comment 32•16 years ago
|
||
feel free to improve my summary munging
Summary: Thunderbird starts with empty folder pane → Thunderbird starts with empty folder pane when folder discovery broken by "duplicate" names // 0x80550013 == NS_MSG_FOLDER_EXISTS
Updated•16 years ago
|
Attachment #476249 -
Flags: approval-thunderbird3.1.6? → approval-thunderbird3.1.6+
| Assignee | ||
Comment 33•16 years ago
|
||
fixed landed for upcoming 3.1.6
status-thunderbird3.1:
--- → .6-fixed
Comment 34•15 years ago
|
||
Hello,
strangely enough I'm experiencing an issue which closely resembles this one, beside I am currently using TB 7.0.1 (but had same result on latest 8.0 beta). I had a very long folder list shown and my Mac went down on power loss. On reboot folder pane was empty.
I also tried deleting my profiles and starting from scratch but nothing. As soon as I relaunch it folders and accounts are gone and folder pane is empty.
I tried launching TB from a new account on same machine and everything is working as expected.
Here is what I see in error console:
Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMsgFolder.compareSortKeys]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: chrome://messenger/content/folderPane.js :: sorter :: line 2457" data: no]
Any clue?
You need to log in
before you can comment on or make changes to this bug.
Description
•