Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

2017 beta new tango api crashes #103

Open
friuns2 opened this issue Aug 2, 2017 · 1 comment
Open

2017 beta new tango api crashes #103

friuns2 opened this issue Aug 2, 2017 · 1 comment

Comments

@friuns2
Copy link

friuns2 commented Aug 2, 2017

after first BrOnBackgroundRendererChanged its crashes

void Start()
    {
		Debug.Log ("Start");
        TangoDevice.Connect(new TangoConfig() { enableColorCamera = true, enableDepth = true, enableMotionTracking = true });
        line = Instantiate(m_lineRenderer);

		var br = new ARBackgroundRenderer ();
        br.camera = GameObject.Find("CameraImage").GetComponent<Camera>();
        mat.mainTexture = new Texture2D(0, 0, TextureFormat.RGBA32, false);
        br.backgroundMaterial = mat;
        br.backgroundRendererChanged += BrOnBackgroundRendererChanged;
        br.mode = ARRenderMode.MaterialAsBackground;
        TangoDevice.backgroundRenderer = br;
    }

    private void BrOnBackgroundRendererChanged()
    {
        Debug.Log("BrOnBackgroundRendererChanged");
    }

<i>AndroidPlayer(ADB@127.0.0.1:34999)</i> Could not get a pose for the latest image buffer at time 161744.275238. Error code 0-2
UnityEngine.XR.Tango.TangoDevice:TryGetLatestPointCloudInternal(Object, UInt32&, Double&)
UnityEngine.XR.Tango.TangoDevice:TryGetLatestPointCloud(PointCloudData&) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/AR/TangoBindings.gen.cs:184)
NewBehaviourScript:Update() (at D:\Users\Igor\Documents\New Unity Project 17\Assets\NewBehaviourScript.cs:54)

[./Runtime/AR/Tango/TangoDevice.cpp line 206] 
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/modules/AR/TangoBindings.gen.cs Line: 184)
@chaosemer
Copy link
Contributor

Thank you for the bug report. I've forwarded it on to Unity.

For stable Tango development, this plugin only works with Unity versions 5.2 - 5.6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants