Advice on debugging a blocked main thread only on iOS
I've been developing a little card game as a way to get back into unity and things had been going pretty well when testing in the editor and on macOS and Windows. After a few weeks though I thought I ought to check out how it was looking on iPhone and I found it would hang after a minute or so with Update
no longer getting called.
So my gut is telling me I'm doing something naughty on the main thread, perhaps I'm messing up some coroutines which I've been using for a bunch of simple animations. I haven't found anything overly suspicious though and my current strategy of commenting out my scripts and crossing my fingers is proving pretty fruitless. Does anyone have any thoughts as to either:
What kind of differences in platform could lead to such a bug. What is it about iPhone that could cause a hang that I've never seen on my macbook or PC.
What kind of strategies are there for figuring out what could be blocking the main thread, particularly on an iOS device?
I realize perhaps there's not a lot to go on here but even a slight prod in the right direction would be greatly appreciated. Thanks in advance.
Your answer
Follow this Question
Related Questions
c# shooting problem (probably pretty simple) 2 Answers
I can't figure out how to get the audioClip of a movieTexture in code. 0 Answers
c# How to delay code for animator animation to finish 2 Answers
"Can't add script behaviour AICharacterControl. The script needs to derive from MonoBehaviour!" ? 2 Answers
Can't stop a Coroutine with a Coroutine Reference ?! 0 Answers