Crash when selecting recipient from contacts sidebar [@ nsTreeSelection::GetSingle(int*)]

VERIFIED FIXED in Thunderbird 3.0b1


10 years ago
8 years ago


(Reporter: JoeS1, Assigned: standard8)


({crash, topcrash})

Thunderbird 3.0b1
Windows XP
crash, topcrash
Bug Flags:
blocking-thunderbird3 +

Firefox Tracking Flags

(Not tracked)


(crash signature)


(1 attachment)



10 years ago
I seldom use the contacts sidebar, so this could have been here for some time.
The entries in AB are old.
1. Compose an html mail (not checked for plaintext)
2. Use the contacts sidebar to select a recipient
3. Attempt to send the mail

Crash before sending:

This is with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081105 Lightning/1.0pre Shredder/3.0b1pre ID:20081105032000

The exact same address when entered manually works fine.

Comment 1

10 years ago
One further step needed to reproduce.
1. Add the recipient from "contacts"
2. Close the contacts sidebar
3. Send mail

No crash if contacts pane is left open.

Comment 2

10 years ago
Some more particulars:
Crash occurs when using double-click on contact to apply
Also with drag and drop to "to:"

Does not crash when using "add to" button.

Same results in safe mode, and with an older build:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080920112042 Lightning/1.0pre Shredder/3.0b1pre ID:20080920112042

Comment 3

10 years ago
Joe, unfortunately the crash reports don't provide any useful information and I can't reproduce. Can you try seeing if you can get stacks with more information on the Frames tab?

Comment 4

10 years ago
Let me try to be more clear on the steps:
1. Compose a message
2. open the contacts sidebar
3. double-click or d&d an addy to recipient bar
4. use the x to close the contacts pane (necessary for crash)
5. crash when attempting to send

Just to see if it was profile related I used my a3 testing profile.
Same crash there with better frames info:

Comment 5

10 years ago
I see it now and that stack is definitely a lot better. Thanks for the info.
Severity: normal → critical
Component: Message Compose Window → Address Book
Flags: blocking-thunderbird3+
Keywords: crash
Product: Thunderbird → MailNews Core
QA Contact: message-compose → addressbook
Target Milestone: --- → Thunderbird 3.0b2
xref bug 456871 

(In reply to comment #4)

nsTreeSelection::GetSingle	layout/xul/base/src/tree/src/nsTreeSelection.cpp:305
nsTreeSelection::RangedSelect	layout/xul/base/src/tree/src/nsTreeSelection.cpp:433
nsAbView::AddCard	nsAbView.cpp:843
nsAbView::OnItemPropertyChanged	nsAbView.cpp:1002
nsAbManager::NotifyItemPropertyChanged	nsAbManager.cpp:315
nsAbMDBDirectory::NotifyItemChanged	nsAbMDBDirectory.cpp:249
nsAbMDBDirectory::OnCardEntryChange	nsAbMDBDirectory.cpp:864
nsAddrDatabase::NotifyCardEntryChange	nsAddrDatabase.cpp:239
nsAddrDatabase::EditCard	nsAddrDatabase.cpp:1968
nsAbMDBDirectory::ModifyCard	nsAbMDBDirectory.cpp:719
nsMsgCompose::CheckAndPopulateRecipients	nsMsgCompose.cpp:4667
NS_InvokeByIndex_P	xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:101
XPCWrappedNative::CallMethod	js/src/xpconnect/src/xpcwrappednative.cpp:2405
Summary: Crash when selecting recipient from contacts sidebar → Crash when selecting recipient from contacts sidebar [@ nsTreeSelection::GetSingle]
b1pre and 3.0a3 topcrasher (top 5) ... so preferable this be fixed for b1

same issue as bug 456871


10 years ago
Keywords: topcrash


10 years ago
Duplicate of this bug: 456871

Comment 9

10 years ago
Taking, I should be able to work around this.
Assignee: nobody → bugzilla

Comment 10

10 years ago
Created attachment 350003 [details] [diff] [review]
Work around core issue

This patch is a work around for bug 399227. I'm going to try and fix that bug as well, but I want to fix this here for beta 1 at least.
Attachment #350003 - Flags: superreview?(bienvenu)
Attachment #350003 - Flags: review?(bienvenu)


10 years ago
Attachment #350003 - Flags: superreview?(bienvenu)
Attachment #350003 - Flags: superreview+
Attachment #350003 - Flags: review?(bienvenu)
Attachment #350003 - Flags: review+

Comment 11

10 years ago
Patch checked in:
Last Resolved: 10 years ago
Resolution: --- → FIXED
Target Milestone: Thunderbird 3.0b2 → Thunderbird 3.0b1
Joe, please reopen if you still see this.
does not appear in topcrash for builds after 2008112400.
better sig for summary nsTreeSelection::GetSingle(int*)
Summary: Crash when selecting recipient from contacts sidebar [@ nsTreeSelection::GetSingle] → Crash when selecting recipient from contacts sidebar [@ nsTreeSelection::GetSingle(int*)]
Crash Signature: [@ nsTreeSelection::GetSingle(int*)]
You need to log in before you can comment on or make changes to this bug.