Closed Bug 535516 Opened 15 years ago Closed 14 years ago

Message summary disappears from Inbox smart folder when deleting message - error message index_msg.js :: PendingCommitTracker_commitCallback :: line 172

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86_64
Linux
defect
Not set
major

Tracking

(blocking-thunderbird3.1 -)

RESOLVED DUPLICATE of bug 536676
Tracking Status
blocking-thunderbird3.1 --- -

People

(Reporter: linuxuser, Unassigned)

References

Details

(Whiteboard: closeme 2010-07-25)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.1.7pre) Gecko/20091217 Shredder/3.0.1pre (revision 4546)

I have 4 e-mail accounts: 3 IMAP and 1 POP3. When I launched Thunderbird it received 4 new messages: 3 from POP3 account and one from the IMAP one. Messages from POP account have been placed in the top of the list. First I read the last message (from IMAP account) and then I have read and deleted first message from POP account (i.e. e-mail in the top of the list). Just after I have deleted it summary about the rest of 3 messages (i.e. 2 unread messages in POP account and 1 read message in the IMAP one) has disappeard from the Inbox smart folder (3 empty rows have been displayed). Additionally, in POP3 account I've seen information that I've only one unread message (?!?) and Inbox smart forlder said that there are two. When I clicked into POP3 account everything backed to the normal

Reproducible: Always

Steps to Reproduce:
1. Receive e-mails from both POP3 and IMAP accounts
2. Try to delete message from the top (probalby it must be from POP3 account)
3. Unfold Inbox smart folder and compare unread messages counters.
4. Click into "invalid" account - everything should back to the normal.



I'm using Thunderbird build from here: http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/pool/main/t/thunderbird-3.0/
Account Wirt* is POP3 account. On the message list panel 2 messages from this account and one from IMAP should be displayed.
Flags: blocking-thunderbird3.1?
Version: unspecified → Trunk
Pawel does this happens also in -safe-mode (http://kb.mozillazine.org/Safe_mode) ?

Anyything in Tools -> Error console ?
Attached image Another buggy screen
I have made some experiments and I think that is some problem with message index combined with "too fast" message deletion.
I have sent some portion of e-mails from other account and then I have received it using Thunderbird. When all messages have been downloaded and indexed, I've very quickly pressed delete button multiple times. After that last deleted message was still displayed in message list (as can be seen in attached screen). Everything backed to normal when I manually rebuilded folder index (from the folder properties window).
For now in Error Console I've only warnings similar to: "Warning: Unknown property 'mso-margin-bottom-alt'.  Declaration dropped." (e-mails written in Outlook) but earlier I saw error messages that (AFAIR) "PRIMARY KEY should be unique".
Does the issue go away if you stop Thunderbird - go to you profile directory and remove the global-messages-db.sqlite file from there ?
I've removed this file and after Thunderbird has restarted index has been rebuilded. I've started testing and...
Steps to reproduce: Remove 2 messages from Inbox (POP account) and then make twice "Undo" operation.
Result: "Empty" message in Inbox (both in smart folder as well as in account inbox view) with date set to 01/01/1970
Errors from Error Console:

Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.getMsgHdrAt]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/folderDisplay.js :: FolderDisplayWidget_get_selectedMessage :: line 1793"  data: no]
Source File: chrome://messenger/content/folderDisplay.js
Line: 1793

Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.getMsgHdrsForSelection]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/folderDisplay.js :: FolderDisplayWidget_get_selectedMessages :: line 1894"  data: no]
Source File: chrome://messenger/content/folderDisplay.js
Line: 1894
(In reply to comment #0)
OK, got this error one more time (now I'm using self-compiled (Linux x86_64) stable release).
Content from Error Console: 


2009-12-22 10:24:55	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///home/pawel/bin/thunderbird-3.0/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]

Błąd: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMessenger.msgHdrFromURI]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/msgHdrViewOverlay.js :: anonymous :: line 589"  data: no]

Błąd: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.getMsgHdrsForSelection]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/folderDisplay.js :: FolderDisplayWidget_get_selectedMessages :: line 1894"  data: no]
Plik źródłowy: chrome://messenger/content/folderDisplay.js
Wiersz: 1894

Błąd: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]"  nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame :: file:///home/pawel/bin/thunderbird-3.0/components/nsLoginManager.js :: anonymous :: line 328"  data: no]
Plik źródłowy: file:///home/pawel/bin/thunderbird-3.0/components/nsLoginManager.js
Wiersz: 328

Błąd: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIRequest.name]"  nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame :: file:///home/pawel/bin/thunderbird-3.0/components/nsLoginManager.js :: anonymous :: line 328"  data: no]
Plik źródłowy: file:///home/pawel/bin/thunderbird-3.0/components/nsLoginManager.js
Wiersz: 328


2009-12-22 09:16:31	gloda.datastore	ERROR	got error in _asyncTrackerListener.handleError(): 19: PRIMARY KEY must be unique


Błąd: [Exception... "'JavaScript component does not have a method named: "handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]

Błąd: [Exception... "'JavaScript component does not have a method named: "handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]

(*** above error message is multipled many times ***)

2009-12-22 09:13:20	gloda.datastore	ERROR	got error in _asyncTrackerListener.handleError(): 19: constraint failed


Błąd: [Exception... "'JavaScript component does not have a method named: "handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "<unknown>"  data: no]

2009-12-22 08:45:51	gloda.datastore	ERROR	got error in _asyncTrackerListener.handleError(): 19: constraint failed
bienvenu, perhaps another example of virtual folder listener problem. i.e. this is not gloda.

A few other examples have been popping up. But I haven't reproduced other than my bug 515400
Another error which has been thrown during such situation (running on self-compiled stable release in 64-bit machine, maybe it helps more):
2010-01-13 08:59:29	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///home/pawel/bin/thunderbird-3.0/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]
Does a more recent nightly build still have this issue?
Until we get steps that a developer can reproduce (i.e. this bug makes it out UNCONFIRMED and into the NEW state), we can't hold a release for this.  If we get to that point, feel free to renominate.
blocking-thunderbird3.1: --- → -
Flags: blocking-thunderbird3.1?
This bug also appears to be reported in #536676.  (This thread here seems to have more specific/technical information in it, although I have used comments here to add information to the 676 bug.)

My short summary is that I have the same problem.  I have POP and IMAP accounts I view in a smart folder inbox setup.  Sometimes the message summaries will disappear as my mouse passes over them, after I have tried to delete a message.  I believe that this is tied to the compaction of the folder.  I have my compaction limit set fairly high, 1000KB.  So I don't see the error every time I use Thunderbird.  

Here are the errors I found in the error console:

Warning: Expected ':' but found 'repeat-x'.  Declaration dropped.
Source File: mailbox:///C|/Users/Justin/AppData/Roaming/Thunderbird/Profiles/7veroqry.default/Mail/mail.comcast.net/Inbox?number=3083869
Line: 0

Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.getMsgHdrsForSelection]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/folderDisplay.js :: FolderDisplayWidget_get_selectedMessages :: line 1894"  data: no]
Source File: chrome://messenger/content/folderDisplay.js
Line: 1894

2010-02-27 08:10:12	gloda.index_msg	WARN	Observed header that claims to be gloda indexed but that gloda has never heard of during compaction. In folder: mailbox://justinclose@mail.comcast.net/Inbox sketchy key: 1992358 subject: J. Tillman: Fleet Foxes' Drummer Takes A Solo


2010-02-27 08:10:15	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///C:/Program%20Files%20(x86)/Mozilla%20Thunderbird/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]


An interesting note:  the message that it says has the bad header is NOT the message I was trying to delete.  The message it says is bad is one that has been in my inbox for a while, and it hasn't been deleted (it is still there).  I will watch the error log when this happens to see if it is the same message each time.
More error messages, this time from my other computer (the ones I posted above were from my laptop w/ Windows 7, this computer is Win XP).  No, not safe mode (forgot about using that when I switched over here.  :))  But definitely during folder compacting (that process continued after I noticed the problem).  

Merely clicking on another folder and then back to the main inbox restores all the message summary lines.

Warning: Expected ':' but found 'repeat-x'.  Declaration dropped.
Source File: mailbox:///D|/Justin/Email/Profiles/Justin/Mail/mail.comcast.net/Inbox?number=4744464
Line: 0

Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.getMsgHdrsForSelection]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: chrome://messenger/content/folderDisplay.js :: FolderDisplayWidget_get_selectedMessages :: line 1894"  data: no]
Source File: chrome://messenger/content/folderDisplay.js
Line: 1894

2010-02-27 14:40:31	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Thunderbird%20v2.0/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]


2010-02-27 14:40:31	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Thunderbird%20v2.0/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]


2010-02-27 14:40:31	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Thunderbird%20v2.0/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]


2010-02-27 14:40:36	gloda.index_msg	WARN	Observed header that claims to be gloda indexed but that gloda has never heard of during compaction. In folder: mailbox://justinclose@mail.comcast.net/Inbox sketchy key: 3347670 subject: Rogue Wave: To Sunnier Days Ahead


2010-02-27 14:40:36	gloda.index_msg	WARN	Observed header that claims to be gloda indexed but that gloda has never heard of during compaction. In folder: mailbox://justinclose@mail.comcast.net/Inbox sketchy key: 3359710 subject: Exclusive First Listen: Shearwater
I have got this error when I have trying to quickly remove 2 messages from Inbox smart folder (stable, self-compiled for x86_64 3.0.2 release):
2010-03-02 09:16:05	gloda.index_msg	ERROR	Exception while attempting to mark message with gloda state afterdb commit [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBHdr.getUint32Property]"  nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: file:///home/pawel/bin/thunderbird-3.0.2/modules/gloda/index_msg.js :: PendingCommitTracker_commitCallback :: line 172"  data: no]
Update:  Yes, I have just experienced this bug under safe mode.
with apologies for what may seem a cop out approach, can you reproduce using version 3.1?
Summary: Message summary disappears from Inbox smart folder when trying to delete some message → Message summary disappears from Inbox smart folder when deleting message - error message index_msg.js :: PendingCommitTracker_commitCallback :: line 172
Whiteboard: closeme 2010-07-25
If you're using the unified/smart inbox, and this is fixed in 3.1, then this would be a dup of the bug where auto-compact in smart folders wasn't causing a reload of the smart folder.
I'm using 3.1.1 rc build2 right now and I'm not seeing such problems for this version.
(In reply to comment #18)
> I'm using 3.1.1 rc build2 right now and I'm not seeing such problems for this
> version.

I have been using 3.1 (whatever the auto updater supplies) for a few days now and I haven't seen the problem.  One issue I did notice, once, was that messages I tried to delete stayed in my in box but had their date/time set to 1969 and some change.  But when I clicked to another folder and then back to the inbox, they were gone.  So almost the same...  :)
(In reply to comment #19)
> (In reply to comment #18)
> > I'm using 3.1.1 rc build2 right now and I'm not seeing such problems for this
> > version.
> 
> I have been using 3.1 (whatever the auto updater supplies) for a few days now
> and I haven't seen the problem.  One issue I did notice, once, was that
> messages I tried to delete stayed in my in box but had their date/time set to
> 1969 and some change.  But when I clicked to another folder and then back to
> the inbox, they were gone.  So almost the same...  :)

I can't post a screen cap, apparently, but I have observed this behavior again today.  It may only crop up if you are deleting a block of messages at the same time (e.g. having selected more than one email in the inbox and then hitting the delete button on the keyboard).  Some of the message disappear normally, but it looks like about half of them turned blank in the subject line and FROM fields, and then the date gets set to '1969-12-31 4:00PM', and then they just hang out in the inbox.  It is still possible to click around on other emails and delete individual emails without trouble, but these now-blank ones don't go away (and the INBOX(new-counter) display still shows them as new emails).
    They can be removed individually (highlighting them solo and hitting delete).  The Inbox new-counter, however, never updates.

Hmmm...more curious behavior.  I just said that if I deleted the 1969-blank messages individually they would go away.  Well, that is true for a short while.  They at least visually go away.  I found that if I go back and delete ANOTHER multiple selection (of valid messages, not these blank messages) then all of the blank messages show up again in my Inbox.  (The regular messages that I have deleted in the second round do appear to be correctly deleted, however...odd.)

    But as with the original problem, once you click to another folder and back to the Inbox, everything updates and goes back to normal.  No odd 1969 messages; no incorrect Inbox-new-counter.
per comment 17
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: