我们正在尝试调试无法在Windows 10 Pro 64位计算机上创建DotNetBrowser的问题(可能在新的AMD Ryzen 7 CPU上运行)。我们启用了DotNetBrowser的日志记录,这是日志:

5/8/2017 12:35:03 AM Information Browser - OS name: Microsoft Windows 10 Pro  []
5/8/2017 12:35:03 AM Information Browser - OS version: 4.0.30319.42000 []
5/8/2017 12:35:03 AM Information Browser - DotNetBrowser build: 1.10.0.0 []
5/8/2017 12:35:06 AM Information IPC - Starting IPC... []
5/8/2017 12:35:06 AM Information IPC - Starting IPC Server... []
5/8/2017 12:35:06 AM Information IPC - Starting IPC Process... []
5/8/2017 12:35:06 AM Information Process - Start Chromium process... [IPC Process Thread]
5/8/2017 12:35:06 AM Information Process - Command line: C:\Users\DS\AppData\Local\Temp\dotnetbrowser-chromium\55.0.2883.87.1.10.0.0.504\dotnetbrowser-chromium32.exe"--port=1101" "--no-sandbox" "--pid=74740" "--enable-dpi-awareness" "--crash-dump-dir=C:\Users\VAPORSS\AppData\Local\DotNetBrowser\dotnetbrowser.dmp.dir" "--disable-surfaces" "--noerrdialogs"  [IPC Process Thread]
5/8/2017 12:35:06 AM Error Process - [0508/003506:WARNING:resource_bundle.cc(328)] locale_file_path.empty() for locale  []
5/8/2017 12:35:06 AM Error Process - [0508/003506:FATAL:main-delegate.cpp(295)] Check failed: !selectedLanguage.empty(). Failed to find locale file for language en-US []
5/8/2017 12:35:06 AM Error Process - Backtrace: []
5/8/2017 12:35:06 AM Error Process -    GetHandleVerifier [0x016A62D7+122759] []
5/8/2017 12:35:06 AM Error Process -    jxb_stop_process_watcher [0x01652F91+12847505] []
5/8/2017 12:35:06 AM Error Process -    jxb_stop_process_watcher [0x00A17C94+22164] []
5/8/2017 12:35:06 AM Error Process -    jxb_stop_process_watcher [0x00A17CF0+22256] []
5/8/2017 12:35:06 AM Error Process -    jxb_stop_process_watcher [0x0164C794+12820884] []
5/8/2017 12:35:06 AM Error Process -    jxb_stop_process_watcher [0x00A175DD+20445] []
5/8/2017 12:35:06 AM Error Process -    (No symbol) [0x00A025AE] []
5/8/2017 12:35:06 AM Error Process -    jxb_chrome_initialize [0x00A12416+26] []
5/8/2017 12:35:06 AM Error Process -    (No symbol) [0x009ED0DD] []
5/8/2017 12:35:06 AM Error Process -    SetMetricsClientId [0x0307238C+1486653] []
5/8/2017 12:35:06 AM Error Process -    BaseThreadInitThunk [0x77718744+36] []
5/8/2017 12:35:06 AM Error Process -    RtlGetAppContainerNamedObjectPath [0x77CA587D+253] []
5/8/2017 12:35:06 AM Error Process -    RtlGetAppContainerNamedObjectPath [0x77CA584D+205] []
5/8/2017 12:35:06 AM Error Process -  []
5/8/2017 12:35:07 AM Error Process - Dump file has been created and placed in: C:\Users\VAPORSS\AppData\Local\DotNetBrowser\dotnetbrowser.dmp.dir\chromium-main-2017-May-08-00-35-06.dmp []
5/8/2017 12:35:07 AM Error Process -  []
5/8/2017 12:35:07 AM Information Process -  []
5/8/2017 12:35:07 AM Information Process - Chromium process exit code 80000003 [IPC Process Thread]


因此,错误似乎是Chromium进程由于某种原因而获得了空的语言环境列表,并且找不到用于en-US的本地文件。

当同一WPF应用程序在另一台Windows 10 64位计算机上运行时,它将正常运行。

关于为什么语言环境为空的任何想法?

编辑:据报道,CefSharp也存在类似的错误,该错误也嵌入了铬。 https://github.com/cztomczak/cefcapi/issues/2

在这种情况下,似乎有一些多余的文件没有被复制。

最佳答案

DotNetBrowser会将其所有二进制文件和资源自动解压缩到临时文件夹中-在您的情况下,该文件夹为C:\Users\DS\AppData\Local\Temp\dotnetbrowser-chromium\55.0.2883.87.1.10.0.0.504\

某些文件可能未正确复制。为此,您可以尝试完全删除此文件夹,DotNetBrowser将在下次启动时自动还原其内容。

关于c# - 创建浏览器时DotNetBrowser因空的语言环境而崩溃,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43852138/

10-09 21:24