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

2017 beta new tango api crashes #103

@friuns2

Description

@friuns2

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions