Skip to content

[Problem/Bug]: Access violation reading location (Microsoft.Web.WebView2.Core.dll) #5597

@elibroftw

Description

@elibroftw

What happened?

Exception thrown at 0x00007FF9F8FC4058 in Obscura VPN.exe: 0xC0000005: Access violation reading location 0x00007DF5EF1C0000.

Exception thrown at 0x00007FF9F48E2CC4 in Obscura VPN.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000076CB57D540.

Stack

 	[winrt::hresult_error thrown]	
 	[External Code]	
 	Microsoft.Web.WebView2.Core.dll!00007ff8f7415dbc()	Unknown
 	Microsoft.Web.WebView2.Core.dll!00007ff8f7387acc()	Unknown
 	Microsoft.Web.WebView2.Core.dll!00007ff8f741a284()	Unknown
 	Microsoft.Web.WebView2.Core.dll!00007ff8f73fb3e8()	Unknown
 	EmbeddedBrowserWebView.dll!base::internal::Invoker<base::internal::FunctorTraits<`lambda at ..\..\edge_embedded_browser\client\win\current\embedded_browser_webview_environment.cc:1719:11' &&,ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler *>,base::internal::BindState<0,0,0,`lambda at ..\..\edge_embedded_browser\client\win\current\embedded_browser_webview_environment.cc:1719:11',Microsoft::WRL::ComPtr<ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler>>,void (long, embedded_browser_webview_current::Controller *)>::RunOnce()	Unknown
 	EmbeddedBrowserWebView.dll!embedded_browser_webview_current::internal::EBWebViewEnvironment::RetryCreateWebView()	Unknown
 	EmbeddedBrowserWebView.dll!base::internal::Invoker<base::internal::FunctorTraits<void (embedded_browser_webview_current::internal::EBWebViewEnvironment::*&&)(Microsoft::WRL::ComPtr<embedded_browser_webview_current::Controller>, std::__Cr::unique_ptr<embedded_browser_webview_current::WebViewCreationParams,std::__Cr::default_delete<embedded_browser_webview_current::WebViewCreationParams>>),embedded_browser_webview_current::internal::EBWebViewEnvironment *,embedded_browser_webview_current::Controller *>,base::internal::BindState<1,1,0,void (embedded_browser_webview_current::internal::EBWebViewEnvironment::*)(Microsoft::WRL::ComPtr<embedded_browser_webview_current::Controller>, std::__Cr::unique_ptr<embedded_browser_webview_current::WebViewCreationParams,std::__Cr::default_delete<embedded_browser_webview_current::WebViewCreationParams>>),base::internal::RetainedRefWrapper<embedded_browser_webview_current::internal::EBWebViewEnvironment>,Microsoft::WRL::ComPtr<embedded_browser_webview_current::Controller>>,void (std::__Cr::unique_ptr<embedded_browser_webview_current::WebViewCreationParams,std::__Cr::default_delete<embedded_browser_webview_current::WebViewCreationParams>>)>::RunOnce()	Unknown
 	EmbeddedBrowserWebView.dll!base::OnceCallback<void (std::__Cr::unique_ptr<embedded_browser_webview_current::WebViewCreationParams,std::__Cr::default_delete<embedded_browser_webview_current::WebViewCreationParams>>)>::Run()	Unknown
 	EmbeddedBrowserWebView.dll!embedded_browser_webview_current::EmbeddedBrowserWebView::CloseInternal(long,bool,enum embedded_browser_webview::WebViewCloseReason)	Unknown
 	EmbeddedBrowserWebView.dll!base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &)	Unknown
 	EmbeddedBrowserWebView.dll!base::TaskAnnotator::RunTask<>()	Unknown
 	EmbeddedBrowserWebView.dll!embedded_browser_webview::internal::AppTaskRunner::DoWork(void)	Unknown
 	EmbeddedBrowserWebView.dll!embedded_browser_webview::internal::AppTaskRunner::MessageCallback()	Unknown
 	EmbeddedBrowserWebView.dll!base::RepeatingCallback<bool (unsigned int, unsigned long long, long long, long long *)>::Run()	Unknown
 	EmbeddedBrowserWebView.dll!base::win::MessageWindow::WindowProc()	Unknown
 	EmbeddedBrowserWebView.dll!base::win::WrappedWindowProc<&base::win::MessageWindow::WindowProc>()	Unknown
 	user32.dll!UserCallWinProcCheckWow(struct _ACTIVATION_CONTEXT *,__int64 (*)(struct tagWND *,unsigned int,unsigned __int64,__int64),struct HWND__ *,enum _WM_VALUE,unsigned __int64,__int64,void *,int)	Unknown
 	user32.dll!DispatchMessageWorker()	Unknown
 	[Inline Frame] Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::RunDesktopWindowMessageLoop() Line 1334	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!DirectUI::FrameworkApplication::StartDesktop() Line 235	C++
 	[Inline Frame] Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::StartImpl(ABI::Microsoft::UI::Xaml::IApplicationInitializationCallback *) Line 182	C++
 	Microsoft.ui.xaml.dll!DirectUI::FrameworkApplicationFactory::Start(ABI::Microsoft::UI::Xaml::IApplicationInitializationCallback * pCallback) Line 843	C++
 	[External Code]	
 	[Inline Frame] hostpolicy.dll!coreclr_t::execute_assembly(int) Line 108	C++
