转载自:http://stackoverflow.com/questions/2295295/warning-check-safe-call-could-not-restore-current-frame
@H_502_20@
What does the error I'm getting this error on the device (not the simulator). Any ideas how to debug this? Thanks. Edit:I added the reason for my crash in an answer below (creating too many sqlite connections). If anyone else gets this error and finds their solution,please post it below. It seems like an error message with multiple causes.
|
||||
Feedback
|
2
|
I've seen this a few times,but never been able to actually pinpoint it to a problem outright.Although,the times I've seen it usually there has been some kind of infinite loop or recursion gone wrong and the debugger will catch it.I don't know if you've left it long enough,but after a while,the debugger should start to load the stack frames it does have and display them in the debugger window. There you should be able to see what is going wrong. Like I said,usually when I've seen this its been due to infinite loops or recursion and the debugger will show upwards of 5000 calls to the same function,so finding the problem shouldn't be too difficult - but,saying that,it may not be the exact issue. Just my two cents. |
||
Feedback
|
This warning also may happens when to use stack based block out of the scope the block defined without copying it.
I found the error in my code. It turns out that the sqlite database I was using was causing the crash. I was forgetting to close my database connection,and each time the code hit a particular function,I'd open a new connection. Eventually there were too many,and the app crashed.
It's looking like a lot of these errors are to do with a kind of overload (as Jasarien says).