MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[WebView2SampleWinComp] Reentrancy issue when printing from context menu or “ctrl + p”
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
Running our WebView2 application using Visual Studio triggers a breakpoint when Windows save dialog is shown upon JavaScript print call. Crash won’t occur if no debugger is attached. Bug is reproducible with WebView2SampleWinComp when printing from context menu or “ctrl + p”.
Version
SDK: 1.0.1722.45
Runtime: 114.0.1823.58
Framework: Win32
OS: Win10
Repro Steps
- Start WebView2SampleWinComp from VS
- Open context menu and click “Print” or use “ctrl + p” directly
- Print preview dialog opens
- Select “Save as PDF”
- Save dialog opens
- Wait around 20 seconds until breakpoint is triggered with the following error message:
"Running a message loop synchronously in an event handler in Webview can cause reentrancy issue. Please refer to https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/threading-model#re-entrancy for more information about threading model in WebView2 and how to enable native code debugging for this scenario."
Bug was not reproducible with WebView2APISample.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.