Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

ARKit Image Tracking Example not running on iPhone 6s

Discussion in 'Handheld AR' started by efge, Dec 7, 2018 at 2:28 PM.

  1. efge

    efge

    Joined:
    Dec 13, 2007
    Posts:
    55
    The example scene from the Unity3D ARKit plugin is crashing when running on iPhone 6s.
    UnityARKitPlugin⁩/Examples⁩/⁨ARKit1.5⁩/⁨UnityARImageAnchor⁩

    UnityARImageAnchorDataFromARImageAnchorPtr
    anchorData.isTracked = [nativeAnchor isTracked] ? 1 : 0;

    Reproduced with:
    iPhone 6s
    iOS 12.1.1
    Unity 2018.2.8f1
    Unity-Technologies-unity-arkit-plugin-b9647e5a9bd8 (latest)
    No modifications to downloaded plugin and scripts.

    Any help would be greatly appreciated!

    Thanks,
    FF
     
    Last edited: Dec 7, 2018 at 3:24 PM
  2. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    266
    Do you have a callstack for the crash?
     
  3. efge

    efge

    Joined:
    Dec 13, 2007
    Posts:
    55
    2018-12-07 16:26:15.648517+0100 arkitscene[976:220494] -[ARImageAnchor isTracked]: unrecognized selector sent to instance 0x1c03418c0
    2018-12-07 16:26:15.671315+0100 arkitscene[976:220494] Uncaught exception: NSInvalidArgumentException: -[ARImageAnchor isTracked]: unrecognized selector sent to instance 0x1c03418c0
    (
    0 CoreFoundation 0x0000000182dbeda4 <redacted> + 252
    1 libobjc.A.dylib 0x0000000181f785ec objc_exception_throw + 56
    2 CoreFoundation 0x0000000182dcc098 <redacted> + 0
    3 CoreFoundation 0x0000000182dc45c8 <redacted> + 1380
    4 CoreFoundation 0x0000000182caa41c _CF_forwarding_prep_0 + 92
    5 arkitscene 0x0000000102d3f188 _Z42UnityARImageAnchorDataFromARImageAnchorPtrR22UnityARImageAnchorDataP13ARImageAnchor + 344
    6 arkitscene 0x0000000102d3efdc -[UnityARImageAnchorCallbackWrapper sendAnchorAddedEvent:] + 44
    7 arkitscene 0x0000000102d403f0 -[UnityARSession sendAnchorAddedEventToUnity:] + 256
    8 arkitscene 0x0000000102d402a8 -[UnityARSession session:didAddAnchors:] + 24
    9 ARKit 0x000000019e71b5d8 <redacted> + 132
    10 libdispatch.dylib 0x00000001826b0aa0 <redacted> + 24
    11 libdispatch.dylib 0x00000001826b0a60 <redacted> + 16
    12 libdispatch.dylib 0x00000001826bd65c <redacted> + 1012
    13 CoreFoundation 0x0000000182d67070 <redacted> + 12
    14 CoreFoundation 0x0000000182d64bc8 <redacted> + 2272
    15 CoreFoundation 0x0000000182c84da8 CFRunLoopRunSpecific + 552
    16 GraphicsServices 0x0000000184c6a020 GSEventRunModal + 100
    17 UIKit 0x000000018cca4758 UIApplicationMain + 236
    18 arkitscene 0x0000000102c983f0 main + 160
    19 libdyld.dylib 0x0000000182715fc0 <redacted> + 4
    )
    2018-12-07 16:26:15.674151+0100 arkitscene[976:220494] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ARImageAnchor isTracked]: unrecognized selector sent to instance 0x1c03418c0'
    *** First throw call stack:
    (0x182dbed8c 0x181f785ec 0x182dcc098 0x182dc45c8 0x182caa41c 0x102d3f188 0x102d3efdc 0x102d403f0 0x102d402a8 0x19e71b5d8 0x1826b0aa0 0x1826b0a60 0x1826bd65c 0x182d67070 0x182d64bc8 0x182c84da8 0x184c6a020 0x18cca4758 0x102c983f0 0x182715fc0)
    libc++abi.dylib: terminating with uncaught exception of type NSException

    By the way, everything works on later devices (tested on iPhone 7 + 8 and iPad Pro 10.5).
     
  4. tdmowrer

    tdmowrer

    Unity Technologies

    Joined:
    Apr 21, 2017
    Posts:
    266
    Sounds like the plugin is trying to use an unsupported API. We may be missing some checks for that in the plugin -- are you trying to use image tracking?

    Edit: Nevermind, that's how this thread started :) I'll investigate and get back to you.
     
    Last edited: Dec 8, 2018 at 12:28 AM
    efge likes this.