Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working (I am not using MySQL)

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

like image 265
Kevin Tsoi Avatar asked Mar 21 '11 01:03

Kevin Tsoi


2 Answers

Workaround:

Add (or change)

config.log_level = :warn

in config/environments/development.rb

(not my solution - found it in another thread)

like image 174
Oskar Holmkratz Avatar answered Oct 05 '22 22:10

Oskar Holmkratz


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):

link rel="stylesheet" href="/stylesheets/jqModal.css" type="text/css"
link rel="stylesheet" href="/stylesheets/main.css" type="text/css"

Modified (doesn't crash):

link rel="stylesheet" href="/stylesheets/jqModal.css" type="text/css" media="screen, projection"
link rel="stylesheet" href="/stylesheets/main.css" type="text/css" media="screen, projection"

Here's some insight into the same (or similar) issue.

Seems to be windows specific (again!) according to the post.

like image 24
Kevin Tsoi Avatar answered Oct 06 '22 00:10

Kevin Tsoi