Project

General

Profile

Bug #9468

the Runtime to terminate it in an unusual way.

Added by vantu2606 (tu nguyen) over 4 years ago. Updated over 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
cruby-windows
Target version:
-
[ruby-core:60359]

Description

Hi,

I have issue with Ruby193 on windows 7 and windows 8.

When I run my rb file. it will stop when reading alert in javascript.

  239 C:/Ruby193/lib/ruby/1.9.1/dl/func.rb
  240 C:/Ruby193/lib/ruby/1.9.1/dl/pack.rb
  241 C:/Ruby193/lib/ruby/1.9.1/dl/struct.rb
  242 C:/Ruby193/lib/ruby/1.9.1/dl/cparser.rb
  243 C:/Ruby193/lib/ruby/1.9.1/dl/import.rb
  244 C:/Ruby193/lib/ruby/1.9.1/Win32API.rb
  245 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
win32.rb
  246 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
modal_dialog.rb
  247 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
module.rb
  248 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
dialogs/file_field.rb
  249 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
dialogs/alert.rb
  250 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic/
supported_elements.rb
  251 C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.0.1/lib/watir-classic.
rb
  252 C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb
  253 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/constants.rb
  254 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/keys.rb
  255 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/functions.rb
  256 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/locators.rb
  257 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/window.rb
  258 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/button_helper.rb
  259 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/control.rb
  260 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/button.rb
  261 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/checkbox.rb
  262 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/radio.rb
  263 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/text_field.rb
  264 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/select_list.rb
  265 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/table.rb
  266 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/label.rb
  267 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/list_box.rb
  268 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/mouse.rb
  269 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32/password_field.rb
  270 C:/Ruby193/lib/ruby/gems/1.9.1/gems/rautomation-0.13.0/lib/rautomation/ada
pter/win_32.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

My steps to install Ruby and watir: Let me know why it stop working.

Step 1: Get the latest version from ( http://rubyinstaller.org/downloads/ )
Step 2: Open command prompt and type ruby –v. 
1 >ruby -v
2 'ruby' is not recognized as an internal or external command,
3 operable program or batch file
Step 3: Run Rubyinstaller-1.9.3.exe or type: gem update –system in your CMD if existing ruby
Step 4: Download DevKit-tdm-32-4.5.2-20111229-1559-sfx.ext from ( http://rubyinstaller.org/downloads/ )
Step 5: Extract files and Install Devkit into c:/Ruby193/DevKit
Step 6: Run these command 
c:\Ruby193\DevKit> ruby dk.rb init
c:\Ruby193\DevKit> ruby dk.rb install
Step 7: Test installation
c:\Ruby193\DevKit> gem install json --platform=ruby
c:\Ruby193\DevKit> ruby -rubygems -e "require 'json'; puts JSON.load('[42]').inspect" 

Step 8: Install rails framework (open cmd and cd to ruby folder)
c:\Ruby193>  gem install rails
Step 9: Install Nokogiri in cmd
    c:\Ruby193>  gem install nokogiri
Step 10: Install watir in cmd
c:\Ruby193>  gem install watir
Step 11: Download “mysql-5.0.96-winx64.zip” and “mysql-connector-c-noinstall-6.0.2-win32.zip”  from 
http://dev.mysql.com/downloads/connector/c/
-   Unzip mysql-connector-c-noinstall-6.0.2-win32.zip and copy under c:\ mysql-connector-c-noinstall-6.0.2-win32 (see reference: 4)
-   Copy libmysql.dll from C:\mysql-connector-c-noinstall-6.0.2-win32\lib to C:\Ruby192\bin
Step 12: Install mysql in cmd. 
    C:\Ruby192> gem install mysql --platform=ruby -- --with-mysql-dir=C:/mysql-connector-c-noinstall-6.0.2-win32

Thanks.

Tu

History

#1 [ruby-core:60364] Updated by nobu (Nobuyoshi Nakada) over 4 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback
  • Priority changed from 5 to 3

tu nguyen wrote:

Step 11: Download “mysql-5.0.96-winx64.zip” and “mysql-connector-c-noinstall-6.0.2-win32.zip” from
http://dev.mysql.com/downloads/connector/c/

  • Unzip mysql-connector-c-noinstall-6.0.2-win32.zip and copy under c:\ mysql-connector-c-noinstall-6.0.2-win32 (see reference: 4)
  • Copy libmysql.dll from C:\mysql-connector-c-noinstall-6.0.2-win32\lib to C:\Ruby192\bin

To Ruby192, not Ruby193?

Also available in: Atom PDF