Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remote rendering problem] Unable to set Storage Account Settings #6

Closed
florolf1 opened this issue May 19, 2020 · 20 comments
Closed

[Remote rendering problem] Unable to set Storage Account Settings #6

florolf1 opened this issue May 19, 2020 · 20 comments

Comments

@florolf1
Copy link

florolf1 commented May 19, 2020

Describe the problem
Storage Account Settings ( MixedRealityToolkit->RemoteRenderingService ) are not saved after building the project.
Starting the App inside Unity Editor, it works fine and all my converted models are shown. After building the app, only the custom build-in model is shown.
Session connection is working fine.

Additional context
One week ago everything worked fine and i was able to load my custom models inside my storage.

Setup
com.microsoft.azur.remote-rendering: 0.1.30
com.microsoft.msbuildforunity: 0.8.4
Unity-Version: 2019.3

already tried out

  • Downgrade remote-render package to 0.1.28
  • Delete project and stated from scratch
  • Building Project from other PC
  • Delete VS and reinstalled
  • Used other Unity version 2018.4 LST
  • Used arr.account.xml in StreamingAssets Folder instead of a custom configuration profile
@janekvap
Copy link
Member

janekvap commented May 20, 2020

Hello Florian, thank you for reporting the issue, we are investigating it now and will come back as soon as we have any details on it.

Update: We can reproduce the issue. The models load on device after ~5 minutes, can you try wait and see if that is the case for you as well or if they don't load at all?

@florolf1
Copy link
Author

Hello,
I can't confirm that. I have just tried it with a configuration profile and an arr.account.xml file and waited between 5-10 min. I was not able to see my custom models.
Package: 0.1.30

@janekvap
Copy link
Member

Can you try using arr.overrides.xml as instructed here.
Could you also try to find out if the storage account data is set on the device or not?
Build the sample with script debugging enabled:
Unity_Fs6WA7i0ut
Put breakpoint in RemoteRenderingService.cs line 817 and attach Unity debugger with the C# unity solution (note the device has to be unplugged from PC), you can check the used storage account and key there.
This will help us see if we are reproducing the same issue or not.

@florolf1
Copy link
Author

I have now tested the sample project with configuration profile, arr.account.xml and acc.override.xml, started a session and waited several minutes without success.

For some reason i am not able to attach unity debugger to my build. Maybe because i am developing on Mac and i am using Parallel Desktop.
I followed these instructions.
As under point 10) i see my device and attached the debugger to it, but it does not stop on any breakpoint.
So i put Debug.Log Messages inside the Initialize-Method of RemoteRenderingService.cs Script. Normally i am able to see the see the Debug.Log messages in the output window, but i dont see any output at all...
I'm gonna try it again right now. I'm sorry I can't help with that.

@janekvap
Copy link
Member

You can try to close the app and through Device Portal go to User Folders\LocalAppData<your app>\TempState\UnityPlayer.log
Check the log for errors / log messages.

@florolf1
Copy link
Author

florolf1 commented May 22, 2020

Got it. Thank you.
My storage account data is set on the device.
In the following a small excerpt from the log.
I can also provide you with the complete log if it helps.

.
.
.
Shader 'BlobWireFrame': fallback shader 'Unlit' not found
UnloadTime: 1,472448 ms
Unable to register IMixedRealityInputDeviceManager service with a null concrete type.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
.
.
.
Failed to load data from account file 'ms-appx:///Data/StreamingAssets/arr.account.xml'. Reason: Unable to find the specified file.
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
.
.
.
Failed to load container data. Reason: An error occurred while sending the request
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
.
.
.

@janekvap
Copy link
Member

Sorry, we are still not able to reproduce here.
"Failed to load container data. Reason: An error occurred while sending the request"
This line says the http request to Azure Storage to enumerate the models failed but isn't very helpful.
Can you try changing this line to:
Debug.LogFormat(LogType.Error, LogOption.NoStacktrace, null, "{0}", $"Failed to load container data. Reason: {ex.Message} Detail: {ex.InnerException?.Message}");
This should provide more information in the log about what went wrong.

@florolf1
Copy link
Author

florolf1 commented May 27, 2020

This is the output after changing the line .

Failed to load container data. Reason: An error occurred while sending the request Detail: Error: ConnectFailure (Value does not fall within the expected range.)

Update:
I took a closer look at the problem. The error occurs with the web request in AzurStorageHelper .

Here is my WebRequestMessage:
webRequestMessage: Method: GET, RequestUri: 'https://{storageAccountName}.blob.core.windows.net/{containerName}?restype=container&comp=list', Version: 1.1, Content: <null>, Headers: { x-ms-date: Wed, 27 May 2020 08:52:05 GMT x-ms-version: 2019-02-02 Authorization: {authHV} }
Note: "storageAccountName","containerName" and "authHV" are placeholder and match what was entered in unity.
authHV in format:
"SharedKey", $"{storageAccountName}:{signature}"
The value for signature is different each time.

Inside Unity Editor the error does not occur.
WebRequestMessage:
webRequestMessage: Method: GET, RequestUri: 'https://{storageAccountName}.blob.core.windows.net/{containerName}?restype=container&comp=list', Version: 1.1, Content: <null>, Headers: { x-ms-date: Wed, 27 May 2020 08:57:53 GMT x-ms-version: 2019-02-02 Authorization: {authHV} }
WebResponse:
webResponse: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Transfer-Encoding: chunked Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: 77fe031f-201e-0031-1104-343e7c000000 x-ms-version: 2019-02-02 Date: Wed, 27 May 2020 08:57:53 GMT Content-Type: application/xml }

Maybe this is helpful.

@janekvap
Copy link
Member

Currently we think the issue is outside our codebase - device environment (updates, other sw on device...) and would like to see if minimal application doing this HttpClient call succeeds or not.
We are out for long weekend but can provide a sample next week.

@florolf1
Copy link
Author

I don't get it. Last week everything was working fine.
I have now reset the device to the factory default and made a fresh installation. I still does not show my custom models on device.

@janekvap
Copy link
Member

janekvap commented Jun 3, 2020

Can you try building this project and deploying to HL? Storage settings are set on the Main Camera game object in SampleScene scene. You should see the list of models in right eye after a little bit.
HttpClientTest.zip

@florolf1
Copy link
Author

florolf1 commented Jun 4, 2020

Hi,
the same thing happens as before. Inside Unity i can see the list of models. On device, i can only see the debug panel.
Changing the network does not help.
UnityPlayer.log:


Logging to C:/Data/Users/FlorianWinterWüst&Pa/AppData/Local/Packages/Template3D_pzq3xp76mxafg/TempState/UnityPlayer.log
Module information:
Built with Compiler Ver '191627012'
Built from '2019.3/staging' branch
Version is '2019.3.11f1 (ceef2d848e70)'
Release build

Application type 'D3D'
OS 'Windows 10 (10.0.19041)'
PlayerConnection initialized from C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Release_ARM64.FlorolF/Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55413
Multi-casting "[IP] 192.168.2.160 [Port] 55413 [Flags] 2 [Guid] 3879859129 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerARM(HOLOLENS-MA7BVA) [Debug] 0 [PackageName] Template3D_pzq3xp76mxafg [ProjectName] " to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55413]
PlayerConnection already initialized - listening to [0.0.0.0:55413]
[Subsystems] Discovering subsystems at path C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Release_ARM64.FlorolF/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: Qualcomm(R) Adreno(TM) 630 GPU (ID=0x45373230)
Vendor:
VRAM: 1932 MB
Initialize engine version: 2019.3.11f1 (ceef2d848e70)
D3D11 device created for Microsoft Media Foundation video decoding.
Created eye textures with a "texture array" layout. The "single-pass instancing" stereo mode will be used.

