Opened 23 months ago

Last modified 8 months ago

#18208 new bug

Mail app sometimes hangs for many seconds on launch

Reported by: humdinger Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/Mail Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Sometimes, most often if I already have an email open in Mail and click on "Reply", or "Create new message..." from the mail_daemon replicant in the Deskbar tray, it takes 10+ seconds for the new Mail window to appear.
While waiting one core is pretty much pegged on the Mail thread.

I tried debugging the thread via ProcessController and save a debug report. It's attached, dunno if it helps any...

This is the top part of the report:

Frame		IP			Function Name
-----------------------------------------------
00000000	0xa1eb7e305a	_kern_write_port_etc + 0xa 
	Disassembly:
		_kern_write_port_etc:
		0x000000a1eb7e3050:           4989ca  mov %rcx, %r10
		0x000000a1eb7e3053:   48c7c0e0000000  mov $0xe0, %rax
		0x000000a1eb7e305a:             0f05  syscall  <--

0x7f7c35900d10	0x1f47d7958cf	BPrivate::LinkSender::Flush(long, bool) + 0x8f 
0x7f7c35900d40	0x1f47d7ab509	BPrivate::ServerLink::FlushWithReply(int&) + 0x29 
0x7f7c35900da0	0x1f47d7d0d03	BFont::SetFamilyAndStyle(char const*, char const*) + 0xb3 
0x7f7c35900ec0	0x1f47d7f91c3	BMenu::_InitData(BMessage*) + 0x63 
0x7f7c35900f00	0x1f47d7f96d0	BMenu::BMenu(char const*, menu_layout) + 0x140 
0x7f7c35900f50	0x12d453874a6	AddressPopUpMenu::_AddGroup(char const*, char const*, PersonList&) + 0x36 
0x7f7c35901000	0x12d4538765c	AddressPopUpMenu::_RebuildMenu() + 0x12c 
0x7f7c35901070	0x12d453aba34	QueryList::AddListener(QueryListener*) + 0x64 
0x7f7c359010a0	0x12d45387186	AddressPopUpMenu::AddressPopUpMenu() + 0x66 
0x7f7c359010d0	0x12d453871ee	AddressTextControl::PopUpButton::PopUpButton() + 0x4e 
0x7f7c35901110	0x12d45387d65	AddressTextControl::AddressTextControl(char const*, BMessage*) + 0xa5 
0x7f7c359011b0	0x12d45394bcb	THeaderView::THeaderView(bool, bool, int) + 0x35b 
0x7f7c35901ca0	0x12d453a4b55	TMailWindow::TMailWindow(BRect, char const*, TMailApp*, entry_ref const*, char const*, BFont const*, bool, BMessenger*) + 0x1655 
0x7f7c35901dd0	0x12d45396452	TMailApp::NewWindow(entry_ref const*, char const*, bool, BMessenger*) + 0x1e2 
0x7f7c35901fd0	0x12d45396838	TMailApp::ArgvReceived(int, char**) + 0x258 
0x7f7c35902030	0x1f47d78d215	BApplication::_ArgvReceived(BMessage*) + 0x195 
0x7f7c35902080	0x1f47d797b4e	BLooper::task_looper() + 0x27e 
0x7f7c359020a0	0x1f47d78cacc	BApplication::Run() + 0x1c 
0x7f7c35902560	0x12d45386656	main + 0x26 
0x7f7c35902590	0x12d453868ca	_start + 0x3a 
0x7f7c359025c0	0x186a6bf9ae3	runtime_loader + 0x103 
00000000	0x7f4d6fb18258	commpage_thread_exit + 0 

Attachments (1)

Mail-985-debug-08-01-2023-18-30-44.report (15.5 KB ) - added by humdinger 23 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 by waddlesplash, 23 months ago

Yes, it's helpful; it appears to be rebuilding the AddressPopUpMenu. That does sound like something that would take an awfully long time to rebuild if not optimized correctly...

comment:2 by humdinger, 23 months ago

It used to be not noticable in the past. I do see duplicates, because it picks up Person files from backuped files. Just in case that could have any influence...

Note: See TracTickets for help on using tickets.