1. Due to the recent site upgrade, the iPadForums (iPF) App will no longer work. The new iPadForums.net website has been designed from the ground up to work perfectly from any mobile, tablet, or desktop computer using the built in internet browser. Create a shortcut to iPadForums.net on your home screen by following these steps: Create an icon for iPadForums.net

Determining cause of crash

Discussion in 'iPad Development' started by jpanettiere, Jun 1, 2012.

  1. jpanettiere
    Offline

    jpanettiere iPF Noob

    Joined:
    Jun 1, 2012
    Messages:
    2
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    Mahwah, NJ
    Ratings:
    +0 / 0
    Hello, I'm developing an iPad app in Objective-C++. The app works fine under the Xcode debugger - never crashes - but when I run it by itself, without the debugger, it crashes about 9 out of 10 times. If I try launching the app, and then connect to the process with the Xcode debugger, it doesn't crash.

    With log messages, I've been able to determine that the crash happens soon after a call to CFStreamCreatePairWithSocketToHost. Not opening the output stream after the call to this function almost prevents the crash, but not entirely.

    Is there some way I can determine the cause of the crash without requiring the use of the debugger? Is there some kind of core dump or something I can load into the debugger after the crash has happened?

    Thank you.
  2. Rusdev
    Offline

    Rusdev iPF Noob

    Joined:
    Jun 1, 2012
    Messages:
    4
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    Whenever an app crashes it leaves a crash log which you can get via XCode organizer. Log will contain a stack trace (once symbolicated).

    If I had to guess, you are trying to open a network connection on the main thread. This will work on the debugger since the watchdog is disabled, but when you start up the app yourself it will get killed by the watchdog for freezing the UI.

    Could be something else, but that's where I would start.

Share This Page

Search tags for this page

cfstreamcreatepairwithsockettohost post