WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: WebView crash in Office JS Addin

Open jakuboppelt opened this issue 1 year ago • 6 comments

What happened?

Our application is an Office JS add-in used in both Excel and Word, and we are experiencing a critical issue during the sign-in process. After the user enters valid credentials, the add-in suddenly crashes and automatically reloads. This prevents users from completing the authentication flow.

msedgewebview2__PID__15792__Date__11_18_2025__Time_11_07_10AM__798__Second_Chance_Exception_C0000005.dmp msedgewebview2__PID__22292__Date__11_18_2025__Time_11_05_02AM__584__Second_Chance_Exception_C0000005.dmp

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

142.0.3595.80

SDK Version

1.0.3351.48

Framework

----Please select----

Operating System

Windows 11

OS Version

26100.7171

Repro steps

Attached dump files. But our steps to reproduce are:

Sign in user A Sign out user A Try Sign in user B - crash

This is not an issue of our application, our sign in process is okk, few days ago it was working correctly. Just using Task Manager I can clearly see that webview process with our application has been suddenly terminated.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

No response

jakuboppelt avatar Nov 18 '25 11:11 jakuboppelt

Hi, @jakuboppelt!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

github-actions[bot] avatar Nov 18 '25 11:11 github-actions[bot]

any update? dump was attached...

4tti avatar Nov 24 '25 11:11 4tti

Is this related to https://github.com/OfficeDev/office-js/issues/6309 ?

nickamckenna avatar Nov 26 '25 15:11 nickamckenna

Here's the workaround we got from the Microsoft Customer Support Service:

You can set the variable using following steps

Press Win + R, type sysdm.cpl and press Enter. Go to Advanced tab. Click Environment Variables. Under System variables, click New. Enter: Variable name: COREWEBVIEW2_FORCED_HOSTING_MODE Click OK → restart Word (or reboot OS).

Please refer to the image below for reference. Image

AliakseiTsybulkaTR avatar Dec 05 '25 15:12 AliakseiTsybulkaTR

The workaround is having side-effect of D&D not working, see linked ticket.

4tti avatar Jan 08 '26 07:01 4tti

Any update?

4tti avatar Mar 05 '26 10:03 4tti