Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow defaults access for key ClientState warning on iOS

I'm getting a "Slow defaults access for key ClientState took 0.034635 seconds, tolerance is 0.020000" warning when testing my iOS app - it seems to occur intermittently. I've tried to look around to see what it is about, but I'm not entirely sure! Any help appreciated, thanks.

like image 500
SMSidat Avatar asked Oct 13 '12 12:10

SMSidat


2 Answers

My best guess is that the first Viewcontroller is taking to long to load.

I never got this message until adding a large background png to the first view controller which now exhibits the same behaviour but all the time. Take out the png and I did not get it on 5 loads.

like image 134
depicus Avatar answered Oct 06 '22 23:10

depicus


Guessing same as depicus: first viewController loads too long.

In my case app starts by populating tableView from last saved CoreData. Right after that server tells me authorization has expired, I start re-auth and facebook login view comes on-screen - on top of tableView.

This is were I get that error. Without facebook login, everything is ok == fast enough.

like image 29
JOM Avatar answered Oct 07 '22 00:10

JOM