jnschulze / flutter-webview-windows

A WebView2-powered Flutter WebView implementation for the Windows platform.
BSD 3-Clause "New" or "Revised" License
203 stars 120 forks source link

Windows application was crashed. Webview not initializing in windows 11 pro. #295

Closed Anish-T-GitHub closed 3 months ago

Anish-T-GitHub commented 3 months ago

I installed webview2 runtime this webview working in some systems but mostly application was crashed when webview controller initializing time.

OS version - Windows 11 pro Flutter version - 3.22.2 Dart version - 3.4.3

venky9885 commented 3 months ago

yes i am also facing same issue, For me debug mode its fine ,but after build with msix its crasghing on opening webview page

venky9885 commented 3 months ago

@jnschulze its crashing on windows11 ,please check it ASAP

julianbraasch commented 3 months ago

I had that issue too last week, but it was unrelated to my dependencies. Kindly check if your generated output directory contains the necessary Visual C++ Redistributable files as listed here

venky9885 commented 3 months ago

I am building application using msix package,so there's no need to check those files whether they are present.

Anish-T-GitHub commented 3 months ago

Error find from Event Viewer

Faulting module name: MSVCP140.dll, version: 14.26.28804.1, time stamp: 0x5e9b29e5 Exception code: 0xc0000005

Anish-T-GitHub commented 3 months ago

@venky9885 I fixed this issue

Please refer this link for issue fix - https://answers.microsoft.com/en-us/windows/forum/all/msvcp140dll-error/b0eaa485-159c-4d66-b12d-ae0e197782e5

need install x64 & x86 redistributables.

then restart you pc.

it works.

Alvaro1dev commented 3 months ago

Hi

In my case, I had to downgrade Visual Studio Community 2022 version from 17.10.3 to 17.7.5 to make it work.

Anish-T-GitHub commented 3 months ago

Hi

In my case, I had to downgrade Visual Studio Community 2022 version from 17.10.3 to 17.7.5 to make it work.

Okay @Alvaro1dev How to downgrade visual studio community 17.7.5.

venky9885 commented 3 months ago

If I downgrade flutter run doesn't work,so we have to downgrade both flutter and vsiuval studio,I don't want to do

Hi

In my case, I had to downgrade Visual Studio Community 2022 version from 17.10.3 to 17.7.5 to make it work.

Anish-T-GitHub commented 3 months ago

@venky9885 how to downgrade 17.7.5. i searched the download link but i can't find any link. please help me

venky9885 commented 3 months ago

Open visuval studio installer then select modify and downgrade it

Anish-T-GitHub commented 3 months ago

If I downgrade flutter run doesn't work,so we have to downgrade both flutter and vsiuval studio,I don't want to do

Hi In my case, I had to downgrade Visual Studio Community 2022 version from 17.10.3 to 17.7.5 to make it work.

Yes @venky9885 i downgrade visual studio to 17.7.5 it's working for me and build was getting successfully without any issues. I used latest flutter version i didn't getting any errors. Thank You @Alvaro1dev.

Flutter Framework Details

OS version - Windows 11 pro Flutter version - 3.22.2 Dart version - 3.4.3

venky9885 commented 3 months ago

Don`t close this we need perfect solution in new versions of software Flutter latest version as well visuval studio communtity