Program received signal SIGABRT

后端 未结 1 1855
悲哀的现实
悲哀的现实 2020-12-29 13:11

I working in iPhone application, i am picking an image from photo library using UIImage picker control, then processing it and displays the image and the corresponding outpu

相关标签:
1条回答
  • 2020-12-29 13:36

    SIGABRT is raised by the abort(3) function. It's impossible to tell exactly what's going on in your program without more information, but the most common reasons that abort() gets called are:

    • You're sending a message to an Objective-C object that doesn't support/implement that message. This results in the dreaded "unrecognized selector sent to instance" error.
    • You have a failed assertion somewhere. In non-debug builds that define the macro NDEBUG, the standard library macro assert(3) calls abort() when the assertion fails
    • You have some memory stomping/allocation error. When malloc/free detect a corrupted heap, the may call abort() (see, e.g. this question)
    • You're throwing an uncaught exception (either a C++ exception or an Objective-C exception)

    In almost all cases, the debug console will give you a little more information about what's causing abort() to be called, so always take a look there.

    0 讨论(0)
提交回复
热议问题