进程已完成,退出代码为-1073741819
当我在 RubyMine 中运行功能文件时,它会随机崩溃并出现此错误。有时它会运行一个场景,有时它会在给出此错误之前运行几个场景,但它总是如此。我们认为这与我们使用的 IE 版本有关,但似乎所有版本都会出现这种情况。此外,这个问题似乎并没有影响每个人,我们不确定是什么原因导致它,因为每个环境的设置都是相同的......有什么想法吗?
When I run a feature file in RubyMine it will randomly crash with this error. Sometimes it will run one scenario other times it will run a couple before giving this error but it always does. We thought it had something to do with the version of IE we were using but it seems to occur with all versions. Also this issue doesn't seem to affect everyone and we're unsure as to what causes it because the settings on each environment are the same... Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Ruby 中不应该出现任何崩溃。如果是这种情况,那么您选择的 Ruby 解释器深处就存在一个不应该存在的错误。尝试获取此问题的调试报告并报告 Ruby Redmine 或等效的问题跟踪器。
There shoudn't be any crashes in Ruby. If that's the case then there is a bug deep down in the Ruby Interpreter of your choice where there shouldn't be one. Try to get a debug report for this and report on Ruby Redmine or the equivalent issue tracker.
我不认为这是解决方案,但到目前为止,它似乎已经修复了我的代码...在我的钩子文件中,我有一个 after 块,其中有 @browser.quit 行,我已经追踪到了失败到这一行,当我注释掉这一行时,我没有收到错误。就像我说的,我不知道这是否真的是问题的原因,但到目前为止它似乎已经解决了......只是想我会分享。
编辑:好的,我找到了真正的解决方案。显然,在命令“quit”中的某处存在导致 -1073... 错误的错误。我没有使用“quit”,而是将其切换为“.close”,这似乎已经解决了问题。 close 命令将干净地关闭浏览器实例,不会出现任何错误。
I don't think that this is the solution but so far it seems to have fixed my code... In my hooks file I have an after block that among other things has the line @browser.quit I've tracked the failure down to this line and when I comment this line out I don't get the error. Like I said I don't know if this is actually the cause of the problem but so far it seems to have resolved it... Just thought I'd share.
Edit: Ok I found out the real solution. Apparently somewhere in the command "quit" there's a bug that causes the -1073... error. Instead of using "quit" I switched it to ".close" and that seems to have resolved it. The close command will cleanly close out of the browser instance without any errors.