1. appeon pb
  2. PowerBuilder
  3. Saturday, 12 August 2023 14:26 PM UTC

PB 2022 R2,webview2, Both EverGreen and Fixed runtime, can't show any thing:

 

App Open:

webbrowserset('RuntimeMode','1' )
webbrowserset('FixedVersionRuntimePath','.....' )

window w_1:

wb_1.Navigate('.....')

NavigationStart event ,the uri is correct,Navigationerror evnet :the connection was stoped;

 

in my another machine,same code , run correct;

Accepted Answer
appeon pb Accepted Answer Pending Moderation
  1. Monday, 14 August 2023 17:30 PM UTC
  2. PowerBuilder
  3. # Permalink

thank you very much John Fauss, I test my webview2 install  in Vs(https://github.com/MicrosoftEdge/WebView2Samples), VS give me more error info :

Child process failed
Kind:COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED
Reason:COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED
Exit code:-1073740760

and I find the resolvent from https://github.com/MicrosoftEdge/WebView2Feedback/issues/2761

 I add a  environment variables WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS with value of --disable-features=RendererCodeIntegrity , this  disable the Edge security feature so that now my  WebView2 run normal.

 

-1073740760 is STATUS_INVALID_IMAGE_HASH, suggesting that there are third party software injecting dlls into WebView renderer process.

You can use Event Viewer (eventvwr.exe) to check Error events under Microsoft-Windows-CodeIntegrity/Operational. Use the Details tab so that we can see whether an event is for msedgewebview2.exe.
As it is likely that the third party software injects into all processes, you can also attach a debugger to one of the msedgewebview2.exe process and then see which non Microsoft modules (dlls) are loaded into the process.

Once we identified the dll, try to find which third party software it is coming from and whether there is any settings in that software to exclude msedgewebview2.exe from injecting target.

If all not working, you can set environment variables WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS with value of --disable-features=RendererCodeIntegrity to disable the Edge security feature so that WebView2 can run. It is not recommended, but that would get it working.

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Sunday, 13 August 2023 00:20 AM UTC
  2. PowerBuilder
  3. # 1

Does this issue occur when you are running the application from the IDE or from a compiled/deployed app? If it is failing when running as a deployed app, then it is likely that the installation is missing one or more runtime files. Note below there are two runtime files required in addition to the PBWebView2 folder.

Best regards, John

Comment
There are no comments made yet.
appeon pb Accepted Answer Pending Moderation
  1. Saturday, 12 August 2023 14:33 PM UTC
  2. PowerBuilder
  3. # 2

webview2 both X64 X86 version is error;

by the way ,can X86 app run webview2 with X64 runtime?

Comment
  1. appeon pb
  2. Saturday, 12 August 2023 14:37 PM UTC
error on win 11 , right on win 10 machine.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.