Whenever the “discarding message” log comes, my app becomes unresponsive. It doesn’t crash, but doesn’t respond to touches either. As if all touch handling stops after my app goes to back ground , and 2~3 min later when my app goes to fore ground and touch menu , there is no response, and then few min later it dose work
These messages are coming from Core Location framework. This implies that the CLLocationManager wasn't created on the main thread.
Is it related to app unresponsive?
Yes. When it goes into background mode after sometime app will be unresponsive.
I was facing exactly the same behavior. This is what I noticed some time after I arrived here.
My first guess was a memory leak or maybe some missing thread but I used this answer to notice that my CPU was blowing up.
Then I tracked the method that was using all the CPU, in my case It was a validation on a UITextField
via regex. After some research I realized that I was having a catastrophic backtrack. I improved my regex and everything goes well.
I hope this answer would help anyone that arrive here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With