title: Why Rails fails with: ruby.exe has encountered a problem and needs to close. We are sorry for the inconvenience
body: <p>I run a Rails 3 application on Windows XP and it fails sometimes with the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/PSu4X.jpg" alt="enter image description here"></p>
  
  <p>This causes the WEBrick server to shutdown.</p>
  
  <p>When I start the server again, sometimes the page loads as expected and sometimes it fails again with the same error.</p>
  
  <p>I noticed that the error appears when I change one of the JavaScript files that belong to the loaded page.</p>
  
  <p>What could be the reason for this ?</p>
  
  <p>How could I debug this ?</p>
  
  <p>My Ruby version is: <code>ruby 1.9.2p0 (2010-08-18) [i386-mingw32]</code>.</p>