iOS5 What does Discarding message for event 0 because of too many unprocessed messages mean?
This what Apple Technical Support says about this (after paying $49 for a Developer Tech Support Incident):
These messages are coming from Core Location framework. The most likely cause of these messages is that there isn't a run loop running on the thread on which the CLLocationManager was created. (This implies that the CLLocationManager wasn't created on the main thread.) The messages that are being discarded are location messages: event 0 is a location and event 24 is an authorization status update, for example. Because the messages being discarded, you won't see the appropriate delegate callbacks being invoked. Did you set up a geofence or some other callback and isn't servicing it quickly enough? The queue limit appears to be 10 before it starts dumping events and logging this message.
This information isn't publicly documented yet. I'm working with the Core Location team to improve the reported messages and see if this can be better documented.
Xcode leak tool stuck on MapkKit/CllocationManager Ios8
In the end I found the problem. Well the problem was pretty stupid I believe not many people will ever have this kind of issue but i will post my silly mistake.
While I developed the app I included a lot of logs there (some response from the server) as the time passed I forgot to remove them (of course before the release I would ).
That what actually stuck the app when it was running using tools.
That the response I received from apple support:
As NSLog also writes on the main thread, it was blocking both the map display and the location manager.
One thing to keep in mind is, although NSLog is generally used for printing our debug information, that is not it’s real job.
If you look at the Foundation Framework Reference docs, NSLog is described as: Logs an error message to the Apple System Log facility.
Therefore it is a very heavyweight call, and effects the performance of apps a lot.
and indeed when I run "Time profiler" I noticed that percentage time of running Nslog in some method are quite heigh.......
startMonitoringForRegion not always working
after searching and different trials i figured out how to solve it.
simply that view has to be visible and running all the time in order for the didEnterRegion and didExitRegion to work.
i moved everything to the appDelegate and now it's working.
Related Topics
Error Appstore Connect:Missing Purpose String in Info.Plist File
"Initialize" Class Method for Classes in Swift
Dynamic Uiimageview Size Within Uitableview
Can't Prevent 'Touchmove' from Scrolling Window on iOS
Auto Layout Constraint on Calayer iOS
Get Email and Name Facebook Sdk V4.4.0 Swift
How to Check If Device Can Make a Phone Call (iOS 8)
What Exactly Are Protocols and Delegates and How Are They Used in iOS
Swift iOS Add Infinite Scroll Pagination to Uitableview
Nsurlconnection Deprecated in iOS9
The Identity Used to Sign the Executable Is No Longer Valid
--Resource-Rules Has Been Deprecated in MAC Os X >= 10.10
iOS Get Heart Rate from Apple Watch in Near Real Time
Wkwebview Didn't Finish Loading, When Didfinishnavigation Is Called - Bug in Wkwebview
How to Set a Default Value of a Uipickerview
Request Permissions Again After User Denies Location Services
Autolayout Multiline Uilabel Cutting Off Some Text
How to Make Uiimageview Automatically Resize to the Size of the Image Loaded