gpt4 book ai didi

c# - 由于语言环境为空,创建浏览器时 DotNetBrowser 崩溃

转载 作者:太空宇宙 更新时间:2023-11-03 12:28:06 26 4
gpt4 key购买 nike

我们正在尝试调试 DotNetBrowser 无法在 Windows 10 Pro 64 位计算机(恰好在新的 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 报告了一个类似的错误,它也嵌入了 Chrome 。 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com