Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Advice on debugging a blocked main thread only on iOS

$
0
0
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: 1. 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. 2. 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.

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>