无法从中读取VR路径注册表 [英] Unable to read VR Path Registry from

查看:1434
本文介绍了无法从中读取VR路径注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 版本:geckodriver-v0.20.0-win64

  • 平台:Windows 10 Home Single

  • 浏览器:Firefox :59.0.2(64位)

  • Selenium:selenium-java-3.11.0

  • intelliJ Idea:2018.1 Community Edition

  • Version: geckodriver-v0.20.0-win64
  • Platform: Windows 10 Home Single
  • Browser: Firefox: 59.0.2 (64-bits)
  • Selenium: selenium-java-3.11.0
  • intelliJ Idea : 2018.1 Community Edition

您好,我开始在intelliJ IDEA中使用带有Java的WebDriver。我使用Maven导入了Selenium,并使用Selenium网页中提供的代码添加了依赖项。我下载了geckodriver并更新了Windows路径。我开始编码,但我得到的输出在我看来是一个错误。有人可以帮我理解发生了什么吗?

Hello, I'm starting to use WebDriver with Java in the intelliJ IDEA. I imported Selenium with Maven and added the dependency with the code provided in the Selenium Webpage. I downloaded geckodriver and updated Windows path. I started to code but I get an ouput that seems to me as an error. Can somebody help me out to understand what is happening?

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class firstTry {
   public static void main (String [] args){
       WebDriver driver = new FirefoxDriver();
       driver.quit();
   }
}

Firefox打开和关闭没有任何问题,但在控制台我的输出对我来说似乎是个错误。如下所示:

Firefox opens and closes with no problem, but In the console I have an output that seems an error to me. As the following:

1522649487586   geckodriver INFO    geckodriver 0.20.0
1522649487598   geckodriver INFO    Listening on 127.0.0.1:31435
1522649488194   mozrunner::runner   INFO    Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-profile" "C:\\Users\\Lolaika\\AppData\\Local\\Temp\\rust_mozprofile.0neo1vgzqEe7"
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
1522649490188   Marionette  INFO    Enabled via --marionette
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
Unable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
1522649494926   Marionette  INFO    Listening on port 54726
1522649495670   Marionette  WARN    TLS certificate errors will be ignored for this session
abr 02, 2018 1:11:35 A.M. org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMACIÓN: Detected dialect: W3C
1522649495872   addons.xpi  WARN    Exception running bootstrap method shutdown on activity-stream@mozilla.org: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://activity-stream/lib/SnippetsFeed.jsm :: uninit :: line 125"  data: no] Stack trace: uninit()@resource://activity-stream/lib/SnippetsFeed.jsm:125 < onAction()@resource://activity-stream/lib/SnippetsFeed.jsm:141 < _middleware/</<()@resource://activity-stream/lib/Store.jsm:51 < Store/this[method]()@resource://activity-stream/lib/Store.jsm:30 < uninit()@resource://activity-stream/lib/Store.jsm:153 < uninit()@resource://activity-stream/lib/ActivityStream.jsm:274 < uninit()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/features/activity-stream@mozilla.org.xpi!/bootstrap.js:80 < shutdown()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/features/activity-stream@mozilla.org.xpi!/bootstrap.js:196 < callBootstrapMethod()@resource://gre/modules/addons/XPIProvider.jsm:4419 < observe()@resource://gre/modules/addons/XPIProvider.jsm:2279 < GeckoDriver.prototype.quit()@driver.js:3270 < despatch()@server.js:557 < execute()@server.js:531 < onPacket/<()@server.js:506 < onPacket()@server.js:505 < _onJSONObjectReady/<()@transport.js:500
[Child 2272, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 2272, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/cUnable to read VR Path Registry from C:\Users\Lolaika\AppData\Local\openvr\openvrpaths.vrpath
Promise rejected while context is inactive: Message manager disconnected
[Parent 5308, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 5336, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 5336, Chrome_ChildThread] WARNIN[Parent 5308, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 8788, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 8788, Chrome_ChildThread] WARNING: pipe error: 109*** UTM:SVC TimerManager:registerTimer called after profile-before-change notification. Ignoring timer registration for id: telemetry_modules_ping
[GPU 10500, Chrome_ChildThread] WARN
###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
1522649503244   geckodriver::marionette ERROR   Failed to stop browser process
Process finished with exit code 0

我该怎么做才能解决这个问题?

What can I do to fix this output?

推荐答案

使用 GeckoDriver v0.20.0 Firefox Quantum v59 .0.2(64位)你的代码块看起来不错,而日志堆栈跟踪看起来同样非常好,没有日志消息

With GeckoDriver v0.20.0 and Firefox Quantum v59.0.2 (64-bits) your code block looks good and the log stack trace looks equally good enough sans the log message :

Promise rejected while context is inactive: Message manager disconnected

根据 Mozilla支持论坛 中的讨论错误似乎是隐私獾即可。简而言之,这个问题是由未加载/正常工作的扩展引起的。

As per the discussion in Mozilla Support Forum this error seems to be Privacy Badger. In short this issue is caused by an extension that isn't loaded/working properly.


  • JDK 升级到最近的级别 JDK 8u162

  • Selenium 升级到当前级别 版本3.11.0

  • 清理您的项目工作区通过您的 IDE 重建您的项目仅具有所需的依赖项。

  • 使用< a href =https://www.ccleaner.com/ccleaner =nofollow noreferrer> CCleaner 工具,用于在执行您的操作之前和之后清除所有操作系统杂务测试套件

  • 如果您的基本 Firefox 版本太旧,请通过 Revo Uninstaller 并安装最新的GA和发布的 Firefox 版本。

  • 进行系统重启

  • 执行 @Test

  • Upgrade JDK to recent levels JDK 8u162.
  • Upgrade Selenium to current levels Version 3.11.0.
  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
  • Use CCleaner tool to wipe off all the OS chores before and after the execution of your Test Suite.
  • If your base Firefox version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Firefox.
  • Take a System Reboot.
  • Execute your @Test.

未解决的承诺是否在window.unload事件之前被拒绝?

好吧,正如我在我的回答中所提到的,你的堆栈跟踪 fair 足够按照当前的实现。但我个人没有在我的 localhost 上看到这个跟踪:

Well, as I mentioned in my Answer your stack trace was fair enough as per current implementations. But personally I haven't seen this trace on my localhost :

Promise rejected while context is inactive: Message manager disconnected

粗略的一些跟踪可能依赖于基础 OS 。现在进行整个讨论 在window.unload事件之前未解决的承诺被拒绝? 底线似乎:

Of-coarse some traces can be dependent of the underlying OS. Now going through the entire discussion Are unresolved promises rejected prior to a window.unload event? the bottom-line seems :


卸载页面的承诺问题(或者实际上是脚本调用)一般来说,卸载的页面没有被很好地指定而且没有被互操作地实现是非常真实的。另请参见 https://bugzilla.mozilla.org/show_bug.cgi?id=1058695 我们最终在Gecko中放置了一些技术上没有遵循规范的缓解措施,因为技术上遵循规范需要在常见情况下泄漏世界......问题是这个事件循环没有规范现在的东西,并且Promise的规范是ES6的一部分,它实际上并不承认Realms在某种意义上需要消失的可能性,所以甚至没有任何东西可以提出这样的问题。

The problem of promises from unloading pages (or indeed script invocation in unloaded pages in general) not being specified very well and not being interoperably implemented is very real. See also https://bugzilla.mozilla.org/show_bug.cgi?id=1058695 where we ended up putting in some mitigations in Gecko that technically don't follow the spec, because technically following the spec requires leaking the world in common cases.... The problem is that there is no spec for this event loop stuff right now, and the spec for Promise is part of ES6, which doesn't really doesn't admit the possibility of Realms needing to go away in some sense, so there's nothing to even raise such issues against.

因此得出结论您可以提前比赛

这篇关于无法从中读取VR路径注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