Skip to content

[WebView2SampleWinComp] Reentrancy issue when printing from context menu or “ctrl + p” #3599

@franzi-ko

Description

@franzi-ko

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.

AB#45258108

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions