Lag in Typing in Yosemite's Mail w/ External Apple Keyboard

Since upgrading to Yosemite I have been having a very annoying problem with delayed typing response in Mail when I have my external USB Apple keyboard (current model with numeric pad). It is a sporadic issue. Typing will be responsive, then there are 2-4 second delays in response. I have only witnessed the issue with Mail and when using the external keyboard. Problem does not occur in other programs or when using my MacBook Pro's built in keyboard. Nor did the problem exist prior to upgrading to Yosemite.


My equipment is a late 2013 MacBook Pro Retina. When on my desk, I have it connected to a 23" Apple Display (original LCD), USB Apple Keyboard, Logitech cordless Trackman, and a Drobo firewire external drive.


Has anyone else witnessed this issue? Or have an suggestions on correcting?


Thank you in advance!

MacBook Pro with Retina display, OS X Yosemite (10.10), Mail

Posted on Nov 1, 2014 5:46 PM

Reply
588 replies

Feb 5, 2015 2:22 PM in response to Andrew-StL

To track down one more point, I ran Verify on all my fonts. A number had yellow triangles. That's probably understandable as I've probably collected fonts over many years.

One said "Don't Use." That was Helvetica RO. That seemed mildly suspicious to me, but I've been using Helvetica Neue in Mail as a default.

I removed all fonts that were marked either way.


I also ran a demo of Font Doctor. It didn't flag any of the fonts that Font Book flagged, but did flat a bunch of others. The demo is pretty much useless, but I manually moved all the ones Font Doctor said had bad file structures.


Again, this may take days to test.

Feb 5, 2015 3:45 PM in response to Andrew-StL

OK, time for some new theories. I did a line for line comparison of the com.apple.mail.plist files on Marcie's computer and mine. I found several "interesting" keys that I decided to play around with.


AddInvitationsToICalAutomatically -- is set to "true" (string = 1) in mine, "false" in Marcie's. So I changed that one to false. I think this is a red herring, but I'm putting it in here as documentation.


Here are the two that I'm kinda interested in:


WebAutomaticSpellingCorrectionEnabled -- This key exists in my settings, does not in Marcie's. It was set to "false" in mine, but I went ahead and deleted the whole key


WebAutomaticTextReplacementEnabled -- THIS is the one I'm really interested in. It existed in my settings, but not Marcie's. It was also set to "true" in mine. Again, I deleted the whole key.


Searching on WebAutomaticTextReplacementEnabled came up with a bunch of hits, all of which kinda point to the my latest cracked-brain theory. I'm wondering if this WebAutomaticTextReplacementEnabled gizmo is actually *going out on the network* to do its spell-checking and replacement stuff. That might explain why I find that the lag is worse at "busy" times of the day -- like around 8 or 9am Central time.


Anybody get to this theory before I did? I'll circle back around after a day or so and give you a report. If you want to try these on your own, here are the commands I used (no warranty express or implied). I'd be curious to see if anybody else even has these settings in their preferences. The first person who tries to read that WebAutomaticTextReplacementEnabled setting and finds that they don't have this key will blow up this theory. ;-)


defaults read com.apple.mail AddInvitationsToICalAutomatically (what's up with this setting?)

1 (which means "true" in Settings Land)

defaults write com.apple.mail AddInvitationsToICalAutomatically -string "0" (sets that value to "false)

defaults read com.apple.mail AddInvitationsToICalAutomatically (checks to see if it worked)

0 (it did)


defaults read com.apple.mail WebAutomaticSpellingCorrectionEnabled (what's up with this setting?)

0 (it's false -- but since Marcie's settings don't have this key at all, I'll delete the whole key)

defaults delete com.apple.mail WebAutomaticSpellingCorrectionEnabled (command delete the whole key)

defaults read com.apple.mail WebAutomaticSpellingCorrectionEnabled (check to make sure it's gone)

2015-02-05 17:36:42.334 defaults[6314:112885]

The domain/default pair of (/Users/blah/Library/Containers/com.apple.mail/Data/Library/Preferences/com.app le.mail, WebAutomaticSpellingCorrectionEnabled) does not exist (these three lines mean that it's gone -- which is what I want)





defaults read com.apple.mail WebAutomaticTextReplacementEnabled (what's up with this setting?)

1 (it's true -- but since Marcie's settings don't have this key at all, I'll delete the whole key)

defaults delete com.apple.mail WebAutomaticTextReplacementEnabled (command delete the whole key)

defaults read com.apple.mail WebAutomaticTextReplacementEnabled (check to make sure it's gone)

2015-02-05 17:36:42.334 defaults[6314:112885]

The domain/default pair of (/Users/blah/Library/Containers/com.apple.mail/Data/Library/Preferences/com.app le.mail, WebAutomaticSpellingCorrectionEnabled) does not exist (these three lines mean that it's gone -- which is what I want)

Feb 5, 2015 3:50 PM in response to fisherKing

Quite a while ago, I mentioned that sometimes when I got the lag, I had noticed that as there was a momentary SBBoD, there was also a momentary flash of a menu bar item (like when one uses a keyboard shortcut) and I wasn't sure which one it was. It was either File or Edit but it was always out of the corner of my eye.


Well, maybe the good news is that just now I saw which one it was quite clearly, it was File. There are only 10 menu items with shortcuts under File and most of them are quite clearly not being invoked at that moment as the action being commanded does not occur; i.e. New Message, Open Message, Close, Print etc. would all cause something visible to happen on screen. The only possible item from the File menu which could be invoked without its action being seen is Save.


It's interesting, therefore, that some people have reported that manually saving their e-mails has given some respite from the problem because what they may have been doing is triggering the cause of the lag at the moment they manually saved and as it is very unlikely (if not near impossible) that anybody could manually save and type at the same time, they would not actually see the effect in that instant.

Feb 5, 2015 8:48 PM in response to Digitalclips

I talked to AppleCare today for about 40 minutes on this issue.

I have a mid-2014 MBP, 2 months old, OS X 10.10.2. No extra typing add-ons, etc. as have been discussed here.


First we tried creating a new user account. I logged in to the new user, created a mail account using the same settings as my normal account and tried typing an email, the lag was gone.


Logged back into my regular account the lag was back. I was moved up to a higher level tech, who had me backup my mail folder at ==> "~/Library/Mail/V2" to the desktop and delete the ~/Library/Mail/V2 folder. I also exported my mailbox from within Mail ==> "Mailbox/Export Mailbox..." to the desktop.


I rebooted and started up mail, tested the typing lag, and it was gone. I shut down mail, moved the V2 folder back to the ~/Library/Mail folder and imported the "INBOX.mbox" file from the previous export back into Mail ==>"File/Import Mailboxes..."


So far no more lag . .


The Apple tech was pretty perplexed about the entire episode and has given me his contact information to keep him posted on any changes.


I can't say for sure if this is a permanent fix, and will try to chime in again in a few days or if and when the lag shows up again.


Curious to see if any of you want to give this a try, nothing real scientific here, just possibly some quirky good luck . . stay tuned.

Feb 6, 2015 1:16 PM in response to Andrew-StL

Here's an observation:

Mail has actually been pretty good for me for a couple of days. Today, I did notice some text-display delays. Then, looking closely, I thought I saw what I have to call mini delays. Some characters would appear just barely delayed. If I hadn't been looking closely, I wouldn't have noticed.


For the record, again, I have not seen text display delays in any other app.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Lag in Typing in Yosemite's Mail w/ External Apple Keyboard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.