Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityView exception #2227

Open
fwild opened this issue Dec 20, 2024 · 0 comments
Open

ActivityView exception #2227

fwild opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@fwild
Copy link
Collaborator

fwild commented Dec 20, 2024

Starting the app and creating a new activity seems to throw an error:

System.NullReferenceException: Object reference not set to an instance of an object.
  Module "MirageXR.View.ActivityView", in InitializeAsync
  Module "MirageXR.View.ActivityView", in InitializeAsync
  Module "MirageXR.View.ActivityView", in Start
  Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
  Module "Cysharp.Threading.Tasks.UniTaskExtensions", in Forget

See Sentry error.

Seems to originate from this code block:

private void Start()
{
    InitializeAsync().Forget();
}

private async UniTask InitializeAsync()
{
    RootObject.Instance.LEE.StepManager.OnStepChanged += StepManagerOnStepChanged;
    RootObject.Instance.LEE.ContentManager.OnContentActivated += ContentManagerOnContentActivated;

    var calibrationManager = RootObject.Instance.CalibrationManager;
    await calibrationManager.WaitForInitialization();
    transform.SetParent(calibrationManager.Anchor, false);
    transform.SetPositionAndRotation(Vector3.zero, Quaternion.identity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants