zzoccultzz / funnel

Automatically exported from code.google.com/p/funnel
Other
0 stars 0 forks source link

Ruby library crushes on JRuby!? #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Funnel: r293
action-coding: r87
Java: 1.5.0_13
JRuby: 1.1.1
Mac OS X 10.5.2

require "funnel"
include Funnel

def setup
  size 320, 240
  @fc = 0
  @gio = Gainer.new
  @gio.button.on RISING_EDGE do
    @fc = 255
  end

  @gio.button.on FALLING_EDGE do
    @fc = 0
  end
end

def draw
  fill @fc
  rect 25, 25, 50, 50
end

def mousePressed
  @fc = 255
end

def mouseReleased
  @fc = 0
end

Exception in thread "Ruby Thread2381144" java.lang.ClassCastException:
org.jruby.RubyFloat
    at org.jruby.RubyFixnumInvoker$op_equal_method_1_0.call(Unknown Source)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.detect_edge3882028_11444861.__file__(/Users/kotobuki/Documents/development/
funnel/libraries/ruby/./funnel/port.rb:86)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:298)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:331)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.update16609162_11444861.__file__(/Users/kotobuki/Documents/development/funn
el/libraries/ruby/./funnel/port.rb:55)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:256)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.value_equal_15396425_11444861.__file__(/Users/kotobuki/Documents/developmen
t/funnel/libraries/ruby/./funnel/port.rb:44)
    at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:193)
    at org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:599)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyInteger.times(RubyInteger.java:162)
    at org.jruby.RubyIntegerInvoker$times_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.caseNode(ASTInterpreter.java:754)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:311)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyArray.each(RubyArray.java:1230)
    at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1567)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:453)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyKernel.loop(RubyKernel.java:1051)
    at org.jruby.RubyKernelInvoker$loop_s_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1155)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:103)
    at org.jruby.runtime.Block.call(Block.java:105)
    at org.jruby.RubyProc.call(RubyProc.java:205)
    at org.jruby.RubyProc.call(RubyProc.java:184)
    at org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:73)

Original issue reported on code.google.com by kotob...@gmail.com on 10 May 2008 at 12:28

GoogleCodeExporter commented 8 years ago
Here is the other crush log:
Exception in thread "Ruby Thread3854013" java.lang.ClassCastException:
org.jruby.RubyFloat
    at org.jruby.RubyFixnumInvoker$op_equal_method_1_0.call(Unknown Source)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.detect_edge14626716_3632761.__file__(/Users/kotobuki/Documents/development/
funnel/libraries/ruby/./funnel/port.rb:86)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:298)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:331)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.update205719_3632761.__file__(/Users/kotobuki/Documents/development/funnel/
libraries/ruby/./funnel/port.rb:55)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:256)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:299)
    at
ruby.jit.ruby.Users.kotobuki.Documents.development.funnel.libraries.ruby.funnel.
port.value_equal_3902106_3632761.__file__(/Users/kotobuki/Documents/development/
funnel/libraries/ruby/./funnel/port.rb:44)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:193)
    at org.jruby.evaluator.ASTInterpreter.attrAssignNode(ASTInterpreter.java:599)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:294)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyInteger.times(RubyInteger.java:162)
    at org.jruby.RubyIntegerInvoker$times_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.caseNode(ASTInterpreter.java:754)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:311)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyArray.each(RubyArray.java:1230)
    at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
    at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:687)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
    at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1567)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:453)
    at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
    at org.jruby.runtime.Block.yield(Block.java:109)
    at org.jruby.RubyKernel.loop(RubyKernel.java:1051)
    at org.jruby.RubyKernelInvoker$loop_s_method_0_0.call(Unknown Source)
    at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMetho
d.java:161)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:86)
    at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:251)
    at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1155)
    at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
    at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
    at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
    at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:103)
    at org.jruby.runtime.Block.call(Block.java:105)
    at org.jruby.RubyProc.call(RubyProc.java:205)
    at org.jruby.RubyProc.call(RubyProc.java:184)
    at org.jruby.internal.runtime.RubyNativeThread.run(RubyNativeThread.java:73)

Original comment by kotob...@gmail.com on 10 May 2008 at 12:31