Closed Bug 1068166 Opened 10 years ago Closed 10 years ago

Autocomplete still hangs for up to 30 seconds in TB 31.1.1

Categories

(Thunderbird :: Untriaged, defect)

31 Branch
x86_64
Windows 7
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: randy, Unassigned)

References

(Depends on 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Build ID: 20140911151253

Steps to reproduce:

Attempt autocomplete with any name


Actual results:

The first letter-only of the desired name appears followed with the rotating doughnut for an average of 30 seconds. Immediately on completion, the originating TB window appears. After having to manually return the to "Write" or "New Message" page where autocomplete was attempted, only the first letter of the desired name appears in the "To:" line. Then, again, one has to finish inputting the rest of the letters of the desired Address Book name in order for autocomplete to finish searching for the desired name that appears amongst others names in the drop-down menu (usually in less than one second).


Expected results:

In all versions of TB up until TB 24.6.1, autocomplete always completed within a few hundred milliseconds.
Product: Firefox → Thunderbird
Version: 32 Branch → 31
Was supposedly fixed w/ bug 984875, but seems not for all cases then.
User:
The size of my Address Book increased perhaps thirty entries from TB 24.6.1 to 31.1.1
TB 24.6.1 was the last version where Autocomplete worked normally (within a few hundred milliseconds).
Windows 7/64 SP1 is current with all Windows updates.
Severity: normal → critical
I must redefine the problem:
In addition to "Autocomplete hanging" this is synonymous to just the non-autocomplete manual entry of a new address into "To:" causes TB to hang for 20 to 30 seconds. After the "hang" ceases, I can then begin inputting the remainder of the address digits.
So you need to tell us more about the process you do. How many contacts do you have in your addressbooks (the personal one and also Collected addresses)? Then, how long is the string you type in the To: field? 1 characted? Or 5 characters?
Personal Contacts: 4,857
Collected Contacts: 2,962
"T0:" Field: 
On the input of the first character, no more characters are allowed since TB activity stops for 20 to 30 seconds and doughnut appears until TB operation begins again.
When TB operation begins again, the TB original template appears and I then have to manually return to the Write page to continue inputting the email address. Address Book drop-down menu will appear if matching addresses are found. If not found, I manually complete the address and send the message.
What if you quickly type more than 1 character? I think there is some timeout and the autocomplete kicks in only if you are idle (no typing in 0.5 seconds or so).
Slow or quick, only the first character will appear for the 20 to 30 seconds (problem); and sometimes with or without doughnut appearing.
Additionally, the problem does not occur 100% of the time. I noticed that if TB has been idle for awhile (no messages sent), the "To: line will populate with characters normally for first message; however, for subsequent messages, the problem occurs 100% of the time.
(In reply to F16JetJock from comment #7)
> Slow or quick, only the first character will appear for the 20 to 30 seconds
> (problem); and sometimes with or without doughnut appearing.

We should find out the exact timeout. If it happens even for typing faster than timeout, it's probably not an autocomplete problem.

> Additionally, the problem does not occur 100% of the time. I noticed that if
> TB has been idle for awhile (no messages sent), the "To: line will populate
> with characters normally for first message; however, for subsequent
> messages, the problem occurs 100% of the time.

We have bugs on record for delayed responsiveness of the entire composition window, also when typing. Subsequent messages reminds me of window recycling, could that play a role?

f16jetjock, can you go into config editor (options, advanced...) and check the value of this pref:
mail.compose.max_recycled_windows;1
(In reply to F16JetJock from comment #0)

> The first letter-only of the desired name appears followed with the rotating
> doughnut for an average of 30 seconds. Immediately on completion, the
> originating TB window appears. After having to manually return the to
> "Write" or "New Message" page where autocomplete was attempted, only the
> first letter of the desired name appears in the "To:" line.

Can you add screenshot how it looks when "originating TB window appears"? Looks like f16jj is seeing two windows, which really points to something beyond just autocompletion.

f16jj, can you try if the same problem also occurs in Safe Mode (Help > Restart with addons disabled)?
Flags: needinfo?(randy)
Major annoyance, but not critical by definition
critical = crashes, loss of data, severe memory leak
Severity: critical → major
(In reply to Thomas D. from comment #9)
> (In reply to F16JetJock from comment #0)
> 
> > The first letter-only of the desired name appears followed with the rotating
> > doughnut for an average of 30 seconds. Immediately on completion, the
> > originating TB window appears. After having to manually return the to
> > "Write" or "New Message" page where autocomplete was attempted, only the
> > first letter of the desired name appears in the "To:" line.
> 
> Can you add screenshot how it looks when "originating TB window appears"?
> Looks like f16jj is seeing two windows, which really points to something
> beyond just autocompletion.
> 
> f16jj, can you try if the same problem also occurs in Safe Mode (Help >
> Restart with addons disabled)?

I concur that it is not an autocomplete issue.
F16JetJock
Flags: needinfo?(randy)
(In reply to Thomas D. from comment #9)
> (In reply to F16JetJock from comment #0)
> 
> > The first letter-only of the desired name appears followed with the rotating
> > doughnut for an average of 30 seconds. Immediately on completion, the
> > originating TB window appears. After having to manually return the to
> > "Write" or "New Message" page where autocomplete was attempted, only the
> > first letter of the desired name appears in the "To:" line.
> 
> Can you add screenshot how it looks when "originating TB window appears"?
> Looks like f16jj is seeing two windows, which really points to something
> beyond just autocompletion.
> 
> f16jj, can you try if the same problem also occurs in Safe Mode (Help >
> Restart with addons disabled)?

(In reply to Thomas D. from comment #8)
> (In reply to F16JetJock from comment #7)
> > Slow or quick, only the first character will appear for the 20 to 30 seconds
> > (problem); and sometimes with or without doughnut appearing.
> 
> We should find out the exact timeout. If it happens even for typing faster
> than timeout, it's probably not an autocomplete problem.
> 
> > Additionally, the problem does not occur 100% of the time. I noticed that if
> > TB has been idle for awhile (no messages sent), the "To: line will populate
> > with characters normally for first message; however, for subsequent
> > messages, the problem occurs 100% of the time.
> 
> We have bugs on record for delayed responsiveness of the entire composition
> window, also when typing. Subsequent messages reminds me of window
> recycling, could that play a role?
> 
> f16jetjock, can you go into config editor (options, advanced...) and check
> the value of this pref:
> mail.compose.max_recycled_windows;1

  (In reply to Thomas D. from comment #8)
Answer - Copy and paste of F16JetJock TB config line-item:    " mail.compose.max_recycled_windows;1 "

Regarding "screenshot", I'll attempt to compose a video tomorrow (using Camtasia).
> (In reply to F16JetJock from comment #7)
> > Slow or quick, only the first character will appear for the 20 to 30 seconds
> > (problem); and sometimes with or without doughnut appearing.
> 
> We should find out the exact timeout. If it happens even for typing faster
> than timeout, it's probably not an autocomplete problem.
> 
> > Additionally, the problem does not occur 100% of the time. I noticed that if
> > TB has been idle for awhile (no messages sent), the "To: line will populate
> > with characters normally for first message; however, for subsequent
> > messages, the problem occurs 100% of the time.
> 
> We have bugs on record for delayed responsiveness of the entire composition
> window, also when typing. Subsequent messages reminds me of window
> recycling, could that play a role?
> 
> f16jetjock, can you go into config editor (options, advanced...) and check
> the value of this pref:
> mail.compose.max_recycled_windows;1
(In reply to Thomas D. from comment #9)
> (In reply to F16JetJock from comment #0)
> 
> > The first letter-only of the desired name appears followed with the rotating
> > doughnut for an average of 30 seconds. Immediately on completion, the
> > originating TB window appears. After having to manually return the to
> > "Write" or "New Message" page where autocomplete was attempted, only the
> > first letter of the desired name appears in the "To:" line.
> 
> Can you add screenshot how it looks when "originating TB window appears"?
> Looks like f16jj is seeing two windows, which really points to something
> beyond just autocompletion.
> 
> f16jj, can you try if the same problem also occurs in Safe Mode (Help >
> Restart with addons disabled)?

I'll also address Safe Mode operation tomorrow.
Problem resolved.
The problem was systemic in nature caused by definitive corruption of W7-64 registry and who-knows what else.
After W7 and all resident programs were reloaded and functioning including Thunderbird 31.1.1, the "hang-up" problem ceased. The "To:" line now populates immediately 100% of the time (within a couple hundred milliseconds).

Many thanks for your help in trying to resolved this issue.

Cheers!
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Resolution: INVALID → WORKSFORME
Depends on: 1012397
No longer depends on: 1012397
(In reply to F16JetJock from comment #14)
> Problem resolved.
> The problem was systemic in nature caused by definitive corruption of W7-64
> registry and who-knows what else.
> After W7 and all resident programs were reloaded and functioning including
> Thunderbird 31.1.1, the "hang-up" problem ceased. The "To:" line now
> populates immediately 100% of the time (within a couple hundred
> milliseconds).

Thanks for reporting this feedback. This makes it sound like the problem was not Thunderbird but some other program, like antivirus, for which we use a resolution value of INVALID.
Resolution: WORKSFORME → INVALID
We're exploring performance improvements wrt single-character searches in bug 984875.
See Also: → 984875
(In reply to Thomas D. from comment #16)
> We're exploring performance improvements wrt single-character searches in
> bug 984875.

Oh actually bug 984875 is fixed but iirc there's yet another one where we are exploring further improvements.

Aceman, do you remember the bug where we wanted to implement a delay before starting single-character searches?
Flags: needinfo?(acelists)
Probably bug 1085674.
Flags: needinfo?(acelists)
Depends on: 1085674
Thanks Aceman :)
You need to log in before you can comment on or make changes to this bug.