>	[Inline Frame] hostpolicy.dll!run_app_for_context(const hostpolicy_context_t &) Line 250	C++
 	hostpolicy.dll!run_app(const int argc, const wchar_t * * argv) Line 285	C++
 	hostpolicy.dll!corehost_main(const int argc, const wchar_t * * argv) Line 426	C++
 	[Inline Frame] hostfxr.dll!execute_app(const std::wstring &) Line 146	C++
 	[Inline Frame] hostfxr.dll!?A0x36711b34::read_config_and_execute(const std::wstring &) Line 533	C++
 	hostfxr.dll!fx_muxer_t::handle_exec_host_command(const std::wstring & host_command, const host_startup_info_t & host_info, const std::wstring & app_candidate, const std::unordered_map<enum known_options,std::vector<std::wstring,std::allocator<std::wstring>>,known_options_hash,std::equal_to<enum known_options>,std::allocator<std::pair<enum known_options const ,std::vector<std::wstring,std::allocator<std::wstring>>>>> & opts, int argc, const wchar_t * * argv, int argoff, host_mode_t mode, const bool is_sdk_command, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 1008	C++
 	hostfxr.dll!fx_muxer_t::execute(const std::wstring host_command, const int argc, const wchar_t * * argv, const host_startup_info_t & host_info, wchar_t * result_buffer, int buffer_size, int * required_buffer_size) Line 579	C++
 	hostfxr.dll!hostfxr_main_startupinfo(const int argc, const wchar_t * * argv, const wchar_t * host_path, const wchar_t * dotnet_root, const wchar_t * app_path) Line 63	C++
 	Obscura VPN.exe!exe_start(const int argc, const wchar_t * * argv) Line 269	C++
 	Obscura VPN.exe!wmain(const int argc, const wchar_t * * argv) Line 332	C++
 	[External Code]	
// Execute the application
unsigned int exit_code;
auto hr = context.coreclr->execute_assembly(
    (int32_t)argv_local.size(),
    argv_local.data(),
    managed_app.data(),
    &exit_code);

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

WinUI3/WinAppSDK

Operating System

Windows 11 ARM64

OS Version

No response

Repro steps

WebView.CoreWebView2.GetDevToolsProtocolEventReceiver("Runtime.consoleAPICalled").DevToolsProtocolEventReceived += (s, e) => OnWebviewConsoleApiCall(e.ParameterObjectAsJson);

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Maybe.

Last working version (if regression)

Friday May 16th 😭

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymore

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions