Ruby 解释器 (CUI) 1.9.2p180 [i386-mingw32] 已停止工作(我没有使用 MySQL)
我的 ruby 解释器在几乎每个页面请求上都会崩溃,并出现以下错误: Ruby 解释器 (CUI) 1.9.2p180 [i386-mingw32] 已停止工作
我没有使用 MySQL,也没有安装 gem,因为许多在线帖子都建议这是一个潜在原因。我可以从哪里开始解决此问题?我的环境如下所述。这是一个关键问题,因为我无法在这种环境中继续开发,因此任何想法将不胜感激。谢谢!
Windows 7 64 位 ruby 1.9.2p180 [i386-mingw32],使用 rubyinstaller 安装 导轨3.0.4 webrick/mongrel 崩溃
My ruby interpreter is crashing on almost every page request with the following error:
Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
I am not using MySQL nor do I have the gem installed, as many of the posts online have suggested as a potential cause. Where I can begin troubleshooting this issue? My environment is stated as below. This is a critical issue as I cannot continue development in this environment so any ideas would be greatly appreciated. Thanks!
Windows 7 64bit
ruby 1.9.2p180 [i386-mingw32], installed with rubyinstaller
Rails 3.0.4
crashes with webrick/mongrel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
解决方法:
添加(或更改)
config.log_level = :warn
在 config/environments/development.rb 中
(不是我的解决方案 - 在另一个线程中找到它)
Workaround:
Add (or change)
config.log_level = :warn
in config/environments/development.rb
(not my solution - found it in another thread)
好的,我发现了问题。如果媒体属性未在超过 1 个链接上定义,我的 css 链接会以某种方式导致 windows ruby 解释器崩溃(疯狂!)。
原始(崩溃):
修改(不崩溃):
以下是对 相同(或类似)问题。
根据帖子,似乎是 Windows 特定的(再次!)。
Ok, i found the issue. My css links somehow caused the windows ruby interpreter to crash if the media attribute isn't defined on more than 1 link (crazy!).
Original (crashes):
Modified (doesn't crash):
Here's some insight into the same (or similar) issue.
Seems to be windows specific (again!) according to the post.
当您在实际创建丢失的文件之前想要链接到丢失的文件时,也会发生这种情况。
然后,在我的例子中,解释器在 2 个请求后崩溃,但是如果您删除丢失的文件链接
它工作得很好。
It also happens when you want to link to missing files, before you actually create them.
Then the interpreter crashes after 2 requests in my case, but if you remove the missing file links
it works just fine.
我在 Windows 上遇到了同样的问题,每隔几个页面加载后,Ruby 解释器就会崩溃。
我的问题就在这里
,我用以下方法修复了它
I had the same problem on windows, ruby interpreter crashing after every couple of pageloads.
my problem was here
and I fixed it with
预编译 heroku 文件后出现此错误。当我从 public/assets 文件夹中删除它们后,一切正常。
I had this error after precompiling files for heroku. After I deleted them from public/assets folder everything worked fine.