Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Unity crashes on a new project with first time XRTK import #174

Closed
SimonDarksideJ opened this issue May 9, 2019 · 18 comments
Closed

Unity crashes on a new project with first time XRTK import #174

SimonDarksideJ opened this issue May 9, 2019 · 18 comments
Assignees
Labels
Bug Something isn't working Unity Bug It's them not us :D

Comments

@SimonDarksideJ
Copy link
Contributor

XRTK - Mixed Reality Toolkit Bug Report

Describe the bug

Unity crashwhollops (technical term) on a brand new project and we setup XRTK.

To Reproduce

Steps to reproduce the behavior:

  1. Create new project
  2. Import XRTK
  3. Click Mixed Reality Toolkit -> Configure
  4. Boom

Expected behavior

Unity should not crash (and we should have world peace while we are at it)

Actual behavior

BadabingBadaboom. Because... Unity

Your Setup (please complete the following information)

  • Unity Version 2019.1.1
  • XRTK Version 0.1.10

Target Platform (please complete the following information)

Any

@SimonDarksideJ SimonDarksideJ added the Bug Something isn't working label May 9, 2019
@SimonDarksideJ SimonDarksideJ self-assigned this May 9, 2019
@SimonDarksideJ
Copy link
Contributor Author

Submitted #175 to resolve the Unity issue.

@SimonDarksideJ
Copy link
Contributor Author

Need to retest once the latest version is up to ensure the bug is resolved.

@StephenHodgson
Copy link
Contributor

I had, but I'll let you close it once you've validated :)

@SimonDarksideJ
Copy link
Contributor Author

Still crashing in 1.11 :S

@StephenHodgson
Copy link
Contributor

I cannot reproduce this with your steps. Is there something else I'm missing?

@SimonDarksideJ
Copy link
Contributor Author

Appears to be a deep routed Unity bug, will have to provide documentation to workaround it for now.
#183

@SimonDarksideJ SimonDarksideJ added Unity Bug It's them not us :D and removed Bug Something isn't working labels May 23, 2019
@StephenHodgson
Copy link
Contributor

@SimonDarksideJ do you have a case number for tracking purposes?

@SimonDarksideJ
Copy link
Contributor Author

Unity bug tracking ref:
https://fogbugz.unity3d.com/default.asp?1155807_rpps8djd63j0n3cs

@StephenHodgson
Copy link
Contributor

StephenHodgson commented Sep 16, 2019

Any update to this?

I know we've narrowed it down to the SDK package specifically using the default configuration profile.

@StephenHodgson
Copy link
Contributor

I saw you opened a new bug report on this: https://fogbugz.unity3d.com/default.asp?1184509_lkg3v0pa94vntobc

@SimonDarksideJ
Copy link
Contributor Author

Solved for GitHub based UPM implementation. But now that we have moved to a UPM server, it's back again....

@StephenHodgson
Copy link
Contributor

Hasn't seemed to be fixed yet. Let's try adding a delay call to the Selection.activeObject on line 130

@SimonDarksideJ
Copy link
Contributor Author

Errors detected by Unity 2019.2 (although it doesn't crash, you have to reboot to make it work again :D )

An AssetDatabase Refresh is pending after a successful Package Manager request. You should not call AssetDatabase.Refresh at this time because it can lead to import-related errors.
UnityEditor.AssetDatabase:Refresh(ImportAssetOptions)
XRTK.Utilities.Editor.MixedRealityEditorSettings:CheckSettings() (at Library/PackageCache/[email protected]/Utilities/Editor/MixedRealityEditorSettings.cs:178)
UnityEditor.EditorApplication:Internal_CallDelayFunctions()

InvalidOperationException: Hierarchy change detected while computing layout, this is not supported.
UnityEngine.UIElements.UIRLayoutUpdater.OnVersionChanged (UnityEngine.UIElements.VisualElement ve, UnityEngine.UIElements.VersionChangeType versionChangeType) (at C:/buildslave/unity/build/Modules/UIElements/Renderer/UIRLayoutUpdater.cs:29)
UnityEngine.UIElements.VisualTreeUpdater.OnVersionChanged (UnityEngine.UIElements.VisualElement ve, UnityEngine.UIElements.VersionChangeType versionChangeType) (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeUpdater.cs:101)
UnityEngine.UIElements.Panel.OnVersionChanged (UnityEngine.UIElements.VisualElement ve, UnityEngine.UIElements.VersionChangeType versionChangeType) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:652)
UnityEngine.UIElements.VisualElement+Hierarchy.Clear () (at C:/buildslave/unity/build/Modules/UIElements/VisualElementHierarchy.cs:361)
UnityEngine.UIElements.VisualElement.Clear () (at C:/buildslave/unity/build/Modules/UIElements/VisualElementHierarchy.cs:133)
UnityEditor.InspectorWindow.RebuildContentsContainers () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:712)
UnityEditor.InspectorWindow.RedrawFromNative () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:324)
UnityEditor.AssetDatabase:SaveAssets()
XRTK.Extensions.LayerExtensions:SetupLayer(Int32, String) (at Library/PackageCache/[email protected]/Extensions/LayerExtensions.cs:156)
XRTK.Services.MixedRealityToolkit:InitializeServiceLocator() (at Library/PackageCache/[email protected]/Services/MixedRealityToolkit.cs:425)
XRTK.Services.MixedRealityToolkit:ResetConfiguration(MixedRealityToolkitConfigurationProfile) (at Library/PackageCache/[email protected]/Services/MixedRealityToolkit.cs:117)
XRTK.Inspectors.MixedRealityToolkitInspector:OnInspectorGUI() (at Library/PackageCache/[email protected]/Inspectors/MixedRealityToolkitInspector.cs:99)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Assertion failed
UnityEditor.RetainedMode:UpdateSchedulers()

Assertion failed
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

@StephenHodgson
Copy link
Contributor

@SimonDarksideJ you confirmed this is fixed?

@StephenHodgson StephenHodgson added the Bug Something isn't working label Oct 1, 2019
@SimonDarksideJ
Copy link
Contributor Author

Confirmed, the crash fix does appear resolved. However, we are no longer receiving the prompt to configure the platform. (XR settings and IL2CPP)

@StephenHodgson
Copy link
Contributor

Sounds like a new bug report to me.

@SimonDarksideJ
Copy link
Contributor Author

I think I'm fine with that

@StephenHodgson
Copy link
Contributor

This still happened for me with 2019.1.14 and xrtk core 0.1.21

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Unity Bug It's them not us :D
Projects
None yet
Development

No branches or pull requests

2 participants