Skip to content
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

SampleWinComp Example Consistently Reproduces Browser Process Crash with ICoreWebView2CompositionController Embedding #4655

Open
uppet opened this issue Jul 1, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@uppet
Copy link

uppet commented Jul 1, 2024

What happened?

Description:

I am experiencing a consistent issue with the official WebView2SampleWinComp example when embedding WebView2 using the ICoreWebView2CompositionController mode. Specifically, when a web page's non-editable element (such as a button) gains focus and I attempt to input Chinese characters (or use another input method), the WebView2's browser process crashes. I am able to receive a notification of the abnormal termination via add_BrowserProcessExited.

Steps to Reproduce:

Run the WebView2SampleWinComp example.
Embed WebView2 in the application using the ICoreWebView2CompositionController mode.
Navigate to https://www.bing.com/ in the embedded WebView2 component.
In the web search box, type some text in Chinese characters.
Click on a non-editable area of the web page.
Attempt to input Chinese characters using an input method (IME).
Observe that the WebView2's browser process crashes.
Expected Behavior:

The browser process should handle input method entries without crashing, even when focused on non-editable elements.

Actual Behavior:

The browser process crashes when a non-editable element is focused and Chinese characters are input using an input method.

Environment:

OS: Windows11/Windows10
WebView2 SDK: 1.0.2592.51
Input Method Editor: MS PinYIn
This is a critical issue for us since it affects all users who rely on input methods for character entry. Any assistance in resolving this problem would be greatly appreciated.
WebView2SampleWinComp

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.2592.51

Framework

Win32

Operating System

Windows 11

OS Version

No response

Repro steps

Run the WebView2SampleWinComp example.
Embed WebView2 in the application using the ICoreWebView2CompositionController mode.
Navigate to https://www.bing.com/ in the embedded WebView2 component.
In the web search box, type some text in Chinese characters.
Click on a non-editable area of the web page.
Attempt to input Chinese characters using an input method (IME).
Observe that the WebView2's browser process crashes.
Expected Behavior:

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@uppet uppet added the bug Something isn't working label Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

Hi, @uppet!

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!

@uppet
Copy link
Author

uppet commented Jul 1, 2024

0cd832fd-22cb-446e-ab8f-14b7c6b4119f.dmp 14e3a427-7c4a-45f2-84dd-e80bbee4b3e6.dmp a7684535-db9a-49a3-bd11-4623285fb320.dmp

these are the crash dump in WebView2SampleWinComp sample project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants