-
Notifications
You must be signed in to change notification settings - Fork 53
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
Creating Multiple WebView2 Instances causes 0x8007139f error on one Instance #2703
Comments
@mingchengzack I will ask around and see if I can find someone best suited to investigate this. Thanks! |
Hi @mingchengzack, This is a racing condition where the WebView2 Runtime configuration appears to be different for the two app processes requesting creation. Delaying the second launch a bit will prevent the race. Is this an issue for your project? Thanks, |
Yes as we can launch two our apps at the same time. Is there a better way to prevent this? Also is it possible to prevent this racing condition on your side as we are using the same environment options which shouldn't cause this configuration different problem? |
I have opened a work item on our end to track this. The issue is well understood and I'm working on a fix but it will take a while to be available since this is happening in the WebView2 Runtime. If checked in right now, it would reach WebView2 Runtime for our 106 release in late September per our Release Schedule. Unfortunately, there's no other workaround since this is in the WebView2 Runtime. If you know the environment configuration is the same, your app can handle |
@Syul968 Thanks. We are going to go with retry for now. Could you update in this thread when you guys get the fix in? |
The fix is now available in 1361+ builds and is expected to reach the WebView2 Runtime for our 106 release: Release Schedule. You can test the fix for your application by installing latest Edge Canary Channel and setting the channel preference for you app: Approaches to making your app use a specific browser channel. |
Description
When we try to run two sample apps
WebView2APISample
at the same time, run.\WebView2APISample.exe ; .\WebView2APISample.exe
, one instance pops up the error of 0x8007139f.Version
SDK: 1.0.1340-prerelease (but should be reproduced with 1.0.1293.44 as well)
Runtime: 104.0.1293.54
Framework: Win32
OS: Win 11
AB#41026429
The text was updated successfully, but these errors were encountered: