Weird Get object crash (257.10)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I've been using the Get object without problems for a long time, but now suddenly this simple event crashes my app:

    Start of frame
    --> Get URL Please login to see this link.

    On get complete
    + one action when event loops
    --> Set alterable string to Received$("Get")

    Crashes every time on my iPhone 5 iOS 6.

    I get EXC_BAD_ACCESS errors in 0_cache_getImp, UIApplicationMain, etc.

    As usual, I have tested this on other runtimes and within MMF2, and it works normally there.

    I will PM an mfa to Anders and Francois, if you have time to take a look what's going on.

  • Just to note, you don't need:
    + Only one action when event loops

    as the event won't loop, it's an immediate event. I'm unsure whether that'll cause the crash but it's worth taking it out and trying again.

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • I tried your file and it worked perfectly both on the simulator and on the device. Can you try clean your project and delete the derived data for your project? (To delete the rerived data you go to the Organizer, find your project and click 'Delete...' to the right of 'Derived Data'.

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

  • Thanks Anders, however no solution yet. I tried cleaning and deleting the derived data. I've rebooted my phone, mac and PC. Tried also with completely new iOS Xcode project and with a new mfa re-created with same events as in my example mfa. Have tested with iPhone 5 iOS 6.0, iPod touch 4th gen iOS 6.0, iPad 1 iOS 5.1.1 and iPhone 6.1 emulator. It's really weird that none of these worked while you had no problems running it on your side.

    Below's the Xcode output from my last try. Does it say something to you?

    2013-05-03 17:41:29.596 crashtest[560:1403] ADDRESPONSE - ADDING TO MEMORY ONLY: Please login to see this link.
    2013-05-03 17:41:29.739 crashtest[560:907] CRASH: *** -[NSPlaceholderString initWithString:]: nil argument
    2013-05-03 17:41:29.926 crashtest[560:907] Stack Trace: (
    0 CoreFoundation 0x350cb2bb <redacted> + 186
    1 libobjc.A.dylib 0x32bcb97f objc_exception_throw + 30
    2 CoreFoundation 0x350cb1c5 <redacted> + 0
    3 Foundation 0x37139e11 <redacted> + 92
    4 crashtest 0x00111695 -[CValue forceString:] + 236
    5 crashtest 0x00157d93 -[CRunGet expression:] + 250
    6 crashtest 0x001fe5f7 -[CExtension expression:] + 62
    7 crashtest 0x00110dc5 callExp_Ext + 376
    8 crashtest 0x00228767 -[CRun getExpression] + 142
    9 crashtest 0x002284f7 -[CRun get_EventExpressionStringNoCopy:] + 110
    10 crashtest 0x000fde03 actTxtSetString + 222
    11 crashtest 0x0010f45d callAction_Text + 92
    12 crashtest 0x000eccbd -[CEventProgram call_Actions:] + 652
    13 crashtest 0x000ec0b5 -[CEventProgram computeEventList:withObject:] + 624
    14 crashtest 0x000eb8f3 -[CEventProgram handle_Event:withCode:] + 190
    15 crashtest 0x000efca3 -[CEventProgram handle_PushedEvents] + 354
    16 crashtest 0x002234ef -[CRun f_GameLoop] + 2998
    17 crashtest 0x00213a2d -[CRun doRunLoop] + 132
    18 crashtest 0x000c32db -[CRunApp loopFrame] + 130
    19 crashtest 0x000c1a63 -[CRunApp playApplication:] + 734
    20 crashtest 0x000d1a13 -[CRunView timerEntry] + 1850
    21 Foundation 0x371a374b <redacted> + 62
    22 CoreFoundation 0x350a05df <redacted> + 14
    23 CoreFoundation 0x350a0291 <redacted> + 272
    24 CoreFoundation 0x3509ef01 <redacted> + 1232
    25 CoreFoundation 0x35011ebd CFRunLoopRunSpecific + 356
    26 CoreFoundation 0x35011d49 CFRunLoopRunInMode + 104
    27 GraphicsServices 0x32cc72eb GSEventRunModal + 74
    28 UIKit 0x34a89301 UIApplicationMain + 1120
    29 crashtest 0x000b618b main + 114
    30 crashtest 0x0009b6e8 start + 40
    )
    2013-05-03 17:41:29.943 crashtest[560:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
    *** First throw call stack:
    (0x350cb2a3 0x32bcb97f 0x350cb1c5 0x37139e11 0x111695 0x157d93 0x1fe5f7 0x110dc5 0x228767 0x2284f7 0xfde03 0x10f45d 0xeccbd 0xec0b5 0xeb8f3 0xefca3 0x2234ef 0x213a2d 0xc32db 0xc1a63 0xd1a13 0x371a374b 0x350a05df 0x350a0291 0x3509ef01 0x35011ebd 0x35011d49 0x32cc72eb 0x34a89301 0xb618b 0x9b6e8)
    libc++abi.dylib: terminate called throwing an exception
    (lldb)

  • Ah, it is a bug I already fixed in my local branch of the code. It will be in the next release. I will send you an updated file to use until then. :)

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!