开发者

my app get crash but nothing get shown other than the line that dataformatter is not available temporarily what should i do now?

开发者 https://www.devze.com 2023-02-09 10:14 出处:网络
i am developingsimple game application just using pan gesture and cgaffinetransform rotate application getting crash at unpredictable timeand console is displaying the following line

i am developing simple game application just using pan gesture and cgaffinetransform rotate

application getting crash at unpredictable time and console is displaying the following line how Could i Overcome this problem? it is also show the memory waring lavels though i am releasing every things

Program received signal: “0”.

Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")

开发者_开发百科Thank You In Advance


Every time I've encountered this it has been memory related. Basically, at some point during the rotation, there is a memory spike and the app is crashing. I had a similar issue on an app I'm working on that had a large UIScrollView. I was trying to scroll and zoom in a view that was way too big.

Is your game view very large? Like many times the size of the iphone/ipad screen? If so, you will need to make it smaller or load it in segments somehow.

Without seeing your code or knowing more information about the problem, it's hard for me to give you good advice on how to fix it, but Program received signal: “0” is definitely a memory error so that's where you can start looking. In my case I found that during a redraw of a view's layer (using setNeedsDisplay) there is a big memory spike during the draw somewhere in Apple's methods that is proportional to the size of the view. I assume there could be a similar memory spike in your case. Also, when it happened to me, I was using Instruments to try and track memory usage and the spike never showed there, it would crash before it could report the memory usage.

Hope this helps.


GDB and valgrind are your best bet.


Guys, I Have OverCome My Problem With The Help Of This method

-(void)didReceiveMemoryWarning
{
  [super DidreceiveMemoryWarning]
//I Have release All The object Here and It Work For me 
}

It Work Great NO Crash Issue Is Remain...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号