Xcode build crashing



  • My project runs fine inside of hyperPad, but when using an Xcode build, I'm getting this crash after tapping an image and getting a color of an object. My code is not doing anything with that color, however.

    Looks like a classic dangling pointer issue where an UIDeviceRGBColor object is at the location of a previous object that could recognize the hexadecimalString selector.

    lldb log with offending backtrace:

    2018-09-29 17:38:31.612925-0700 hyperPad-Project[8957:13066425] -[UIDeviceRGBColor hexadecimalString]: unrecognized selector sent to instance 0x604000e6c9c0
    2018-09-29 17:38:31.641629-0700 hyperPad-Project[8957:13066425] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDeviceRGBColor hexadecimalString]: unrecognized selector sent to instance 0x604000e6c9c0'
    *** First throw call stack:
    (
    0 CoreFoundation 0x000000010c8bf1e6 __exceptionPreprocess + 294
    1 libobjc.A.dylib 0x0000000113c0a031 objc_exception_throw + 48
    2 CoreFoundation 0x000000010c940784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3 CoreFoundation 0x000000010c841898 forwarding + 1432
    4 CoreFoundation 0x000000010c841278 _CF_forwarding_prep_0 + 120
    5 hyperPad-Project 0x000000010a74fdea +[GetColourBehaviour executeActionWithBehaviour:withParams:] + 1252
    6 hyperPad-Project 0x000000010a73852f -[BehaviourParser executeBehaviour:withParams:isRoot:] + 339
    7 hyperPad-Project 0x000000010a737ede -[BehaviourParser parseBehaviour:withParameters:] + 3051
    8 hyperPad-Project 0x000000010a7a273c +[LoadValueBehaviour_v1_14 executeActionWithBehaviour:withParams:] + 540
    9 hyperPad-Project 0x000000010a73852f -[BehaviourParser executeBehaviour:withParams:isRoot:] + 339
    10 hyperPad-Project 0x000000010a737ede -[BehaviourParser parseBehaviour:withParameters:] + 3051
    11 hyperPad-Project 0x000000010a7a273c +[LoadValueBehaviour_v1_14 executeActionWithBehaviour:withParams:] + 540
    12 hyperPad-Project 0x000000010a73852f -[BehaviourParser executeBehaviour:withParams:isRoot:] + 339
    13 hyperPad-Project 0x000000010a737ede -[BehaviourParser parseBehaviour:withParameters:] + 3051
    14 hyperPad-Project 0x000000010a864ddc -[PlayerGameObject handleTouchesBeganBehavioursWithFirstPoint:] + 2203
    15 hyperPad-Project 0x000000010a8643ad -[PlayerGameObject ccTouchBegan:withEvent:] + 2256
    16 hyperPad-Project 0x000000010a7e47df -[PlayerGridLayer touchBegan:withEvent:] + 1396
    17 hyperPad-Project 0x000000010a9b6aab -[CCResponderManager touchesBegan:withEvent:] + 1835
    18 hyperPad-Project 0x000000010a4af8f8 -[HPCCGLView touchesBegan:withEvent:] + 312
    19 UIKit 0x000000010f365e1a -[UIWindow _sendTouchesForEvent:] + 2052
    20 UIKit 0x000000010f3677c1 -[UIWindow sendEvent:] + 4086
    21 UIKit 0x000000010f30b310 -[UIApplication sendEvent:] + 352
    22 UIKit 0x000000010fc4c6af __dispatchPreprocessedEventFromEventQueue + 2796
    23 UIKit 0x000000010fc4f2c4 __handleEventQueueInternal + 5949
    24 CoreFoundation 0x000000010c861bb1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
    25 CoreFoundation 0x000000010c8464af __CFRunLoopDoSources0 + 271
    26 CoreFoundation 0x000000010c845a6f __CFRunLoopRun + 1263
    27 CoreFoundation 0x000000010c84530b CFRunLoopRunSpecific + 635
    28 GraphicsServices 0x00000001178dfa73 GSEventRunModal + 62
    29 UIKit 0x000000010f2f0057 UIApplicationMain + 159
    30 hyperPad-Project 0x000000010a4affff main + 111
    31 libdyld.dylib 0x0000000114bba955 start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb)


  • Admin

    Should be fixed with the latest builds


Log in to reply