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

MRTK Build Tool triggers indefinite "Importing" dialog in Unity 2020 #9723

Closed
srinjoym opened this issue Apr 29, 2021 · 10 comments · Fixed by #10046
Closed

MRTK Build Tool triggers indefinite "Importing" dialog in Unity 2020 #9723

srinjoym opened this issue Apr 29, 2021 · 10 comments · Fixed by #10046
Assignees
Labels
Build / Tools Issues related to build and tools. External This is an issue with, or behavior of a component / tool external to MRTK Unity 2020
Milestone

Comments

@srinjoym
Copy link
Contributor

srinjoym commented Apr 29, 2021

Describe the bug

The MRTK Build Window triggers Unity 2020 to start an indefinite "Importing" message. I've reproduced on an empty Unity 2020 project with just MRTK 2.6.1:

image

To reproduce

Steps to reproduce the behavior:

  1. Create a new Unity 2020 LTS Project
  2. Add MRTK Foundation and Tools
  3. Click "Build All" on the build window to start a build
  4. After the build finishes, Unity 2020 starts showing an indefinite "Importing" message.

Expected behavior

This doesn't happen on Unity 2019 LTS - might be an issue with where the Build Assets are placed in Unity 2020?

Your setup (please complete the following information)

  • Unity Version 2020.3.3
  • MRTK Version v2.6.1

Target platform (please complete the following information)

  • HoloLens 2
@srinjoym srinjoym added the Bug label Apr 29, 2021
@srinjoym srinjoym changed the title MRTK Build Tool triggering indefinite "Importing" dialog in Unity 2020 MRTK Build Tool triggers indefinite "Importing" dialog in Unity 2020 Apr 29, 2021
@keveleigh keveleigh added Build / Tools Issues related to build and tools. Unity 2020 labels Apr 29, 2021
@keveleigh keveleigh added this to Needs Triage in [Retired] MRTK Backlog via automation May 6, 2021
@keveleigh keveleigh added this to the MRTK 2.7.0 milestone May 7, 2021
@polar-kev polar-kev moved this from Needs Triage to To do in [Retired] MRTK Backlog May 7, 2021
@CDiaz-MS
Copy link
Contributor

I can repro this issue and we are continuing to investigate. It does occur in Unity 2020 and not Unity 2019.

@david-c-kline
Copy link

I'm working the @CDiaz-MS to see if we can isolate the portion of the MRTK Build Window that might be causing this. It is possible that there is a behavior change between Unity 2019 and 2020 that may require a coding change.

@david-c-kline david-c-kline self-assigned this May 12, 2021
@polar-kev polar-kev moved this from To do to In progress in [Retired] MRTK Backlog May 13, 2021
@david-c-kline
Copy link

While investigating this, @CDiaz-MS and I came upon the following line in the MRTK EditorAssemblyReloadManager

EditorApplication.delayCall += () => AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);

We tried removing this line and also removing the Refresh() parameter and we still encounter the loop.

@david-c-kline
Copy link

Testing was done on Unity 2020.3.8f1. This does not occur on previous versions (ex: 2019.4)

@david-c-kline
Copy link

The more we look at this, the mo.re if seems like a behavior change in Unity 2020

@david-c-kline
Copy link

Disabled the two likely causes of the importing trigger to no avail. From what I am seeing, I cannot identify where MRTK is doing something that is the root cause,

@david-c-kline
Copy link

Here are the changes that were attempted:

EditorAssemblyReloadManager.cs

#if !UNITY_2020_3_OR_NEWER
                    EditorApplication.delayCall += () => AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
#endif

ProjectPreferences.cs

#if !UNITY_2020_3_OR_NEWER
                        AssetDatabase.Refresh();
#endif

@david-c-kline
Copy link

@keveleigh has narrowed this down further and found that without the appx build step, this does not repro.

Will investigate with him to see if we can identify the cause.

@david-c-kline
Copy link

Contacted Unity. They are able to repro this issue (and potentially in a similar scenario). Moving this to the 2.x future milestone.

@david-c-kline david-c-kline added the External This is an issue with, or behavior of a component / tool external to MRTK label May 21, 2021
@david-c-kline david-c-kline removed the Bug label Jun 17, 2021
keveleigh added a commit to keveleigh/HoloToolkit-Unity that referenced this issue Jul 1, 2021
@keveleigh keveleigh self-assigned this Jul 1, 2021
@keveleigh
Copy link
Contributor

Unity provided an update with why it's newly failing (they hardened some state logic requiring a ClearProgressBar call), so I opened #10046 to fix! I double checked the rest of our progress bar calls, and this was the only one missing a corresponding clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build / Tools Issues related to build and tools. External This is an issue with, or behavior of a component / tool external to MRTK Unity 2020
Projects
[Retired] MRTK Backlog
Fixed - Needs Release Notes
Development

Successfully merging a pull request may close this issue.

5 participants