microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Cannot import examples package via MRFT #9290

Closed GMyjak closed 9 months ago

GMyjak commented 3 years ago

Describe the bug

Cannot import package com.mixedreality.toolkit.examples via MixedRealityFeatureTool

Steps to reproduce the behavior:

  1. Following instruction posted on https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/usingupm.html
  2. Import packages 'standard assets', 'foundation', 'extensions', 'tools', 'examples'
  3. FeatureTool updates manifest file correctly and downloads required .tgz files
  4. After opening Unity console I get error displayed on screenshots

Expected behavior

Examples package is imported correctly.

Screenshots

image image image

Setup:

Additional context

It is woth mentioning that only package that cannot be imported is examples.

First I have tried these steps on existing project with old MRTK version (2.1.0). I have deleted all MRTK assets, then tried to import version 2.5.4 via MRFT. It failed. Then I have tried to import package by importing tarball in UPM, failed with the same error. At last I have created empty Unity project and tried to import MRTK packages by following steps described above, failed with the same error.

david-c-kline commented 3 years ago

@GMyjak, Thanks for the report! From what you posted, it looks like the examples package failed to properly download. Can you try re-running the feature tool and modify the settings to redownload the packages?

Alternatively, you can delete the examples package from the cache (location listed in the settings) and retry?

Thanks!

image

GMyjak commented 3 years ago

Redownloading the packages resolved the issue, thank you.

jbienzms commented 3 years ago

@davidkline-ms this issue impacted a customer recently. I see that it's closed for the individual above, but I'm curious how we got in this state and if there's a way it could be avoided in the future. Could the feature tool package catalog include the expected size of the package or maybe even an expected hash? And could that information be used to detect when a package is damaged? Re-opening in case we can convert this to a feature request for improvement. If there's not a way to easily improve this, please feel free to close again.

maradanovic commented 2 years ago

Hi, I have the same problem. After importing MRTK 2.7 using the Feature Tool 1.0.2109 to a clean Unity 2019.4 project and configuring, I've noticed the Assets aren't imported (only the Shaders are imported, without the Examples, Prefabs and heaps of other stuff that should be there).

I've tried redownloading packages and cleaning the cache as suggested above.

After several attempts, I just imported the packages without the Feature tool and the assets are imported normally.

keveleigh commented 2 years ago

I've noticed the Assets aren't imported (only the Shaders are imported, without the Examples, Prefabs and heaps of other stuff that should be there).

This sounds by-design. The method for importing samples via UPM is different than the .unitypackages: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/running-example-scenes?view=mrtkunity-2021-05#how-to-acquire-example-scenes

image

maradanovic commented 2 years ago

This sounds by-design. The method for importing samples via UPM is different than the .unitypackages: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/running-example-scenes?view=mrtkunity-2021-05#how-to-acquire-example-scenes

Thanks, didn't know that!

stale[bot] commented 2 years ago

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

laultman commented 2 years ago

@davidkline-ms I am having this issue with MRFT v1.0.2209.0 Preview. Trying to use the WorldLockTool. The MRFT loads the WLT package. It downloads the Examples package (I can see it in the package cache.) The Unity project does list it in the Package Manager. The Example folder is present in the Project tree in Unity. The folder only contain four text files. The examples are not present. I looked at the tgz file and its size is only 14K (seems the tgz file is either empty or corrupt.)

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!