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

[Problem/Bug] WebView2 causes Unity application to crash after updating HoloLens OS #4364

Closed
ArDevKarl opened this issue Feb 9, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ArDevKarl
Copy link

What happened?

Since I updated my HoloLens to
22621.1258.arm64fre.ni_release_svc_sydney_rel_prod.240104-0655

WebView2 (0.17.1-pre.5) causes my application to crash without notice. Everything worked fine, in previous versions of the HoloLens OS.

The logs don't show any errors, so I cannot give any real clues about what's causing this. The only thing I know for certain is that it worked before updating the HoloLens.

Was there maybe an Edge update within the last 2 months?

Using MRTK2.8.3 and Unity 2022.3.7f1

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

0.17.1-pre.5

SDK Version

No response

Framework

Unity Plugin

Operating System

Windows 11

OS Version

No response

Repro steps

Update the HoloLens to the current build and try to display a Website with WebView2

Repros in Edge Browser

No

Regression

Don't know

Last working version (if regression)

No response

@ArDevKarl ArDevKarl added the bug Something isn't working label Feb 9, 2024
@ArDevKarl ArDevKarl changed the title WebView2 causes Unity application to crash after updating HoloLens OS [Problem/Bug] WebView2 causes Unity application to crash after updating HoloLens OS Feb 9, 2024
@michaelfarnsworth
Copy link
Collaborator

@ArDevKarl sorry to hear about this issue. To answer your question about Edge updates. There are fairly regular updates. Can you provide the Unity log? Better yet, if you launch your application from Visual Studio, what exception are you hitting?

@ArDevKarl
Copy link
Author

@michaelfarnsworth
UnityPlayer(1).log

Here is the playerlog. Like I said, the crash happens without notice. As soon as a WebVew is instantiated, the app goes black and crashes after a few seconds. There is no Error. Everything works fine inside the Unity Editor by the way.

I suspect that the call to MS-Edge in the background is somehow broken, since the last update.

@michaelfarnsworth
Copy link
Collaborator

@ArDevKarl does the issue reproduce for you if you just run our sample app?

Also, have you tried deploying and running the app from Visual Studio? It should break on any exceptions that would cause a crash.

@ArDevKarl
Copy link
Author

Ok, the sample app running on the same version of unity and MRTK works.

I remeber there being a problem, when the WebView was instantiated at Scale.zero. We managed to work around this for the last version of the application that worked. But maybe that is now an issue again with a new version of Edge.

I'll invesigate this, if I have the time and let you know whats causing it.

Trying to run the application from VS, but this needs some tweaking and time.

@ArDevKarl
Copy link
Author

The issue is caused by a seperate plugin (Vuplex) that we use as fallback for ARM32 builds. Turns out, we cannot have both libs n the same project.

The issue here is that WebView2 is very hard to debug. Many problems cause hard crashes of the Unity application. That should be adressed in further releases (Example: #3746)

@michaelfarnsworth
Copy link
Collaborator

I'm glad you were able to get to the root of the issue. And thank you for the feedback about the crashes. This is an improvement that we are tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants