Crash on Timer Action Event

  1. last week

    Michael M

    Dec 1 Pre-Release Testers, Xojo Pro

    I am trying to refresh (invalidate) a canvas in one of my views from a timer action event. Code works fine in the simulator but when I run on my iPhone it crashes in my timer event. Anyone had anything like this happen? Here is the crash dump:

    Thread 0 name: Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0 libsystem_kernel.dylib 0x00000001b118cef4 __pthread_kill + 8
    1 libsystem_pthread.dylib 0x00000001b10add1c pthread_kill + 196
    2 libsystem_c.dylib 0x00000001b103da54 abort + 104
    3 libsystem_c.dylib 0x00000001b103cda8 err + 0
    4 rumbl 0x00000001011e150c UnhandledException(RuntimeObject*) + 2413836 (iOSApplication.mm:0)
    5 rumbl 0x00000001011f8dbc -[XOJTimerAdapter timerFireMethod:] + 2510268 (RBCoreTimer.mm:37)
    6 Foundation 0x00000001b1797ac4 __NSFireTimer + 68
    7 CoreFoundation 0x00000001b131d8d4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
    8 CoreFoundation 0x00000001b131d60c __CFRunLoopDoTimer + 928
    9 CoreFoundation 0x00000001b131cc80 __CFRunLoopDoTimers + 280
    10 CoreFoundation 0x00000001b1317b28 __CFRunLoopRun + 1896
    11 CoreFoundation 0x00000001b1317098 CFRunLoopRunSpecific + 480
    12 GraphicsServices 0x00000001bb481534 GSEventRunModal + 108
    13 UIKitCore 0x00000001b54377ac UIApplicationMain + 1940
    14 rumbl 0x00000001011e1e90 runIOSMainLoop() + 2416272 (iOSAppDelegate.mm:170)
    15 rumbl 0x0000000100f9bd9c Xojo._RuntimeRun + 36
    16 rumbl 0x00000001010db330 _Main + 404
    17 rumbl 0x00000001010dab28 main + 36
    18 libdyld.dylib 0x00000001b1196f30 start + 4

    My app seems to crash with an UnHandledException right after I call the canvas invalidate method.

  2. Derk J

    Dec 1 Pre-Release Testers, Xojo Pro

    Can you check what type of exception* this is and post the timer settings or code line?

    * using introspection:

    Var eType as String = Introspection.GetType(error).FullName

or Sign Up to reply!