Windows Mixed Reality spatial locatability state changed to Active.
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 324)

UnloadTime: 1,530521 ms
A Canvas named "Canvas" with a render mode of ScreenSpaceOverlay is being used while VR is also enabled. This Canvas will continue to incur a rendering cost, but will not be visible while in VR. Is this intentional?
(Filename: C:\buildslave\unity\build\Modules/UI/CanvasManager.cpp Line: 929)

Failed to load container data. Reason: An error occurred while sending the request Detail:System.Net.WebException: Error: ConnectFailure (Value does not fall within the expected range.) ---> System.ArgumentException: Value does not fall within the expected range.
at System.Net.Sockets.Socket.SetSocketOption (System.Net.Sockets.SocketOptionLevel optionLevel, System.Net.Sockets.SocketOptionName optionName, System.Int32 optionValue) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Sockets.Socket.SocketDefaults () [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.InitConnection (System.Net.HttpWebRequest request) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.b__41_0 (System.Object o) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00000] in <00000000000000000000000000000000>:0
at System.Converter2[TInput,TOutput].Invoke (TInput input) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task1[TResult] promise, System.Boolean requiresSynchronization) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.TaskFactory1+<>c__DisplayClass35_1[TResult].b__1 (System.IAsyncResult iar) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Camera+CameraCallback.Invoke (UnityEngine.Camera cam) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Windows.WebCam.VideoCapture+OnVideoCaptureResourceCreatedCallback.Invoke (UnityEngine.Windows.WebCam.VideoCapture captureObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.SimpleAsyncResult.SetCompleted (System.Boolean synch, System.Exception e) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.HttpWebRequest.SetWriteStreamError (System.Net.WebExceptionStatus status, System.Exception exc) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.InitConnection (System.Net.HttpWebRequest request) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.b__41_0 (System.Object o) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.ConditionalWeakTable2[TKey,TValue]..ctor () [0x00000] in <00000000000000000000000000000000>:0 at <PrivateImplementationDetails>.ComputeStringHash (System.String s) [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.ThreadStart.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action action, System.Boolean allowInlining, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.FinishStageTwo () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.Finish (System.Boolean bUserDelegateExecuted) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task1[TResult].TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.UnwrapPromise1[TResult].TrySetFromTask (System.Threading.Tasks.Task task, System.Boolean lookForOce) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.UnwrapPromise1[TResult].InvokeCore (System.Threading.Tasks.Task completingTask) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.UnwrapPromise1[TResult].Invoke (System.Threading.Tasks.Task completingTask) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.FinishStageTwo () [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task.Finish (System.Boolean bUserDelegateExecuted) [0x00000] in <00000000000000000000000000000000>:0 at System.Threading.Tasks.Task1[TResult].TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.TaskFactory1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action1[T] endAction, System.Threading.Tasks.Task1[TResult] promise, System.Boolean requiresSynchronization) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.TaskFactory`1+<>c__DisplayClass35_1[TResult].b__1 (System.IAsyncResult iar) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Camera+CameraCallback.Invoke (UnityEngine.Camera cam) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Windows.WebCam.VideoCapture+OnVideoCaptureResourceCreatedCallback.Invoke (UnityEngine.Windows.WebCam.VideoCapture captureObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.SimpleAsyncResult.SetCompleted (System.Boolean synch, System.Exception e) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.HttpWebRequest.SetWriteStreamError (System.Net.WebExceptionStatus status, System.Exception exc) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.InitConnection (System.Net.HttpWebRequest request) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.WebConnection.b__41_0 (System.Object o) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.SendOrPostCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Windows Mixed Reality spatial locatability state changed to Unavailable.
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 324)

GetCurrentHolographicCameraState: No culling frustum available. Culling data may be stale.
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/VRDeviceHoloLens.cpp Line: 309)

GetCurrentHolographicCameraState: No culling frustum available. Culling data may be stale.
(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/VRDeviceHoloLens.cpp Line: 309)

Trimming D3D resources.

@gringlas
Copy link

gringlas commented Jun 4, 2020

I'm having a similiar problem with System.Net.Http.HttpClient and Marc Applesmeier pointed me on this topic in the mixedreality slug. In my case I'm just trying to do a bunch of requests, which worked perfectly well, but when trying to do an update some days ago I always recieve a WebRequestException when I run the app on our HoloLens 1 device with Status Code 2 and this message:
Failed to load container data. Reason: An error occurred while sending the request Detail:System.Net.WebException: Error: ConnectFailure (Value does not fall within the expected range.) ---> System.ArgumentException: Value does not fall within the expected range.

In Unity and in an older version I still have installed on the device everything is running as it should.

@janekvap
Copy link
Member

janekvap commented Jun 4, 2020

Since Florian tried older Unity version it doesn't seem to be Unity issue.
Which Visual Studio version are you using to compile the project? I am still on 16.5.4 from April 26. and the HttpClient works. Updating to latest now to check.

Update: Just checked with VS 16.6.1 and HttpClient works, can you try updating to that so we can cross it out from possible issues?

@gringlas
Copy link

gringlas commented Jun 5, 2020

In my case I still have an older working version of my app, which was built with Microsoft Visual Studio Community 2017 Version 15.5.2 at my home - could try that out again later. On my work computer I have tried building the app with Visual Studio 2017 (15.9.23) and Visual Studio 2019 (16.6.1), but the httpclient won't connect if I built the solution from one of those.

@florolf1
Copy link
Author

florolf1 commented Jun 5, 2020

I am using VS 16.6.1.
I tried it on another PC (VS 16.5.4) without success. The same error occurs.
VS Specification:

Microsoft Visual Studio Enterprise 2019 (2)
Version 16.6.1
VisualStudio.16.Release/16.6.1+30128.74
Microsoft .NET Framework
Version 4.8.03752

Installierte Version: Enterprise

Visual C++ 2019 00433-90001-26305-AA146
Microsoft Visual C++ 2019

Allgemeine Azure-Tools 1.10
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

ASP.NET and Web Tools 2019 16.6.936.3669
ASP.NET and Web Tools 2019

Azure App Service-Tools v3.0.0 16.6.936.3669
Azure App Service-Tools v3.0.0

C#-Tools 3.6.0-4.20251.5+910223b64f108fcf039012e0849befb46ace6e66
C#-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.

IntelliCode-Erweiterung 1.0
Detaillierte Informationen zur IntelliCode Visual Studio-Erweiterung

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++-Assistenten 1.0
Microsoft Visual C++-Assistenten

NuGet-Paket-Manager 5.6.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter https://docs.nuget.org/.

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Testadapter für Google Test 1.0
Ermöglicht die Verwendung von Visual Studio-Testtools mit Komponententests, die für Google Test geschrieben wurden. Die Nutzungsbedingungen und Drittanbieterhinweise stehen im Installationsverzeichnis der Erweiterung zur Verfügung.

VC-Paket für Microsoft Visual Studio 1.0
VC-Paket für Microsoft Visual Studio

Visual Basic-Tools 3.6.0-4.20251.5+910223b64f108fcf039012e0849befb46ace6e66
Visual Basic-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.

Visual Studio-Tools für CMake 1.0
Visual Studio-Tools für CMake

Visual Studio Code-Debugadapter-Hostpaket 1.0
Interopebene zum Hosten der Visual Studio Code-Adapter in Visual Studio

@janekvap
Copy link
Member

janekvap commented Jun 5, 2020

So VS also doesn't seem to be the culprit, can I also ask you for your PC Windows version/OS build number? Are you on any Insider program? I am going to check what the il2cpp generates for those HttpClient calls to see if we can log issue to Unity/ VS/ Windows.

@gringlas
Copy link

gringlas commented Jun 6, 2020

I'm running on Windows 10 Pro Version 1903 and I'm not in any Insider program.
I have also stated my problem in the unity forums https://forum.unity.com/threads/hololens-1-httpclient-connect-failure.905039/ and someone there stated that he has the exact same problems with Unity2019.3.1.

I just built a version of my app on my PC with Visual Studio 2017 and Unity 2019.3.1f1 and I get no connection error.
Building the app with Unity 2019.3.15f1 and Visual Studio Community 2017 (15.5.2) also works.

Those are my Visual Studio informations:
Microsoft Visual Studio Community 2017
Version 15.5.2
VisualStudio.15.Release/15.5.2+27130.2010
Microsoft .NET Framework
Version 4.8.03752

Installierte Version: Community

Visual Basic 2017 00369-60000-00001-AA791
Microsoft Visual Basic 2017

Visual C# 2017 00369-60000-00001-AA791
Microsoft Visual C# 2017

Visual C++ 2017 00369-60000-00001-AA791
Microsoft Visual C++ 2017

Allgemeine Azure-Tools 1.10
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

Application Insights-Tools für Visual Studio-Paket 8.10.01106.1
Application Insights-Tools für Visual Studio

ASP.NET and Web Tools 2017 15.0.31125.0
ASP.NET and Web Tools 2017

JavaScript-Sprachdienst 2.0
JavaScript-Sprachdienst

JavaScript Project System 2.0
JavaScript Project System

JavaScript UWP-Projektsystem 2.0
JavaScript UWP-Projektsystem

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++-Assistenten 1.0
Microsoft Visual C++-Assistenten

NuGet-Paket-Manager 4.5.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter "http://docs.nuget.org/".

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Testadapter für Google Test 1.0
Ermöglicht die Verwendung von Visual Studio-Testtools mit Komponententests, die für Google Test geschrieben wurden. Die Nutzungsbedingungen und Drittanbieterhinweise stehen im Installationsverzeichnis der Erweiterung zur Verfügung.

TypeScript-Tools 15.5.11025.1
TypeScript-Tools für Microsoft Visual Studio

VC-Paket für Microsoft Visual Studio 1.0
VC-Paket für Microsoft Visual Studio

Visual Studio-Tools für CMake 1.0
Visual Studio-Tools für CMake

Visual Studio-Tools für Unity 3.5.0.2
Visual Studio-Tools für Unity

Visual Studio Code-Debugadapter-Hostpaket 1.0
Interopebene zum Hosten der Visual Studio Code-Adapter in Visual Studio

Visual Studio Tools für universelle Windows-Apps 15.0.27128.01
Mit den Visual Studio Tools für universelle Windows-Apps können Sie eine universelle App-Erfahrung erstellen, die auf jedem Gerät genutzt werden kann, das Windows 10 ausführt: Smartphone, Tablet, PC und viele weitere Geräte. Das Microsoft Windows 10 SDK ist in den Tools enthalten.

@florolf1
Copy link
Author

florolf1 commented Jun 8, 2020

Building the app with Unity Version 2019.3.15f1, VS 16.6.1 and SDK Version 10.0.18362.0 is working for me. No more Http Errors occur and i can see my custom models.
I also tryed building the app with Unity Version 2019.3.13f1 and 2019.3.11f1 with VS 16.6.1. and i am getting the Http Error.
For some reason with Unity version 2018.4 LST and VS 16.6.1 it is working as well now, but it did not work 3 weeks ago. Maybe that was my fault...

So this issue is fixed for me, its working again. The error seems to be on Unity side.

@janekvap
Copy link
Member

janekvap commented Jun 8, 2020

If all is working now I will close the issue. Sorry for the hiccup in your fun times with HL2 and ARR.
It seems that Unity version (maybe in combination with OS update) caused this issue and is resolved by updating to Unity 2019.3.15f1+.

@janekvap janekvap closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants