Posts: 7
	Threads: 2
	Joined: Mar 2024
	
Reputation: 
0
	 
	
	
		This is a Visual FoxPro form. I've added these statements to the init of the form.
thisform.oBrowser.additionalBrowserArguments = "--disable-gpu"
thisform.oBrowser.createWebView
thisform.oBrowser.EventsUseHexadecimal = .T.
The gray boxes still show up.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 7
	Threads: 2
	Joined: Mar 2024
	
Reputation: 
0
	 
	
	
		The --disable-gpu didn't show in Process Explorer since the WebView was started instead a VFP app.
I ran the MS WebView.net example and it didn't have the problem.
I turned on logging for AntView and here is the log. It looks like the --disable-gpu is getting set.
Creating new log...
 2024-03-28 08:39:34.331 
 2024-03-28 08:39:34.335 -------------------------------------------------------------------------
 2024-03-28 08:39:34.339 ------ Starting new WebView2 instance                              ------
 2024-03-28 08:39:34.340 -------------------------------------------------------------------------
 2024-03-28 08:39:34.340 Application: C:\SherWare\AMPRO\ampro.EXE (8732)
 2024-03-28 08:39:34.340 Win32
 2024-03-28 08:39:34.340 Current Directory: C:\SherWare\AMPRO
 2024-03-28 08:39:34.355 AntView loaded C:\PROGRA~2\AntView\Win32\AntView.ocx
 2024-03-28 08:39:34.355 AntView version 1.1.354.0
 2024-03-28 08:39:34.355 User: philsherwood
 2024-03-28 08:39:34.355 Log Level: 1
 2024-03-28 08:39:34.355 Initializing defaults
 2024-03-28 08:39:34.375 Creating window $31610
 2024-03-28 08:39:34.384 EventSink changed, creating inplace object $31612
 2024-03-28 08:39:34.388 Reading Version = 1.1.354
 2024-03-28 08:39:34.389 Configuring default userDataFolder.
 2024-03-28 08:39:34.389 userDataFolder C:\Users\philsherwood\AppData\Local\Temp\ampro.EXE.WebView2\
 2024-03-28 08:39:34.389 CreateWebViewOnCreate is set to false, not initializing WebView2 until requested.
 2024-03-28 08:39:34.411 
 2024-03-28 08:39:34.416 -------------------------------------------------------------------------
 2024-03-28 08:39:34.417 ------ Starting new WebView2 instance                              ------
 2024-03-28 08:39:34.417 -------------------------------------------------------------------------
 2024-03-28 08:39:34.417 Application: C:\SherWare\AMPRO\ampro.EXE (8732)
 2024-03-28 08:39:34.417 Win32
 2024-03-28 08:39:34.433 Current Directory: C:\SherWare\AMPRO
 2024-03-28 08:39:34.433 AntView loaded C:\PROGRA~2\AntView\Win32\AntView.ocx
 2024-03-28 08:39:34.433 AntView version 1.1.354.0
 2024-03-28 08:39:34.448 User: philsherwood
 2024-03-28 08:39:34.448 Log Level: 1
 2024-03-28 08:39:34.448 Initializing defaults
 2024-03-28 08:39:34.461 Creating window $410D74
 2024-03-28 08:39:34.469 EventSink changed, creating inplace object $A1618
 2024-03-28 08:39:34.474 Reading Version = 1.1.354
 2024-03-28 08:39:34.475 Configuring default userDataFolder.
 2024-03-28 08:39:34.475 userDataFolder C:\Users\philsherwood\AppData\Local\Temp\ampro.EXE.WebView2\
 2024-03-28 08:39:34.475 CreateWebViewOnCreate is set to false, not initializing WebView2 until requested.
 2024-03-28 08:39:34.499 
 2024-03-28 08:39:34.504 -------------------------------------------------------------------------
 2024-03-28 08:39:34.505 ------ Starting new WebView2 instance                              ------
 2024-03-28 08:39:34.505 -------------------------------------------------------------------------
 2024-03-28 08:39:34.505 Application: C:\SherWare\AMPRO\ampro.EXE (8732)
 2024-03-28 08:39:34.505 Win32
 2024-03-28 08:39:34.521 Current Directory: C:\SherWare\AMPRO
 2024-03-28 08:39:34.521 AntView loaded C:\PROGRA~2\AntView\Win32\AntView.ocx
 2024-03-28 08:39:34.521 AntView version 1.1.354.0
 2024-03-28 08:39:34.521 User: philsherwood
 2024-03-28 08:39:34.536 Log Level: 1
 2024-03-28 08:39:34.536 Initializing defaults
 2024-03-28 08:39:34.547 Creating window $6C1088
 2024-03-28 08:39:34.554 EventSink changed, creating inplace object $E30FB0
 2024-03-28 08:39:34.559 Reading Version = 1.1.354
 2024-03-28 08:39:34.560 Configuring default userDataFolder.
 2024-03-28 08:39:34.560 userDataFolder C:\Users\philsherwood\AppData\Local\Temp\ampro.EXE.WebView2\
 2024-03-28 08:39:34.560 CreateWebViewOnCreate is set to false, not initializing WebView2 until requested.
 2024-03-28 08:39:34.578 Test if WebView2 control is OK.
 2024-03-28 08:39:34.583 Start async creation of the WebView2 control.
 2024-03-28 08:39:34.587 BrowserExecutableFolder: 
 2024-03-28 08:39:34.588 UserDataFolder: C:\Users\philsherwood\AppData\Local\Temp\ampro.EXE.WebView2\
 2024-03-28 08:39:34.588 Setting environment options: chrome flags: [--disable-gpu] Language [] Min. Browser version [95.0.1020.44] Single Sign On False
 2024-03-28 08:39:34.588 Reading InstallPath = C:\Program Files (x86)\AntView
 2024-03-28 08:39:34.588 Trying to load the loader DLL as C:\Program Files (x86)\AntView\Win32\WebView2Loader.dll
 2024-03-28 08:39:34.604 Loading from InstallPath : success.
 2024-03-28 08:39:34.604 Loaded as C:\Program Files (x86)\AntView\Win32\WebView2Loader.dll
 2024-03-28 08:39:34.604 Version = 1.0.1108.44
 2024-03-28 08:39:34.620 Assigned loader library procedures.
 2024-03-28 08:39:34.899 CreateAsync Success $31610
 2024-03-28 08:39:34.899 WebView2 version 122.0.2365.92
 2024-03-28 08:39:34.914 Event OnCreateWebviewCompleted HResult = 0x00000000 (S_OK)
	
	
	
	
	
 
 
	
	
	
		
	Posts: 443
	Threads: 61
	Joined: Oct 2016
	
Reputation: 
14
	 
	
		
		
		2024-03-28, 13:36:02 
(This post was last modified: 2024-03-28, 13:37:40 by wila.)
		
	 
	
		Phil,
That's weird, so the plot thickens.
The WebView2 control that's used by the .net example does not even set the --disable-gpu flag as far as I can recall.
Just to make sure we are chasing the correct issue.
Have you tested this with the standard VFP9 example that comes pre-installed with AntView under "C:\Users\Public\Documents\AntView\Examples\Visual FoxPro" ?
For the record I just ran the standard example using your test page as posted above, here on a Windows 11 VM running under VMware Fusion and it worked as expected.
In addition, I do not need to set the disable-gpu flag for my VMware Fusion install either, but that might be hardware specific as it still depends on the host hardware GPU if the VM can provide GPU acceleration or not.
--
Wil
	
	
	
	
	
 
 
	
	
	
		
	Posts: 7
	Threads: 2
	Joined: Mar 2024
	
Reputation: 
0
	 
	
		
		
		2024-03-29, 19:18:17 
(This post was last modified: 2024-03-29, 20:30:31 by pivoten.)
		
	 
	
		I feel stupid.
I found that there was an EdgeWebBrowser control inside of an EdgeWebBrowser control that was causing the gray boxes. I deleted the extra control and presto! The boxes are gone.
Sorry to trouble you!
Phil
	
	
	
	
	
 
 
	
	
	
		
	Posts: 443
	Threads: 61
	Joined: Oct 2016
	
Reputation: 
14
	 
	
		
		
		2024-03-29, 19:56:19 
(This post was last modified: 2024-03-29, 19:58:17 by wila.)
		
	 
	
		Phil,
Don't worry. These kind of things happen to the best of us, it certainly is a thing that could happen to me too.
I'm just glad that you figured out the reason for the problem and that it now works as it should be.
Also thanks for sharing the reason of the issues. 
I'm sure this thread is going to help someone in the future.
--
Wil