Redacted madness

Discussion in 'iOS Programming' started by samdev, Nov 12, 2012.

  1. samdev macrumors regular

    Joined:
    Sep 16, 2011
    #1
    How am I suppose to know how my app crashed with all of these redacted lines? :confused:
    I'm guessing this redacted silliness started with iOS 6.0.

    Crash report has been symbolicated, but still useless to me.

    Code:
    Thread: Unknown Name (Crashed)
    0	  libobjc.A.dylib                    	0x33bb05b0 objc_msgSend + 15
    1	  GameKit                            	0x32ff7795 <redacted> + 112
    2	  UIKit                              	0x37031d4d <redacted> + 1576
    3	  UIKit                              	0x36fb66a7 <redacted> + 298
    4	  UIKit                              	0x36fb6481 <redacted> + 916
    5	  UIKit                              	0x36f30abb <redacted> + 158
    6	  UIKit                              	0x36fa58d7 <redacted> + 50
    7	  QuartzCore                         	0x335a7bd9 <redacted> + 208
    8	  libdispatch.dylib                  	0x387bb4b7 <redacted> + 22
    9	  libdispatch.dylib                  	0x387bcdcb <redacted> + 226
    10	 CoreFoundation                     	0x343b6f3b <redacted> + 1290
    11	 CoreFoundation                     	0x34329ebd CFRunLoopRunSpecific + 356
    12	 CoreFoundation                     	0x34329d49 CFRunLoopRunInMode + 104
    13	 GraphicsServices                   	0x350922eb GSEventRunModal + 74
    14	 UIKit                              	0x36f6f301 UIApplicationMain + 1120
    15	 someApp                   		0x000d7995 main (main.m:54)
    
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Delete (or move) any folders here (somewhere else):

    for iOS 6. Then try again.
     
  3. samdev thread starter macrumors regular

    Joined:
    Sep 16, 2011
    #3
    Sorry, I forgot to mention this crash report isn't from the Simulator. It's a live report sent to me.
    App has already been compiled in release mode and sent to the App Store.

    That trick only works for the simulator?
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    Do what I said. Remove the folder. Re-symbolicate.
     
  5. samdev thread starter macrumors regular

    Joined:
    Sep 16, 2011
    #5
    I hear you, but the "raw" crash report already contains redacted lines.
    It doesn't matter if I symbolicate it or not.

    And the report was symbolicated by Crittercism. They use the PLCrashReporter library to generate
    crash reports, so I'm guessing it's not even compatible with XCode.
     
  6. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #6
    If the crash report isn't from Apple then you're probably out of luck. If it is from Apple then what I said should work. Otherwise tell Crittercism to remove the folder I mentioned from their computer and re-symbolicate it for you.

    Look at this thread

    https://devforums.apple.com/thread/171264?start=0&tstart=0
     
  7. samdev thread starter macrumors regular

    Joined:
    Sep 16, 2011
    #7
    Yes, you're definitely right. I'm complaining to the wrong person. :)
    Didn't know where the fault lies, but now I'm on it.

    Thanks again.
     
  8. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #8
    Obviously having a good symbolicated crashlog will make this a little easier to figure out but there are a few things you may be able to determine with what you have. The crash was in objc_MsgSend. This is almost always due to messaging a dealloced object. You might want to turn on Zombies and test your app. You might hit the problem.

    There is none of your app's code in the stack trace. This always makes things harder to figure out. The second to last method is in GameKit. Is there a place in your app that you can tell that GameKit calls your code back?

    Also, it is possible that others have hit the same crash and posted about it. Sometimes you can google for the library names in the log and find a matching crashlog online that's already been symbolicated.
     
  9. samdev thread starter macrumors regular

    Joined:
    Sep 16, 2011
    #9

    I call GameKit in several places, so it would be difficult to track down without a starting point.

    Most crash reports I receive are due to low memory or low disk space conditions, so I assume this
    is mostly due to the user having tons of background apps running. My app might try to allocate
    something and fails, and continues to use that object, even if it's nil. And even if the iOS does
    try to shut down background apps to free up memory, this won't happen fast enough if my app is
    executing code in the middle of a method.
     

Share This Page