Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Fatal Exception: NSInvalidArgumentException in IsForceTouchSupported/iPhoneInputImpl.mm:528?

Discussion in 'iOS and tvOS' started by chillypacman, Jun 22, 2017.

  1. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    So the game loads on iPhone 6 but as soon as I touch the screen anywhere the game crashes with the following (works fine on most other devices including other devices which don't support forcetouch):

    Fatal Exception: NSInvalidArgumentException
    0 CoreFoundation 0x18260da94 __exceptionPreprocess
    1 libobjc.A.dylib 0x197057f80 objc_exception_throw
    2 CoreFoundation 0x1826147ac __methodDescriptionForSelector
    3 CoreFoundation 0x18261174c ___forwarding___
    4 CoreFoundation 0x1825158ac _CF_forwarding_prep_0
    5 saisai 0x100d71a8c ___Z21IsForceTouchSupportedv_block_invoke (iPhoneInputImpl.mm:528)
    6 libdispatch.dylib 0x19787580c _dispatch_client_callout
    7 libdispatch.dylib 0x197876650 dispatch_once_f
    8 saisai 0x100d70f0c iphone::OnProcessTouchEvents(NSSet*, NSSet*) (once.h:68)
    9 saisai 0x100d79784 UnitySendTouchesBegin (TrampolineGlue.mm:31)
    10 saisai 0x10010bf7c -[UnityView touchesBegan:withEvent:] (UnityView.mm:186)
    11 UIKit 0x187b548d4 -[UIWindow _sendTouchesForEvent:]
    12 UIKit 0x187b4dcf0 -[UIWindow sendEvent:]
    13 UIKit 0x187b1eea4 -[UIApplication sendEvent:]
    14 UIKit 0x187b1d520 _UIApplicationHandleEventQueue
    15 CoreFoundation 0x1825c50dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
    16 CoreFoundation 0x1825c4b70 __CFRunLoopDoSources0
    17 CoreFoundation 0x1825c2870 __CFRunLoopRun
    18 CoreFoundation 0x1824f18a0 CFRunLoopRunSpecific
    19 GraphicsServices 0x18d54c088 GSEventRunModal
    20 UIKit 0x187b860d4 UIApplicationMain
    21 saisai 0x1000f8d9c main (main.mm:32)
    22 libdyld.dylib 0x1978a68b8 start​
     
  2. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    *bump*

    anyone have any ideas? I'm really quite desperate...
     
  3. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    If it helps this is what the call stack looks like...

     
  4. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @chillypacman,
    Do you have the full crash file? Can you file a bug with that and a small repro project. Afterwards, post the case number here.
    Cheers,
    Chris
     
  5. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    Hey Chris, just did that: Case 936352.
     
  6. Ali_V_Quest

    Ali_V_Quest

    Joined:
    Aug 2, 2015
    Posts:
    138
    I know this is old, but did you manage to find a solution ?