You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented an embedded browser that inherits from CWnd, using the C++ SDK, and am getting an invalid read error upon closing the ICoreWebView2Controller class object.
Within the CWnd::OnDestroy function override, I am trying to shut down the ICoreWebView2Controller object when I get this error and I believe that I have removed all the event handlers I added. Additionally, I have implemented my own host interop object that interacts with the browser. I believe it should've been deleted correctly.
Below is the stack trace that I am getting before running into this critical error.
I have other embedded browser instances that run JavaScript but close correctly. What could be the cause for this issue?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
127.0.2651.105
SDK Version
1.0.2151.40
Framework
Win32
Operating System
Windows 11
OS Version
No response
Repro steps
The implemented web browser initialises and connects a host interop object between the web code and WebView2 objects.
Some JS runs and the host interop object completes its calls.
Implemented web browser is attempted to be shut down. Error is produced at this step
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
I have implemented an embedded browser that inherits from CWnd, using the C++ SDK, and am getting an invalid read error upon closing the ICoreWebView2Controller class object.
*** ERROR: Access violation
+++ Invalid read from FFFFFFFFFFFFFFFF
rsp: 89f91fa890, rip: 7ffd40440d62, rbp: 7db800287530
rsi: 7db800269d48, rdi: 7db800269d40
rax: 6f007200620062, rbx: 1, rcx: 27067ab69c8, rdx: 0
r8: 0, r9: 7ffd4064cf70, r10: 1, r11: 1
r12: 7db8002e10f0, r13: 7db800287530, r14: 7db800256940, r15: 7db800256958
Within the CWnd::OnDestroy function override, I am trying to shut down the ICoreWebView2Controller object when I get this error and I believe that I have removed all the event handlers I added. Additionally, I have implemented my own host interop object that interacts with the browser. I believe it should've been deleted correctly.
Below is the stack trace that I am getting before running into this critical error.
I have other embedded browser instances that run JavaScript but close correctly. What could be the cause for this issue?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
127.0.2651.105
SDK Version
1.0.2151.40
Framework
Win32
Operating System
Windows 11
OS Version
No response
Repro steps
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: