AlexNino's avatar
AlexNino
Regular Visitor
3 years ago
Status:
Done

Power BI Desktop & WebView2 Nigthmare Crash

Hi folks,
WebView2 is the worse nigthmare we have ever had with Power BI
 
So far these days (October 2022) in our compeny we still have huge problems, several times every day, with Power BI desktop CRASHING due tu WebView2. Specially when we attempt to save the pbix file, or even at any time while working on the model.  It just crash and crash and crash!!!!!!
 

 

 
Do you know anything about this? how can we fix this?
If we disable infrastructure update, PowerBi Desktop does not work properly
 
PLEASE MICROSOFT, DO SOMETHING NOW!!!

3 Comments

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi AlexNino ,

     

    Power BI is experiencing a problem with starting WebView2 due to code-integrity issues. This is normally due to anti-virus or some other software on the device interfering with Webview2. 
    To verify this problem, add WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS to the User environment variables and set the value to "--disable-features=RendererCodeIntegrity" and try running desktop. If it works, then you have a code injection problem. Delete the Environment Variable you have set above and disable any software that might be interfering or provide an exemption for the WebView2 process.

     

    Also ,you may contact engineer in this original thread 

    Power BI Desktop not starting with WebView2 due to... - Microsoft Power BI Community

     

    Best Regards,
    Community Support Team _ Caitlyn

  • AlexNino's avatar
    AlexNino
    Regular Visitor

    I have done this WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS setup or configuration, but still the same crashing problem.  Im not using any antivirus program at all. 

     

    I even recently uninstall power bi, and re-intall it, and crasing problem still. I update to windows 11, and crashing still. I´m using Windows 11, 16 GB RAM, Intel Core i5 105h generation.  I dont thing is a performance issue. 

     

    Just microsoft code problems as usual 

  • Open Event Viewer and see if webview crashes (Windows Logs -> Application)

     

    I've found webview crashing and here are details.

    -----------------------------------------------------------------------------------------------------------

    Faulting application name: msedgewebview2.exe, version: 119.0.2151.58, time stamp: 0x654c3a4f
    Faulting module name: ntdll.dll, version: 10.0.22621.2506, time stamp: 0xbced4b82
    Exception code: 0xc0000409
    Fault offset: 0x00000000000a3a66
    Faulting process id: 0x0x5820
    Faulting application start time: 0x0x1DA1885FE34D754
    Faulting application path: C:\Program Files (x86)\Microsoft\EdgeWebView\Application\119.0.2151.58\msedgewebview2.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
    Report Id: 20d45eec-1be6-40f3-aabd-77c988d5a93c
    Faulting package full name:
    Faulting package-relative application ID:

    -------------------------------------------------------------------------------------------------------------------------

     

    This happens when Hardware-enforced Stack Protection is enabled on a machine with latest generation CPU that supports this feature.

     

    As a workaround I turned this off for webview and it works fine now.

     

    - Go to Windows Security -> App & browser control -> Exploit protection settings -> Program settings -> Add program to customize and add msedgewebview2.exe

     

    - Then scroll down below until you find Hardware-enforced Stack Protection.

    - Check Override system settings (Make sure it's turned off)

     

    You'll need to restart Windows.