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

trace_logging_minimal_win.cc(23) Provider resistration failure #3687

Open
mmaciejo opened this issue Aug 4, 2023 · 4 comments
Open

trace_logging_minimal_win.cc(23) Provider resistration failure #3687

mmaciejo opened this issue Aug 4, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mmaciejo
Copy link

mmaciejo commented Aug 4, 2023

Hello
I'm using WebView2 inside Windows Forms App project in specific scenario:

  1. attached console in Main STAThread method,
  2. WebView2 component used inside class without form,
  3. with fixed/portable version of WebView2 Runtime (Microsoft.WebView2.FixedVersionRuntime.115.0.1901.188.x64)
  4. using self-contained deploymentfor whole app.
    Everything it seems to be prepared for using this app inside Azure Web App App Service.
    On my local testing environment application works fine, but on Azure I have got error:
    ERROR: trace_logging_minimal_win.cc(23) Provider resistration failure.
    I have checked it using App Service Console, but also inside WebAPI call.
    Can someone help me how to get around this problem? Any tip will be appreciated.
    Regards,
    Maciej
@novac42 novac42 added bug Something isn't working and removed question labels Aug 7, 2023
@novac42
Copy link
Contributor

novac42 commented Aug 7, 2023

Hi @mmaciejo sorry you are running into this. Do you have the event log on Azure machine? It may provide more information about the error.

@LiangTheDev
Copy link
Member

It indicates that a call to EventRegister failed. Does this error prevent WebView2 from working?

@mmaciejo
Copy link
Author

mmaciejo commented Aug 8, 2023

I'm not sure if this error prevent WebView from working. I have forwarded exception to console and I have got:
ERR:COMException: Invalid window handle. (0x80070578)
---StackTrace---
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateAsync(String browserExecutableFolder, String userDataFolder, CoreWebView2EnvironmentOptions options)
at ExternalServicesAdapter.WebViewReportDownloader.Execute()
---Source---
System.Private.CoreLib

@aluhrs13 aluhrs13 removed their assignment Aug 10, 2023
@LiangTheDev
Copy link
Member

"Invalid window handle" error doesn't make much sense from CoreWebView2Environment.CreateAsync. At that time, the parent hwnd for the webview controller has not been provided yet and the trace_logging_minimal_win.cc error has nothing to do with any hwnd.

Since the error message stated invalid window handle, and you stated that "WebView2 component used inside class without form", are you providing HWND_MESSAGE as the parent hwnd when creating WebView controller?

If the trace_logging_minimal_win.cc error could cause some trouble, it would be it crashed the webview browser process, could you check whether there is any dump files under the EBWebView\Crashpad\reports subfolder of the specified userDataFolder in CoreWebView2Environment.CreateAsync? If there are dump files, the stack in those dump files would give us some clues.

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

4 participants