Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

iOS ARKit Remote Crashes as soon as a connection to unity is made

Discussion in 'AR' started by saschka, Sep 7, 2018.

  1. saschka

    saschka

    Joined:
    May 24, 2014
    Posts:
    5
    Hi all,

    here's another thread for this issue. There's multiple old ones existing in the forums but they don't seem to be watched anymore or are marked closed. So here's a new one in the hope this finally gets solved.

    What's happening:
    - I'm using Unity 2018.2.6f1 and ArKit 1.5
    - I build the ArKit 1.5 ARKitRemote scene with "Developer Build" checked
    - I start the build on my iPhone X and the FaceAnchorScene in Unity on my Macbook (connected directly via Lightning to USB-C cable with wifi on the phone switched off to ensure the cable is used)
    - As soon as I click the "Start ARKit FaceTracking Session" in Unity the camera flashes on on my phone for one second and then the app crashes while in Unity that first frame is what's frozen on the screen.

    The xCode output of the app shows the following:

    [/Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/GeneralConnection.cpp line 424]
    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/GeneralConnection.cpp Line: 424)
    Can not send network message. Receiver can not keep up with the amount of data sent
    UnityEngine.PlayerConnectionInternal:UnityEngine.IPlayerEditorConnectionNative.SendMessage(Guid, Byte[], Int32)
    UnityEngine.XR.iOS.ConnectToEditor:ARFrameUpdated(UnityARCamera)
    UnityEngine.XR.iOS.ARFrameUpdate:Invoke(UnityARCamera)
    UnityEngine.XR.iOS.UnityARSessionNativeInterface:_frame_update(internal_UnityARCamera)

    I have been having this issue since I tried to work with ArKit a few months back and was never able to get ARKitRemote to run. I tried again a week ago in the hopes things might have been fixed but sadly it doesnt seem to be.

    I've been in all forums threads on this, some say this is fixed in 2018.2 (it is clearly now) and others mentioned the zeroichi fork which I tried but which lead to the same result.

    Any help or pointers would be great, I've been trying to get my face-tracking project started for a while but this issue has been in the way ever since.

    All my best,
    Saschka
     
  2. jimmya

    jimmya

    Unity Technologies

    Joined:
    Nov 15, 2016
    Posts:
    793
    it's fixed in the arkit2.0_beta branch (requires XCode 10 beta and iOS 12 beta).
     
  3. Realform

    Realform

    Joined:
    Mar 20, 2015
    Posts:
    9
    Hello I am reading this post in the future, 'cos I am having same Issue, with an Ipad 6 gen connected via usb to IMAC, once its connected the session in unity, and at the moment I hit the button to start a new session it freezes and close the remote app in the Ipad,

    https://ibb.co/irTn9z

    It only captures first frame and in Imac it got freezed completlely.

    My question is, does this error will got fixed with the update mentioned by "Jymmya"?
    I got a really slow internet connection so download 5 gbs its a pain in the ass :S like 5 hr waiting :'( (low budget for internet)
     
  4. BenjaminBachman

    BenjaminBachman

    Joined:
    Feb 1, 2017
    Posts:
    29
    We experience an instant crash of ARKitRemote on the iPad (2018, non pro, 32GB, iOS 12) when pressing the button in the unity editor.
    Using the newest Unity asset version of commit 87df02a.

    It seems to be a different error (Access violation).

    The ARKitRemote doesn't crash on the iPhone (6s plus) however it is not usable due of the extremely low frame rate of about 1 frame every 5 seconds. We have tested it over USB and Wifi.
     
  5. Staus

    Staus

    Joined:
    Jul 7, 2014
    Posts:
    13
    I get the same behaviour as BenjaminBachman on an iPhone X
     
  6. SynergizMRPP

    SynergizMRPP

    Joined:
    Jul 31, 2018
    Posts:
    1
    I've got the same behaviour as Realform, the error have still not been fixed.
    I've got this message in XCode :
    ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: count
    at System.IO.Compression.DeflateStream.Write (System.Byte[] src, Int32 src_offset, Int32 count) [0x00000] in <filename unknown>:0
    at UnityEngine.XR.iOS.CompressionHelper.ByteArrayCompress (System.Byte[] source) [0x00000] in <filename unknown>:0
    at UnityEngine.XR.iOS.UnityRemoteVideo_OnPreRender () [0x00000] in <filename unknown>:0