Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Deployment failed - Must specify an appx file to install

Discussion in 'Windows' started by jskim05, Aug 5, 2020.

  1. jskim05

    jskim05

    Joined:
    Feb 10, 2020
    Posts:
    4
    Unity version : 2019.4.4

    I'm trying to deploy an unity UWP app to Hololens2 using device portal.

    When I "Build And Run" the project in unity Build Settings window, BuildFailedException happens.

    The process of building the app works fine, but I think there is a problem with the deployment process.

    So if I open the built project directly in Visual Studio 2019 and deploy it to the device, deployment works perfectly fine.

    This problem keeps bottlenecks in the development-test iteration process.

    I wanted to see if my project source was a problem, but after creating a new project and following the hololens2 tutorial(https://docs.microsoft.com/en-us/windows/mixed-reality/mr-learning-base-02), I still get the same problem.

    I don't even know what the broken characters in that error log is....

    Can someone please tell me how to fix this?

    ----------------------------------
    BuildFailedException: Deployment failed.
    Output:System.ArgumentNullException: ���� null�� �� �����ϴ�.
    �Ű� ���� �̸�: Must specify an appx file to install
    ��ġ: DevicePortalTool.AppOperation.ExecuteInstallOperation(ParameterHelper parameters)
    ��ġ: DevicePortalTool.AppOperation.ExecuteOperationInternal(Operation op, ParameterHelper parameters)

    Build completed with a result of 'Failed' in 82 seconds (81633 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <fd8fd784002f49beab0500d3a24213b9>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <fd8fd784002f49beab0500d3a24213b9>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    -----------------------------------------
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Can you attach the complete editor log please? Which project build type are you using? Did you try using "Executable Only"?
     
  3. jskim05

    jskim05

    Joined:
    Feb 10, 2020
    Posts:
    4
    What I wrote above is all of my editor logs error_capture.PNG

    I set up build type to "D3D Project" as in the hl2 tutorial document.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
  5. jskim05

    jskim05

    Joined:
    Feb 10, 2020
    Posts:
    4

    Attached Files:

  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Do you know if the build actually gets produced in the folder you specified? Could you show me the files inside? Unfortunately the log didn't contain much to work with so I'm still trying to understand what is happening.
     
  7. jskim05

    jskim05

    Joined:
    Feb 10, 2020
    Posts:
    4
    As far as I know, there is no problem until the build. When I deploy the Unity build to the HL2 device using Visual Studio, it works fine.

    files in ./build
     

    Attached Files:

    Last edited: Aug 10, 2020
  8. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    I guess the error is the same one as I am getting while trying to build using UWP for Xbox:


    Code (CSharp):
    1.  
    2. BuildFailedException: Deployment failed.
    3. Output:System.ArgumentNullException: Value cannot be null.
    4. Parameter name: Must specify an appx file to install
    5.    at DevicePortalTool.AppOperation.ExecuteInstallOperation(ParameterHelper parameters)
    6.    at DevicePortalTool.AppOperation.ExecuteOperationInternal(Operation op, ParameterHelper parameters)
    7. ExitCode: -1 (OperationFailed)
    8. ApplicationLauncherImpl.RunOnDevicePortalDevice (System.String appxPath, System.String playerPackage) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:441)
    9. ApplicationLauncherImpl.Run (Utility+VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:362)
    10. ApplicationLauncher.BuildAndRunProject (UnityEditor.Modules.BuildLaunchPlayerArgs args, UnityEditor.WSABuildAndRunDeployTarget deployTarget, System.String platform, Utility+VisualStudio vs) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:71)
    11. ApplicationLauncher.BuildAndRun (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:39)
    12. UnityEditor.UWP.BuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:77)
    13. UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    14. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    15.  
    As far as I can see under Game/build/bin/x64/ folder the project has been generated, but when trying to open .exe file it throws an error:
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Can you report a bug on this? There is clearly something wrong in how Unity tries to deploy the app.
     
  10. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    Uploading the report!
    Tried to build and run on a remote xbox device using a new project with a single cube the result is the same. The project is attached on the bug report with the build settings.
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Cool. Could you also try switching to "Executable Only" build mode to see if that makes any difference?
     
  12. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    Trying with 'Executrable Only' build type throws more errors:


    Code (CSharp):
    1.  
    2. Failed running C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WinRT" --architecture="x64" --configuration="Release" --outputpath="C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\Native\GameAssembly.dll" --cachedirectory="C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Assets\..\Library\UWP\x64\Release/il2cpp_cache" --relative-data-path=Data/il2cpp_data --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.7f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/Creator/Desktop/sworkspace/Clients/Unity/commandos/Temp/StagingArea/Data/Managed --generatedcppdir=C:/Users/Creator/Desktop/sworkspace/Clients/Unity/commandos/Temp/StagingArea/Data/il2cppOutput
    3.  
    4. stdout:
    5. Building GameAssembly.dll with MsvcWinRtToolChain
    6.     Msvc Install Version: 15.0
    7.     Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
    8.     Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\link.exe
    9.     Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.exe
    10.  
    11.     Output directory: C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\Native
    12.     Cache directory: C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Library\UWP\x64\Release\il2cpp_cache
    13. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppTypeDefinitions.c
    14. C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: 'assert.h': No such file or directory
    15.  
    16. Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.exe"
    17. Arguments: "C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\il2cppOutput\Il2CppTypeDefinitions.c" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MD /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DIL2CPP_DEFAULT_DATA_DIR_PATH=Data/il2cpp_data /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=19041 /D__WRL_NO_DEFAULT_LIB__ /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\external\bdwgc\include" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\external\xxHash" /I"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\il2cppOutput" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" /Fo"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Library\UWP\x64\Release\il2cpp_cache\5733106FE2E503B2B149E5FD33BF4E7A.obj" /Fd"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Library\UWP\x64\Release\il2cpp_cache\5733106FE2E503B2B149E5FD33BF4E7A.pdb"
    18. EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64
    19.  
    20.   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    21.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    22.   at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    23.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    24.   at il2cpp.Program.Main(String[] args)
    25. stderr:
    26.  
    27. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppTypeDefinitions.c
    28. C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: 'assert.h': No such file or directory
    29.  
    30. Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.exe"
    31. Arguments: "C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\il2cppOutput\Il2CppTypeDefinitions.c" /nologo /c /bigobj /W3 /Zi /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MD /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DIL2CPP_DEFAULT_DATA_DIR_PATH=Data/il2cpp_data /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=19041 /D__WRL_NO_DEFAULT_LIB__ /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\libil2cpp" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\external\bdwgc\include" /I"C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp\external\xxHash" /I"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Temp\StagingArea\Data\il2cppOutput" /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" /Fo"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Library\UWP\x64\Release\il2cpp_cache\5733106FE2E503B2B149E5FD33BF4E7A.obj" /Fd"C:\Users\Creator\Desktop\sworkspace\Clients\Unity\commandos\Library\UWP\x64\Release\il2cpp_cache\5733106FE2E503B2B149E5FD33BF4E7A.pdb"
    32. EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64
    33.  
    34.   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    35.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    36.   at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    37.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    38.   at il2cpp.Program.Main(String[] args)
    39.  
    40. UnityEngine.Debug:LogError(Object)
    41. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    42. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    43. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    44. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    45. UnityEditorInternal.IL2CPPBuilder:Run()
    46. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    47. PostProcessWinRT:RunIL2CPPForExecutableBuild() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1924)
    48. PostProcessWinRT:RunIL2CPP() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1849)
    49. PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:214)
    50. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    51.  
    Code (CSharp):
    1.  
    2. Exception: C:\Program Files\Unity\Hub\Editor\2019.4.7f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    3. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    4. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    5. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    6. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    7. UnityEditorInternal.IL2CPPBuilder.Run () (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    8. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    9. PostProcessWinRT.RunIL2CPPForExecutableBuild () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1924)
    10. PostProcessWinRT.RunIL2CPP () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1849)
    11. PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:214)
    12. UnityEditor.UWP.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:85)
    13. Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    14. UnityEditor.UWP.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:89)
    15. UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    16. UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    17. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    18.  
    And I've already checked that assert.h is located at:
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Interesting! Can you confirm if that file is in "C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt" too? It seems IL2CPP is looking for it in there.
     
  14. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    Hi, sorry for the late answer. No the file is not there and I don't have verison 10.0.19041.0 installed on my machine at all.
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Did you ever have that SDK installed? Unity takes this version from the registry...

    Can you tell me what is HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\ProductVersion in the registry pointing that? If it's 10.0.19041, can you try changing it to
    10.0.18362.0 and see if it fixes the issue?
     
  16. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    Yes, the registry entry was pointing to 10.0.19041, I've changed it to the correct version, but before that I deleted the whole Library folder from the projects main folder and let the Unity generated it again reimporting the projects and after that the project started to build and run successfully without any errors as D3D Project set in Build Settings. Even before changing the registry entry, so for now the Xbox build which was throwing the same error which @jskim05 reported is resolved!

    Thanks for the help!
     
  17. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    Another thing which I discovered after I had to redownload the project from git, it seems that I had some changes which weren't pushed to the main git repo and I was having the same issue again, the project wasn't building with the same error. After trying everything which I though I did before it turns out that the main reason for this error was that I have the symbol ' in my game's name which was causing the failing build.Once I removed it from the name everything started to work as it should be again!
     
  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Interesting, very nice! Do you have the number report number you submitted? I'll add this additional info to it.

    By the way, using "ExecutableOnly" build mode should make Build & Run operation faster. The only downside is that it doesn't go through visual studio so you can't submit those builds to the Windows Store.
     
  19. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    I've tried more than 10 times to report that bug directly from Unity with a sample project but everytime it got stuck on 50% and was staying that way for an hour or so. The attached project was very small like 30-40MB so it's not because the project was big one.
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Damn, I'm sorry about that. I'm not exactly sure what could cause the bug reporter to misbehave like that.

    Could you perhaps put the project on google drive/dropbox/onedrive or something similar and just include a link to it in your bug report?

    P.S. Can you PM me your email you used for the bug submission? Our bug reporter devs would like to dig into logs of what happened.
     
  21. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    @Tautvydas-Zilys It looks like we got a bug through to our system for this and it landed on my plate, it's number 1269676. So everyone knows, once we approve the bug we will upgrade it to a public issue so it's viewable by everyone.

    Thanks for reporting this to us, we'll be taking a look soon.
     
    hardartcore likes this.
  22. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    @JasonCostanza I've had a few discoveries on that topic I could share if anyone need more information on how to fix that error. On different machines I've tried, different stuff fixed the error.
     
  23. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    I tried reproducing your issue on my own system and did not see the same thing. We're curious though, we see some non-standard characters showing up in your editor log.


    ���� null�� �� �����ϴ�.
    �Ű� ���� �̸�: Must specify an appx file to install


    Is your system set to some other language/locale setting that might be causing issues? Is the bug I looked at, 1269676 from @jskim05 or @hardartcore?
     
  24. hardartcore

    hardartcore

    Joined:
    Jan 27, 2017
    Posts:
    43
    My language is set to English, country to Bulgaria if that matters.
    Actually it's really strange because everytime I was trying to create a build after a fresh check out different stuff worked for fixing the same issue. Mostly after a first successful build directly from Visual Studio not from Unity fixes the issue.
     
  25. dnuernberger

    dnuernberger

    Joined:
    Mar 9, 2020
    Posts:
    7
    I also just had this start happening to my project. I was able to run "Build and Run on: Remote Device (via Device Portal)" yesterday. I didn't make any changes after that and now I run into this error and can only build and deploy via Visual Studio.
     
  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    What kind of error are you running into? Can you show your editor log? We're still unsure what's going on here so any extra info will help.
     
  27. dnuernberger

    dnuernberger

    Joined:
    Mar 9, 2020
    Posts:
    7
    upload_2020-9-3_15-36-36.png

    Code (CSharp):
    1. BuildFailedException: Deployment failed.
    2. Output:System.ArgumentNullException: Value cannot be null.
    3. Parameter name: Must specify an appx file to install
    4.    at DevicePortalTool.AppOperation.ExecuteInstallOperation(ParameterHelper parameters)
    5.    at DevicePortalTool.AppOperation.ExecuteOperationInternal(Operation op, ParameterHelper parameters)
    6.  
    7.  
    8. ExitCode: -1 (OperationFailed)
    9.  
    10.   at ApplicationLauncherImpl.RunOnDevicePortalDevice (System.String appxPath, System.String playerPackage) [0x00050] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:441
    11.   at ApplicationLauncherImpl.Run (Utility+VisualStudio vs) [0x00057] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:362
    12.   at ApplicationLauncher.BuildAndRunProject (UnityEditor.Modules.BuildLaunchPlayerArgs args, UnityEditor.WSABuildAndRunDeployTarget deployTarget, System.String platform, Utility+VisualStudio vs) [0x00027] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:71
    13.   at ApplicationLauncher.BuildAndRun (UnityEditor.Modules.BuildLaunchPlayerArgs args) [0x00088] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:39
    14.   at UnityEditor.UWP.BuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) [0x00001] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ExtensionModule.cs:77
    15.   at UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) [0x0004b] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    16. UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    17. UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
    18. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    19. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    20. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    21. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    22. UnityEditor.BuildPlayerWindow:OnGUI()
    23. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    24. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    25. System.Reflection.MethodBase:Invoke(Object, Object[])
    26. UnityEditor.HostView:Invoke(String, Object)
    27. UnityEditor.HostView:Invoke(String)
    28. UnityEditor.HostView:OldOnGUI()
    29. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    30. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    31. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    32. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    33. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    34. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    35. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    36. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    37. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    38. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    39. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    40. UnityEngine.UIElements.EventDispatcher:OpenGate()
    41. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    42. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    43. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    44. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    45. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    46. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    47. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    48. (Filename: <73d57cefcd7c4fd1b35d52187ecfc010> Line: 0)
    49.  
    50. Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unloading 84 Unused Serialized files (Serialized files now loaded: 0)
    51. System memory in use before: 450.2 MB.
    52. System memory in use after: 449.1 MB.
    53.  
    54. Unloading 279 unused Assets to reduce memory usage. Loaded Objects now: 4358.
    55. Total: 16.880400 ms (FindLiveObjects: 0.635100 ms CreateObjectMapping: 0.156600 ms MarkObjects: 15.226800 ms  DeleteObjects: 0.860400 ms)
    56.  
    57. Unloading 14 Unused Serialized files (Serialized files now loaded: 0)
    58. Loaded scene 'Temp/__Backupscenes/0.backup'
    59.     Deserialize:            13.519 ms
    60.     Integration:            18.029 ms
    61.     Integration of assets:  2.021 ms
    62.     Thread Wait Time:       14.252 ms
    63.     Total Operation Time:   47.821 ms
    64. System memory in use before: 444.8 MB.
    65. System memory in use after: 445.1 MB.
    66.  
    67. Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 4642.
    68. Total: 14.894400 ms (FindLiveObjects: 0.571800 ms CreateObjectMapping: 0.135700 ms MarkObjects: 14.152600 ms  DeleteObjects: 0.033700 ms)
    69.  
    70. Build completed with a result of 'Failed' in 150 seconds (149585 ms)
    71. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    72. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    73. UnityEngine.Logger:Log(LogType, Object)
    74. UnityEngine.Debug:LogError(Object)
    75. UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
    76. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    77. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    78. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    79. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    80. UnityEditor.BuildPlayerWindow:OnGUI()
    81. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    82. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    83. System.Reflection.MethodBase:Invoke(Object, Object[])
    84. UnityEditor.HostView:Invoke(String, Object)
    85. UnityEditor.HostView:Invoke(String)
    86. UnityEditor.HostView:OldOnGUI()
    87. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    88. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    89. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    90. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    91. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    92. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    93. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    94. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    95. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    96. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    97. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    98. UnityEngine.UIElements.EventDispatcher:OpenGate()
    99. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    100. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    101. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    102. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    103. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    104. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    105. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    106. (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
    107.  
    108. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    109.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    110.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    111. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    112. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    113. UnityEngine.Logger:Log(LogType, Object)
    114. UnityEngine.Debug:LogError(Object)
    115. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    116. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    117. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    118. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    119. UnityEditor.BuildPlayerWindow:OnGUI()
    120. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    121. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    122. System.Reflection.MethodBase:Invoke(Object, Object[])
    123. UnityEditor.HostView:Invoke(String, Object)
    124. UnityEditor.HostView:Invoke(String)
    125. UnityEditor.HostView:OldOnGUI()
    126. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    127. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    128. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    129. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    130. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    131. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    132. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    133. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    134. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    135. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    136. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    137. UnityEngine.UIElements.EventDispatcher:OpenGate()
    138. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    139. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    140. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    141. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    142. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    143. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    144. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
  28. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Thanks. Unfortunately we are still unsure why this is happening. Something is going wrong with command line processing it seems. Could you replace DevicePortalTool.exe in your Unity installation (at Editor\Data\PlaybackEngines\MetroSupport\Tools) with this one, then try deploying again and show us the log? https://share.unity.com/receive/?th...e=rCpD1WYD05K5j36Ud-RJwlshpd47PrEGr25xyvsjvPk

    We added more logging so hopefully it will reveal where the issue lies.
     
  29. dnuernberger

    dnuernberger

    Joined:
    Mar 9, 2020
    Posts:
    7
    Code (CSharp):
    1. BuildFailedException: Deployment failed.
    2. Output:Executing DevicePortalTool with args:
    3. app /op:install /ip:https://192.168.86.175 /appx: /v /stdincred /launch
    4. System.ArgumentNullException: Value cannot be null.
    5. Parameter name: Must specify an appx file to install
    6.    at DevicePortalTool.AppOperation.ExecuteInstallOperation(ParameterHelper parameters)
    7.    at DevicePortalTool.AppOperation.ExecuteOperationInternal(Operation op, ParameterHelper parameters)
    8.  
    9.  
    10. ExitCode: -1 (OperationFailed)
    11.  
    12.   at ApplicationLauncherImpl.RunOnDevicePortalDevice (System.String appxPath, System.String playerPackage) [0x00050] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:441
    13.   at ApplicationLauncherImpl.Run (Utility+VisualStudio vs) [0x00057] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:362
    14.   at ApplicationLauncher.BuildAndRunProject (UnityEditor.Modules.BuildLaunchPlayerArgs args, UnityEditor.WSABuildAndRunDeployTarget deployTarget, System.String platform, Utility+VisualStudio vs) [0x00027] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:71
    15.   at ApplicationLauncher.BuildAndRun (UnityEditor.Modules.BuildLaunchPlayerArgs args) [0x00088] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ApplicationLauncher.cs:39
    16.   at UnityEditor.UWP.BuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) [0x00001] in C:\buildslave\unity\build\PlatformDependent\MetroPlayer\Extensions\Managed\ExtensionModule.cs:77
    17.   at UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) [0x0004b] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    18. UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    19. UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
    20. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    21. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    22. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    23. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    24. UnityEditor.BuildPlayerWindow:OnGUI()
    25. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    26. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    27. System.Reflection.MethodBase:Invoke(Object, Object[])
    28. UnityEditor.HostView:Invoke(String, Object)
    29. UnityEditor.HostView:Invoke(String)
    30. UnityEditor.HostView:OldOnGUI()
    31. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    32. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    33. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    34. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    35. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    36. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    37. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    38. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    39. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    40. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    41. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    42. UnityEngine.UIElements.EventDispatcher:OpenGate()
    43. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    44. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    45. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    46. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    47. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    48. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    49. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    50. (Filename: <73d57cefcd7c4fd1b35d52187ecfc010> Line: 0)
    51.  
    52. Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unable to create directory for Unity Subsystem at D:/UnityProjects/HL2_Test/Temp/StagingArea/Data/UnitySubsystems.Unloading 48 Unused Serialized files (Serialized files now loaded: 0)
    53. System memory in use before: 0.66 GB.
    54. System memory in use after: 0.66 GB.
    55.  
    56. Unloading 109 unused Assets to reduce memory usage. Loaded Objects now: 4669.
    57. Total: 16.749100 ms (FindLiveObjects: 0.655800 ms CreateObjectMapping: 0.144600 ms MarkObjects: 15.318200 ms  DeleteObjects: 0.629400 ms)
    58.  
    59. Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
    60. Loaded scene 'Temp/__Backupscenes/0.backup'
    61.     Deserialize:            1.212 ms
    62.     Integration:            16.748 ms
    63.     Integration of assets:  0.002 ms
    64.     Thread Wait Time:       16.920 ms
    65.     Total Operation Time:   34.882 ms
    66. System memory in use before: 0.66 GB.
    67. System memory in use after: 0.66 GB.
    68.  
    69. Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 4774.
    70. Total: 15.489100 ms (FindLiveObjects: 0.578000 ms CreateObjectMapping: 0.147700 ms MarkObjects: 14.730300 ms  DeleteObjects: 0.032400 ms)
    71.  
    72. Build completed with a result of 'Failed' in 140 seconds (139521 ms)
    73. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    74. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    75. UnityEngine.Logger:Log(LogType, Object)
    76. UnityEngine.Debug:LogError(Object)
    77. UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
    78. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    79. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    80. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    81. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    82. UnityEditor.BuildPlayerWindow:OnGUI()
    83. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    84. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    85. System.Reflection.MethodBase:Invoke(Object, Object[])
    86. UnityEditor.HostView:Invoke(String, Object)
    87. UnityEditor.HostView:Invoke(String)
    88. UnityEditor.HostView:OldOnGUI()
    89. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    90. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    91. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    92. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    93. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    94. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    95. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    96. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    97. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    98. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    99. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    100. UnityEngine.UIElements.EventDispatcher:OpenGate()
    101. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    102. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    103. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    104. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    105. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    106. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    107. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    108. (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
    109.  
    110. UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    111.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    112.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <73d57cefcd7c4fd1b35d52187ecfc010>:0
    113. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    114. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    115. UnityEngine.Logger:Log(LogType, Object)
    116. UnityEngine.Debug:LogError(Object)
    117. UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
    118. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean)
    119. UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
    120. UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
    121. UnityEditor.BuildPlayerWindow:OnGUI()
    122. System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    123. System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    124. System.Reflection.MethodBase:Invoke(Object, Object[])
    125. UnityEditor.HostView:Invoke(String, Object)
    126. UnityEditor.HostView:Invoke(String)
    127. UnityEditor.HostView:OldOnGUI()
    128. UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    129. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    130. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Action, Boolean)
    131. UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
    132. UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
    133. UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
    134. UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
    135. UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent(EventBase, IPanel)
    136. UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies(EventBase, IPanel, Boolean)
    137. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    138. UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
    139. UnityEngine.UIElements.EventDispatcher:OpenGate()
    140. UnityEngine.UIElements.EventDispatcherGate:Dispose()
    141. UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
    142. UnityEngine.UIElements.EventDispatcher:Dispatch(EventBase, IPanel, DispatchMode)
    143. UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
    144. UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    145. UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
    146. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
     
  30. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Thank you, that helps. After the build fails like this, can you go into the folder you selected (where the .sln file is generated) and execute this command in command prompt?

    Code (csharp):
    1. dir /s
     
  31. dnuernberger

    dnuernberger

    Joined:
    Mar 9, 2020
    Posts:
    7
     

    Attached Files:

  32. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Thanks. It looks like Visual Studio generates the app package in form of .msix package, while Unity expects an .appx package. This sheds a lot of light of what's happening - now we need to figure out why and fix it :).
     
    hardartcore likes this.
  33. shaddad

    shaddad

    Joined:
    Dec 1, 2016
    Posts:
    23
    has this been resolved? I am running into it in Unity 2019.2.21f1