Zoltan Szugyi created JRUBY-6480:
------------------------------------

             Summary: Missing type intptr_t  from ffi
                 Key: JRUBY-6480
                 URL: https://jira.codehaus.org/browse/JRUBY-6480
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.6
         Environment: jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_26) [Windows 7-amd64-java]
            Reporter: Zoltan Szugyi
            Assignee: Thomas E Enebo


Childprocess 0.3.1 breaks when calling _get_osfhandle with the following 
message:
TypeError: unable to resolve type 'intptr_t'
See stack trace below.

Gems used:
selenium-webdriver 2.18.0 (or 2.19.0)
capybara 1.1.2
childprocess 0.3.1

{noformat}
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'capybara'
=> true
irb(main):003:0> require 'capybara/dsl'
=> true
irb(main):004:0> Capybara.run_server = false
=> false
irb(main):005:0> Capybara.current_driver = :selenium
=> :selenium
irb(main):007:0> include Capybara::DSL
=> Object
irb(main):008:0> visit 'http://google.com'
TypeError: unable to resolve type 'intptr_t'
        from f:/dev/jruby-1.6.6/lib/ruby/site_ruby/shared/ffi/types.rb:56:in 
`find_type'
        from f:/dev/jruby-1.6.6/lib/ruby/site_ruby/shared/ffi/library.rb:329:in 
`find_type'
        from f:/dev/jruby-1.6.6/lib/ruby/site_ruby/shared/ffi/library.rb:158:in 
`attach_function'
        from org/jruby/RubyArray.java:1614:in `each'
        from f:/dev/jruby-1.6.6/lib/ruby/site_ruby/shared/ffi/library.rb:150:in 
`attach_function'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows/lib.rb:146:in
 `Lib'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows/lib.rb:29:in
 `Windows'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows/lib.rb:2:in
 `ChildProcess'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows/lib.rb:1:in
 `(root)'
        from org/jruby/RubyKernel.java:1027:in `require'
        from 
f:/dev/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in 
`require'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows/lib.rb:28:in
 `(root)'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/childprocess-0.3.1/lib/childprocess/windows.rb:23:in
 `new'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/firefox/binary.rb:50:in
 `execute'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/firefox/binary.rb:30:in
 `start_with'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/selenium-webdriver-2.18.0/lib/selenium/webdriver/firefox/launcher.rb:68:in
 `start_silent_and_wait'
... 6 levels...
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/capybara-1.1.2/lib/capybara/selenium/driver.rb:15:in
 `browser'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/capybara-1.1.2/lib/capybara/selenium/driver.rb:36:in
 `visit'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/capybara-1.1.2/lib/capybara/session.rb:157:in
 `visit'
        from 
f:/dev/jruby-1.6.6/lib/ruby/gems/1.8/gems/capybara-1.1.2/lib/capybara/dsl.rb:165:in
 `visit'
        from (irb):8:in `evaluate'
        from org/jruby/RubyKernel.java:1077:in `eval'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:158:in `eval_input'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:271:in `signal_status'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:155:in `eval_input'
        from org/jruby/RubyKernel.java:1408:in `loop'
        from org/jruby/RubyKernel.java:1181:in `catch'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:154:in `eval_input'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:71:in `start'
        from org/jruby/RubyKernel.java:1181:in `catch'
        from f:/dev/jruby-1.6.6/lib/ruby/1.8/irb.rb:70:in `start'
{noformat}

I think the following change in childprocess causes this to happen: 
https://github.com/jarib/childprocess/commit/701f486a816992a43739ac0244f487e796c0ec99

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to