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
Webview2 Runtime 114.* hangs on AddHostObjectToScript for already existing object #3539
Comments
We are experiencing the same problem and have identified the same potential options/fixes:
We would highly appreciate an updated version of WebView2 in which calls to |
Hi we are facing the same issue here with the same conclusion. We also have multi hundreds end users affected. We are on our journey on fixing it with RemoveHostObjectFromScript. We are now cherry picking it to older versions and build agents will run hot today .... super panic ;) |
In our company downgrading was only a very temporary solution, because it did not take long and the update was back (sometimes only seconds, as if the installer was checking immediatly for updates). So only working solution was to try/catch "RemoveHostObjectFromScript" before every "AddHostObjectToScript", like pontusn already pointed out. |
Hi Gettin' a bit nervous because I need to deploy a hotfix to a lot of systems right now. Would highly appreciate a fix for this problem Thx |
Fortunately our client offers two possible drop-in solutions:
Downgrading WebView2 in not possible unless you completely disable automatic upgrade. |
Would have been nice to have this information on Friday at 4pm (CST) when I was up 24 hours to isolate the issue and at the time the only solution was to move to a fixed version which was not straightforward at the time due to lack of coffee in the middle of the night. |
I was lucky to find the workaround within minutes after reproducing the issue in the debugger. Simply pausing showed which call hung, but the puzzling twist was that it couldn't be every call that caused the issue. A second runthrough revealed that replacing existing objects were the culpit. First thing I then tried was to remove any existing object before adding the replacement. Ignoring any return value from removing non-existing objects completed the workaround. That turned out to be the easy part. Distribution of the fix is far more difficult, especially when the automatic upgrade is triggered after the code that hung. Currently we are attacking this with three different strategies depending on the end-user environment:
The difficult part is when the end-user is neither local admin nor comfortable with running scripts. |
One of our customers found another workaround by setting the environment variable |
I've opened a tracking issue and will look into this now. Has anyone tried using the latest Canary to see if the bug still exists in the latest builds? I'll try that in just a bit. |
This automatic upgrade caused hundreds of workstations running our POS with the WebView to freeze. |
FYI we've identified the underlying issue and are working on a fix. |
Is there an ETA on a fix for this? |
Apparently the flawed build (WebView2 Runtime 114.0.1823.37) is still promoted via update channels. Holidays and lucky timing have mitigated the effect in Scandinavia. We expect to see full consequences on Wednesday morning when all offices open normal hours. For corporate customers with controlled IT environment we currently advise them to stop automatic updates until either the workaround have been distributed or a fully functional build of WebView2 have been released. |
Does anyone know if it’s possible to disable the webview2 version 114 update without disabling all automatic updates? |
We are currently encountering the same issues, many production users down. We have found older version installs but they all appear to be evergreen and as soon as the user reboots, they are upgraded to 114.* and break again,. |
|
Just noted that 114.0.1823.41 is now available for download. Does this update include the patch? Basic testing indicate that it is not included. |
The 114 fix is not yet released. I got the 114 fix in yesterday and it should be available in versions 114.0.1823.42 and higher. The current schedule has that getting released tomorrow. I will post back here if I find out any changes to the expected schedule. |
@david-risney Thank you for the information. Do you know when Microsoft will auto-push that release to workstations? You said you can download it tomorrow, but when will it auto push? |
It should begin rollout/auto-push tomorrow as well, completing over the following 48-72 hours. |
Just to be clear, you are talking about canary only? Or are you talking about WebView2 also being auto-pushed over the next 48-72 hours? |
I was only referring to the stable WebView2 Runtime version 114, which has a slower rollout to allow time to stop rollout if needed. Canary is pushed daily and should |
Thanks for addressing this issue. |
Canary build with 116.0.1903.0 has been rolled out with the fix for testing. |
WebView2 Runtime version 114.0.1823.43 containing the fix for this bug has been released and will auto-push completing over the following 48-72 hours like Nic described above. |
We have not yet received the automatic update, but was able to verify the fix via fixed version override. Everything appears to be back to normal. |
2 of our 5 developers have received the update through normal channels and we have validated that it fixed our application for those two. Thanks for resolving the issue. |
Rollout of 114.0.1823.43 stable WebView2 Runtime should now be complete. Thanks! |
Description
Clients automatically upgraded to 114.* hangs on startup when integration add COM object for script access where object by same name already exists.
Downgrading to fixed version 113.* makes client start properly. Removing existing object before adding it again also resolves issue.
Version
SDK: Latest, but seems to apply also to older.
Runtime: Release 114.*
Framework: Win32
OS: Win10, Win11
Repro
Workaround
Technical Details
Our integration replace certain host objects in response to navigation. This scheme have worked flawlessly until WebView2 Runtime 114.*
Running from debugger we noticed that calls to AddHostObjectToScript hanged for second navigation, ie. when there already were objects with "conflicting" name. Removing the existing object before adding the replacement seems to work for all WebView2 Runtime versions we have available in our setup.
For our Windows client software this leaves us with two options:
This is a matter of urgency for us since literally thousands of end-users are affected.
AB#44921645
The text was updated successfully, but these errors were encountered: