Chrome crash on Windows server container - windows

I'm running a windows docker container on a Windows machine using the following command:
PS C:\> & 'C:\Program Files\Google\Chrome\Application\chrome.exe' --headless --disable-gpu --remote-debugging-port=9222 --enable-logging --v=1 "localhost:3000"
Chrome processes will start up and then error out with the following logs:
PS C:\> [0413/103634.151:ERROR:network_change_notifier_win.cc(226)] WSALookupServiceBegin failed with: 0
[0413/103634.167:VERBOSE1:webrtc_internals.cc(117)] Could not get the download directory.
[0413/103634.167:VERBOSE1:media_stream_manager.cc(871)] MSM::InitializeMaybeAsync([this=00005B6400335E00])
[0413/103634.167:VERBOSE1:media_stream_manager.cc(871)] MDM::MediaDevicesManager()
[0413/103634.167:VERBOSE1:media_stream_manager.cc(871)] MSM::MediaStreamManager([this=00005B6400335E00]))
DevTools listening on ws://127.0.0.1:9222/devtools/browser/8fb20519-4faf-412b-ad7c-c848c5d86458
[0413/103634.406:ERROR:network_change_notifier_win.cc(226)] WSALookupServiceBegin failed with: 0
[0413/103634.453:ERROR:dxva_video_decode_accelerator_win.cc(1461)] DXVAVDA fatal error: could not LoadLibrary:
mf.dll: The specified module could not be found. (0x7E)
[0413/103634.453:ERROR:dxva_video_decode_accelerator_win.cc(1461)] DXVAVDA fatal error: could not LoadLibrary:
mfplat.dll: The specified module could not be found. (0x7E)
[0413/103634.453:ERROR:dxva_video_decode_accelerator_win.cc(1461)] DXVAVDA fatal error: could not LoadLibrary:
msmpeg2vdec.dll: The specified module could not be found. (0x7E)
[0413/103634.453:ERROR:dxva_video_decode_accelerator_win.cc(1465)] DXVAVDA fatal error: could not LoadLibrary:
dxva2.dll: The specified module could not be found. (0x7E)
[0413/103634.453:ERROR:dxva_video_decode_accelerator_win.cc(1469)] DXVAVDA fatal error: could not LoadLibrary:
msvproc.dll: The specified module could not be found. (0x7E)
The virtual machine info is as follows:
OS Name: Microsoft
OS Version: 10.0.17763 N/A Build 17763
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Server
This seems similar to this question but the internet connection works and I can connect to various domains/ips/ports. Also, if the call for WSALookupServiceBegin fails, I don't believe it should crash the browser. My guess is that there is some graphics/media libraries not available in this windows server instance but I am otherwise unsure what this error may be coming from. Any ideas?
Same results when using no flags: PS C:\> & 'C:\Program Files\Google\Chrome\Application\chrome.exe' --enable-logging --v=1

If your base image is 2019 core or newer, this is due to missing fonts in the image. They were removed after 2016.
Check out this repo on how to install the missing fonts

Related

AAPanel - Installation fails for PHP 8.0.11 on ARM EC2

Problem Statement
Trying to install PHP8.0 on ARM based server with OS Amazon-Linux-2 having aaPanel as the server management software installed.
Looking forward for solutions with perspective from aaPanel.
Environment Info
Bit:64 Mem:952M Core:2 gcc:7.3.1 cmake:2.8.12.2
Linux 4.14.248-189.473.amzn2.aarch64 aarch64
ERROR: php-8.0.11 install failed.
Error
checking for brotli/decode.h... no
configure: error: BROTLI libs and/or directories were not found where specified!
cat: /etc/redhat-release: No such file or directory
aaPanel Screenshot

fatal error: gnu/stubs-32.h: No such file or directory

I'm trying to build gcc 7.2.0. I get this error:
fatal error: gnu/stubs-32.h: No such file or directory
I don't have root access or sudo access on this machine so I cannot use apt. What source package can I install that will resolve this?
Try installing glibc-devel, see https://www.question-defense.com/2010/03/09/usrincludegnustubs-h727-error-gnustubs-32-h-no-such-file-or-directory and https://stackoverflow.com/a/7412698/6723250.

Installation error with haskell cabal

I'm installing haskell platform for windows 10 for the first time (https://www.haskell.org/platform/windows.html) for my laptop and pc.
My PC installs fine and I can run cabal install hsdev without any issues. However, when I do the exact same process on my laptop the following error is raised:
Resolving dependencies...
Configuring old-time-1.1.0.3...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\user\AppData\Roaming\cabal\logs\old-time-1.1.0.3.log ):
Configuring old-time-1.1.0.3...
configure: error: invalid package name: 0
\old-time-1.1.0.3'
cabal: Leaving directory 'C:\Users\user\AppData\Local\Temp\cabal-tmp-7388\old-time-1.1.0.3'
cabal: Error: some packages failed to install:
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure
The log just repeats the stdout shown above
Any ideas?
Typically this is caused by not adding the following lines to your cabal config (discoverable by running cabal user-config init) as the platform instructions suggest:
extra-prog-path: C:\Program Files\Haskell Platform\8.2.2\msys\usr\bin
extra-lib-dirs: C:\Program Files\Haskell Platform\8.2.2\mingw\lib
extra-include-dirs: C:\Program Files\Haskell Platform\8.2.2\mingw\include
(with the paths set for the appropriate version of the platform.)

Win7 Virtualbox is giving this error when trying to launch a vm: Error loading 'crypt32.dll': 1790

I installed virtual box 4.3.28 in my windows 7 box, tried to open an imported VM and got the error below.
I've seen some posts from about 1/2 year ago stating this was a problem with some windows security fix, but I do not have that fix installed and I have installed the supposed cure for it, to no avail.
KB3004394 is not on my system
older fixes that aren't helping me ( I do not see the offending KB file installed on my machine)
Vagrant laravel box, guest machine entered an invalid state
https://www.virtualbox.org/ticket/13677
error I am seeing:
1618.161c: supR3HardenedScreenImage/LdrLoadDll: cache hit (Unknown Status -22900 (0xffffa68c)) on \Device\HarddiskVolume1\Windows\System32\crypt32.dll
1618.161c: Error (rc=0):
1618.161c: supR3HardenedScreenImage/LdrLoadDll: cached rc=Unknown Status -22900 (0xffffa68c) fImage=1 fProtect=0x0 fAccess=0x0 cHits=8 \Device\HarddiskVolume1\Windows\System32\crypt32.dll
1618.161c: Error (rc=0):
1618.161c: supR3HardenedMonitor_LdrLoadDll: rejecting 'C:\windows\system32\crypt32.dll' (C:\windows\system32\crypt32.dll): rcNt=0xc0000190
1618.161c: supR3HardenedMonitor_LdrLoadDll: returns rcNt=0xc0000190 'C:\windows\system32\crypt32.dll'
1618.161c: Fatal error:
1618.161c: Error loading 'crypt32.dll': 1790 [C:\windows\system32\crypt32.dll]
I had same error: Error loading 'crypt32.dll' on Win7 64bit, Vbox Version 5.1.10 r112026 (Qt5.6.2).
I've resolved in this way:
Start cmd as Admin
Run command: sfc /scannow
From superuser:
https://superuser.com/questions/851148/crypt32-dll-is-broken-for-virtualbox-since-patch-tuesday-9-dec-2014
Download patch from:
https://support.microsoft.com/en-us/kb/3024777
Important: make sure you download the x64 version for 64-bit systems.
download latest version of vm virtualbox. if you are using 4.3.xx, it has this bug.
I had the same issue with vb 4.16 and this fix solved it.
http://www.microsoft.com/en-us/download/confirmation.aspx?id=45307

Erlang debugger error: Could not find 'wxe_driver.so'

I can see the following error report when I start up the debugger.
2> debugger:start().
=ERROR REPORT==== 23-Jan-2014::11:59:08 ===
ERROR: Could not find 'wxe_driver.so' in: /usr/local/Cellar/erlang/R16B03/lib/erlang/lib/wx-1.1.1/priv
{ok,<0.42.0>}
The debugger window still starts despite the error report.
Why the error? Will it cause debugger problem down the road?
Erlang runtime is installed by homebrew. Version number is R16B03
I find a solution:
brew install wxmac
It works with erlang R16B03

Resources