Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Publishing app to Windows Store

Discussion in 'Windows' started by akeplinger, May 4, 2022.

  1. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    I updated a Unity3d Project that I had published to the App store 2 years ago and am trying to upload it to the Windows App Store.
    I have been able to muck my way through the Visual Studio process to the point that my new app passes the validation tests and I can upload the msixupload bundle to the store to publish it.
    The part that is holding me back is that the old app was 100MB, and the new one is 2MB. I can't believe that Unity's core libraries could be trimmed down to 2MB, so I think the msixupload file is missing resources.
    In Visual Studio if I test the app, it works perfectly.
    Then I publish and I don't see any errors and the validator says it passed.
    I have not found a way to test the .msixupload file. App Installer app doesn't seem to recognize it as something I can install locally. File from 2 years ago was a *.appxupload file. I don't see any way in VS to specify which type of file gets generated. I find the VS tools incredibly obtuse and frustrating.
    I don't want to commit to publishing this new file without being able to verify that it's complete, and I really can't see how it could be complete. An error should tell me if the build process was excluding any files, I think.

    I tried VS 2017, hit a bunch of errors. Tried using 2019 and couldn't get past the build error where it complains about DesignTime missing Intellisense nonsense. Finally updated to VS 2022 and am getting no errors, testing in VS works great, but publishing produces a file that is too small to be right.

    Anybody have any ideas?
    Temped to just publish and let MS tell me it doesn't work.
     
    Last edited: May 4, 2022
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    You can look inside of it with 7-zip. It's able to look at all those Microsoft packaging formats. You can also always publish a private version and see what happens when you download it from the store after the publish is complete.

    I agree 2 MB sounds way too small. Something is not getting packaged correctly, that's for sure. Are you using the same Unity version as you did when you originally published? What Unity version are you on? When building the app package, what is "generate app bundles" set to?
     
  3. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    I'll have to get 7-zip.

    Using 2021.2.13f. Old version was UWP, but the app doesn't even use 3D at all, and doesn't need any VR or x-box or any of that. It's a pretty boring Canvas based file management tool. Vanilla. So I tried doing UWP initially had hit a billion errors, then exported as just x64 Windows, exporting to VS Solution.
    Scripting backend is Mono because when I switched to IL2CPP i got another massive number of errors in VS so I changed back.
    A process that I thought was going to take an hour or two has now taken me 4 days because I either get no errors, or the errors require filtering through forum after forum to find the one setting that needs to change.
    Generate app bundles is set to "Always". That seems to make sense, unless this is causing it to overwrite something Unity made.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    Can you show what kind of errors you were getting with IL2CPP? I wonder if you're missing some Visual Studio components and we fail to detect that.

    I didn't realize that you weren't targeting UWP. I wonder if the project we generate for Windows Standalone doesn't play nice with Microsoft Store packaging tools because frankly I don't think we ever tested that.
     
  5. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    I found a publishing path that I used: https://docs.unity3d.com/Manual/VisualStudioprojectgenerationWindows.html
    That was for starters. But that wouldn't build anything.
    Then I followed up with a process for adding a Windows Packaging Project: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-packaging-dot-net

    This part must not be including all of the Unity resources. I follow the steps and I can run the app in debug in VS, but when I publish I get the 2MB msixupload file.
     
  6. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    I just tried building UWP. Fought my way through some issues with the AppManifest containing a definition for an "Extension" that appears to be erroneous. At least I could build after I removed it.
    Able to try to Publish, but then I hit a couple errors that are extremely long and aren't very clear about what went wrong.

    First error:
    Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x86\link.exe /out:"C:\svn\GitHubSMMR\smmr2022_2\build\obj\il2cppOutputProject\Win32\Master\linkresult_840A6CE54D9DDF2A1DFD7D4432B3ADAD\GameAssembly.dll" /ignore:4206 /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /DLL /IGNORE:4104 /NODEFAULTLIB:uuid.lib "Shcore.lib" "WindowsApp.lib" "Crypt32.lib" "Iphlpapi.lib" "C:\Program Files\Unity\2021.2.13f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\x86\Master\baselib.dll.lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\lib\x86\store" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" /APPCONTAINER /SUBSYSTEM:WINDOWS /NODEFAULTLIB:eek:le32.lib /NODEFAULTLIB:kernel32.lib @"C:\Users\andykeplinger\AppData\Local\Temp\tmp8E42.tmp" Il2CppOutputProject C:\svn\GitHubSMMR\smmr2022_2\Il2CppOutputProject\EXEC 1

    maybe fixing the other errors might fix this one
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    Can you paste the contents of the output window in Visual Studio when this error happens?
     
  8. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    I updated all of the packages for the file, then spent an entire day trying to figure out why the WSA certificate wasn't working. Once I got past that, in the debugger I'm now getting an exception.

    Exception thrown at 0x00007FF946F08C33 (UnityPlayer.dll) in xxx.exe: 0xC0000005: Access violation reading location 0x0000000000001E64.

    I can see the code up until this function:
    void App::Run()
    {
    m_AppCallbacks->Run();
    }
    At least with the non-UWP version I could run the app in the debugger.
    No idea what to try next.
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    Can you paste the full contents of the Output window? Do you have a callstack for that crash?
     
  10. akeplinger

    akeplinger

    Joined:
    Oct 26, 2008
    Posts:
    56
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\SecureMyMedRecords.exe'. Symbols loaded.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vccorlib140d_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140d_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\vcruntime140_1d_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\ucrtbased.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\msvcp140d_app.dll'.
    The thread 0x514c has exited with code 0 (0x0).
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryCore.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\WindowManagementAPI.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
    'SecureMyMedRecords.exe' (Win32): Unloaded 'C:\Windows\System32\CoreUIComponents.dll'
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\UnityPlayer.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\mfplat.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\mfreadwrite.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\WinPixEventRuntime_UAP.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vccorlib140_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\msvcp140_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vccorlib140_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Unloaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vccorlib140_app.dll'
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_1_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_1_app.dll'.
    'SecureMyMedRecords.exe' (Win32): Unloaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_1_app.dll'
    'SecureMyMedRecords.exe' (Win32): Unloaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.30704.0_x64__8wekyb3d8bbwe\vcruntime140_app.dll'
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\RTWorkQ.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ExecModelClient.dll'.
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-bucket-allocator-granularity=16"
    "memorysetup-bucket-allocator-bucket-count=8"
    "memorysetup-bucket-allocator-block-size=4194304"
    "memorysetup-bucket-allocator-block-count=1"
    "memorysetup-main-allocator-block-size=16777216"
    "memorysetup-thread-allocator-block-size=16777216"
    "memorysetup-gfx-main-allocator-block-size=16777216"
    "memorysetup-gfx-thread-allocator-block-size=16777216"
    "memorysetup-cache-allocator-block-size=4194304"
    "memorysetup-typetree-allocator-block-size=2097152"
    "memorysetup-profiler-bucket-allocator-granularity=16"
    "memorysetup-profiler-bucket-allocator-bucket-count=8"
    "memorysetup-profiler-bucket-allocator-block-size=4194304"
    "memorysetup-profiler-bucket-allocator-block-count=1"
    "memorysetup-profiler-allocator-block-size=16777216"
    "memorysetup-profiler-editor-allocator-block-size=1048576"
    "memorysetup-temp-allocator-size-main=4194304"
    "memorysetup-job-temp-allocator-block-size=2097152"
    "memorysetup-job-temp-allocator-block-size-background=1048576"
    "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
    "memorysetup-temp-allocator-size-background-worker=32768"
    "memorysetup-temp-allocator-size-job-worker=262144"
    "memorysetup-temp-allocator-size-preload-manager=262144"
    "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
    "memorysetup-temp-allocator-size-cloud-worker=32768"
    "memorysetup-temp-allocator-size-gfx=262144"
    "memorysetup-temp-allocator-size-audio-worker=65536"
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'.
    onecoreuap\base\appmodel\statemanager\winrt\lib\windows.storage.applicationdatafactory.server.cpp(235)\Windows.Storage.ApplicationData.dll!00007FF9E2678433: (caller: 00007FF9E2688B63) ReturnHr(1) tid(667c) 8000000B The operation attempted to access data outside the valid range
    Msg:[User S-1-5-21-227745747-2073788691-890109380-1001]
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\wldp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'.
    Logging to C:/Users/andykeplinger/AppData/Local/Packages/644729F6.SecureMyMedicalRecords_h2eedkyn3gy3w/TempState/UnityPlayer.log
    [0.088652 / 0.096475] - Initializing Unity runtime
    Module information:
    Built with Compiler Ver '192829333'
    Built from '2021.2/staging' branch
    Version is '2021.2.13f1 (90b6766da538)'
    Debug build
    Application type 'D3D'
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'.
    [0.000966 / 0.177981] - AppCallbacks::SetCoreWindowEvents
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Perception.Stub.dll'.
    [0.006755 / 0.184905] - AppCallbacks::InitializeD3DWindow
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
    [0.194714 / 0.194714] - OnActivated event.
    [0.015834 / 0.210548] - OnVisibilityChanged event - Visible.
    [0.023124 / 0.233672] - OnWindowActivated event - CodeActivated.
    OS 'Windows 10 (10.0.19041) 64bit'
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\GameAssembly.dll'. Symbols loaded.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\svn\GitHubSMMR\smmr2022_5\build\bin\x64\Debug\AppX\baselib.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'.
    Found 2 interfaces on host : 0) 192.168.1.32 1) 127.0.0.1
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\NapiNSP.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\pnrpnsp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\winrnr.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'.
    Multi-casting "[IP] 192.168.1.32 [Port] 55120 [Flags] 2 [Guid] 4131114861 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerX64(19,LeftBrain-Win10) [Debug] 0 [PackageName] 644729F6.SecureMyMedicalRecords_h2eedkyn3gy3w [ProjectName] <no name>" to [225.0.0.222:54997]...
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
    'SecureMyMedRecords.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
    [1.982378 / 2.079672] - Initialize
    [Subsystems] Discovering subsystems at path C:/svn/GitHubSMMR/smmr2022_5/build/bin/x64/Debug/AppX/Data/UnitySubsystems
    GfxDevice: creating device client; threaded=1; jobified=0
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\k127153.inf_amd64_3f3936d8dec668b8\igd10iumd64.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ncrypt.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ntasn1.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\k127153.inf_amd64_3f3936d8dec668b8\igc64.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'.
    Successfully created d3d11 device with debug flag.
    Direct3D:
    Version: Direct3D 11.0 [level 11.1]
    Renderer: Intel(R) HD Graphics 620 (ID=0x5916)
    Vendor: Intel
    VRAM: 8126 MB
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'.
    Initialize engine version: 2021.2.13f1 (90b6766da538)
    [AudioManager] InitNormal(tryDeviceDefaults = false, preferredOutputType = FMOD_OUTPUTTYPE_AUTODETECT) attempt with hardAudioDisable: false
    [AudioManager] Setting output to FMOD_OUTPUTTYPE_AUTODETECT
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DDORes.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\DefaultDeviceManager.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\threadpoolwinrt.dll'.
    [AudioManager] InitNormal succeeded with output "FMOD_OUTPUTTYPE_WASAPI". Driver name is "Speakers / Headphones (Realtek Audio)". Speaker mode is "FMOD_SPEAKERMODE_STEREO"
    The thread 0x73d0 has exited with code 0 (0x0).
    The thread 0x5600 has exited with code 0 (0x0).
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Gaming.Input.dll'.
    onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!00007FFA0222974A: (caller: 00007FFA0222D528) ReturnHr(1) tid(3044) 8685C003 [0.000550 / 5.971910] - AppCallbacks::SetupInputEvents
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E467DDD5) Exception(1) tid(1f78) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5F9FCCF0.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E467DF35) Exception(2) tid(1f78) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5F9FCCF0.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(637)\Windows.Devices.Sensors.dll!00007FF9E468881D: (caller: 00007FF9E468896F) Exception(3) tid(1f78) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5F9FCB30.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    The thread 0x5f34 has exited with code 0 (0x0).
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\SensorsUtilsV2.dll'.
    [1.060842 / 7.032971] - AppCallbacks::SetupOrientationSensorEvents
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\windows.applicationmodel.datatransfer.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\edputil.dll'.
    [1.173333 / 7.114789] - AppCallbacks::Load
    [6.881400 / 7.115072] - Loading first level
    The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
    ClusterInputManager
    UnloadTime: 3.698900 ms
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.StateRepositoryClient.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
    [0.133854 / 7.248926] - First level loaded
    [0.000645 / 7.249571] - PerformUpdateAndRender started
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\SensorsNativeApi.dll'.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E4676291) Exception(4) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFD3E0.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E4676339) Exception(5) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFD3E0.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.cpp(269)\Windows.Devices.Sensors.dll!00007FF9E4682DC9: (caller: 00007FF9E4683347) Exception(6) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFD100.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'.
    The thread 0x6d04 has exited with code 0 (0x0).
    Exception thrown at 0x00007FFA14A04F69 (KernelBase.dll) in SecureMyMedRecords.exe: WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\profext.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'.
    onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.cpp(143)\Windows.Devices.Sensors.dll!00007FF9E46843D0: (caller: 00007FF9E4683C8B) Exception(7) tid(667c) 8001010E The application called an interface that was marshalled for a different thread.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFD100.
    The thread 0x38bc has exited with code 0 (0x0).
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\SensorsNativeApi.V2.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\deviceaccess.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\gpapi.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E4676291) Exception(8) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFBD70.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\common\pnpmanager\pnpmanager.cpp(849)\Windows.Devices.Sensors.dll!00007FF9E46886A6: (caller: 00007FF9E4676339) Exception(9) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFBD70.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.cpp(269)\Windows.Devices.Sensors.dll!00007FF9E4682DC9: (caller: 00007FF9E4683347) Exception(10) tid(667c) 80070490 Element not found.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFBA90.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    Exception thrown at 0x00007FFA14A04F69 (KernelBase.dll) in SecureMyMedRecords.exe: WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'.
    The thread 0x4420 has exited with code 0 (0x0).
    onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.cpp(143)\Windows.Devices.Sensors.dll!00007FF9E46843D0: (caller: 00007FF9E4683C8B) Exception(11) tid(667c) 8001010E The application called an interface that was marshalled for a different thread.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: wil::ResultException at memory location 0x0000005E5FDFBA90.
    The thread 0x720c has exited with code 0 (0x0).
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x0000005E624FAF10.
    Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
    UnloadTime: 2.214600 ms
    The thread 0x4c70 has exited with code 0 (0x0).
    TryGetPanel
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    AdvancedInputFieldPlugin.UWPKeyboard:TryGetPanel()
    AdvancedInputFieldPlugin.UWPKeyboard:<Setup>b__3_0()
    UnityEngine.WSA.AppCallbackItem:Invoke()
    'SecureMyMedRecords.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Xaml.dll'.
    Exception thrown at 0x00007FFA14A04F69 in SecureMyMedRecords.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x0000005E5F9FE110.
    Assertion failed on expression: 'g_ThreadedGfxDevice'
    SecureMyMedRecords.exe has triggered a breakpoint.
    Exception thrown at 0x00007FF9361AFDF9 (UnityPlayer.dll) in SecureMyMedRecords.exe: 0xC0000005: Access violation reading location 0x0000000000001E74.
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    Did you by any chance built on top of a project that was created with an old Unity version or modify the source code in the generated Visual Studio project? That error almost suggests that the engine initialization went haywire, and one of the reasons for that could be engine calls in order it isn't expecting. I'd try building your project from Unity to an entirely empty folder. If that doesn't work, can you show the code App.cpp from the generated project?
     
  12. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    hi im new with unity i created an application that i want to build for windows store but i get this error and i use this editor version 5.6.4p

    Exception: 'UnionMetadata\Facade\Windows.winmd' not found, do you have Windows UAP SDK installed?
    UnityEditor.WSA.MetroCompilationExtension.GetWindowsWinmdPath (WSASDK wsaSDK) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/MetroCompilationExtension.cs:313)
    PostProcessWSA.GetPlatformAssemblyPath () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWSA.cs:195)
    PostProcessUAPIl2Cpp.CheckSDK () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAPIl2Cpp.cs:239)
    PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:114)
    UnityEditor.WSA.BuildPostprocessor.DoPostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:155)
    UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:162)
    UnityEditor.HostView:OnGUI()
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    You're using an ancient version of Unity, and I assume you have a fairly new Windows SDK installed. Either use a newer Unity version or install a Windows SDK from ~2016-2017.
     
  14. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    thank you very much will reply if that method works
     
  15. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    cool dude thanks very much
     
  16. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    hey there the sdk problem is fixed but i did the build an run option and i got these error mesages

    Exception: Failed to locate env variables VS140COMNTOOLS, VS120COMNTOOLS or VS110COMNTOOLS.
    Utility.GetVSVersion () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/Utility.cs:623)
    ApplicationLauncherImpl.Build () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:200)
    ApplicationLauncher.BuildAndRunOnSingle (BuildLaunchPlayerArgs args, WSASDK wsaSDK, WSABuildAndRunDeployTarget deployTarget) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:60)
    ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:50)
    UnityEditor.WSA.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs

    Exception: Failed to locate env variables VS140COMNTOOLS, VS120COMNTOOLS or VS110COMNTOOLS.


    args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:122)
    UnityEditor.PostprocessBuildPlayer.Launch (BuildTargetGroup targetGroup, BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:150)
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    It seems that this Unity version did not support Visual Studio 2017 or newer. You will have to install Visual Studio 2015 to use it.
     
  18. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    i see a component in the visualstudio installer called the MSVC v140 - VS 2015 C++ build tools v14.00 if i download that build of the build tools in visual studio 2022 installer can that still work or must i stop using 2022 and download version 2015
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    I am not sure. That version of Unity is 6 years old and I cannot recall such details unfortunately. It's worth a shot I think. You also don't need to uninstall VS 2022, installing VS 2015 and not using it should allow Unity to proceed.
     
  20. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    ok so i went on the official microsoft website and visual studio 2015 is a iso can u please tell me how to install it
     
  21. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,159
    Double click on it to mount it and then there should be a Setup.exe or something similar inside.
     
  22. justinexige20066

    justinexige20066

    Joined:
    Dec 18, 2022
    Posts:
    15
    thanks very much ill try that