Skip to content

Instantly share code, notes, and snippets.

@rdp
Created November 17, 2011 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdp/1373677 to your computer and use it in GitHub Desktop.
Save rdp/1373677 to your computer and use it in GitHub Desktop.
jruby win32ole leak ?
Java::OrgRacobCom::ComFailException: Invoke of: ExecQuery
Source: SWbemServicesEx
Description: Server buffers are full and data cannot be accepted
from org.racob.com.Dispatch.invokev(Native Method)
from org.racob.com.Dispatch.invokev(Dispatch.java:243)
from org.racob.com.Dispatch.callN(Dispatch.java:187)
from org.jruby.ext.win32ole.RubyWIN32OLE.invokeMethodOrGet(RubyWIN32OLE.java:205)
from org.jruby.ext.win32ole.RubyWIN32OLE.method_missing(RubyWIN32OLE.java:113)
from org.jruby.ext.win32ole.RubyWIN32OLE$i$0$0$method_missing.call(RubyWIN32OLE$i$0$0$method_missing.gen:65535)
from org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:642)
from org.jruby.javasupport.util.RuntimeHelpers$MethodMissingMethod.call(RuntimeHelpers.java:497)
from org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:211)
from org.jruby.runtime.callsite.CachingCallSite.callMethodMissing(CachingCallSite.java:387)
from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:309)
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
from rubyjit.find_by_wql_08753251821F80A248B72CE5803154C722D46AF2.__file__(D:/dev/dirt-simple-usb-surveillance/vendor/ruby-wmi-0.2.2/lib/ruby-wmi/base.rb:47)
from rubyjit.find_by_wql_08753251821F80A248B72CE5803154C722D46AF2.__file__(D:/dev/dirt-simple-usb-surveillance/vendor/ruby-wmi-0.2.2/lib/ruby-wmi/base.rb)
from org.jruby.internal.runtime.methods.JittedMethod.call(JittedMethod.java:167)
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:167)
... 148 levels...
from org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75)
from org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
from org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:179)
from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
from d_3a_.installs.jruby_minus_1_dot_6_dot_5.bin.jirb.__file__(d:/installs/jruby-1.6.5/bin/jirb:13)
from d_3a_.installs.jruby_minus_1_dot_6_dot_5.bin.jirb.load(d:/installs/jruby-1.6.5/bin/jirb)
from org.jruby.Ruby.runScript(Ruby.java:693)
from org.jruby.Ruby.runScript(Ruby.java:686)
from org.jruby.Ruby.runNormally(Ruby.java:593)
@rdp
Copy link
Author

rdp commented Jun 6, 2012

EnumVariant.java:-2:in Next': org.racob.com.ComFailException: IEnumVARIANT::Next from EnumVariant.java:47:inhasMoreElements'
from RubyWIN32OLE.java:64:in each' from RubyWIN32OLE$i$0$0$each.gen:65535:incall'
from RubyClass.java:536:in finvoke' from RuntimeHelpers.java:529:ininvoke'
from RubyEnumerable.java:93:in callEach' from RubyEnumerable.java:141:incount'
from RubyEnumerable$s$count.gen:65535:in call' from JavaMethod.java:249:incall'
from CachingCallSite.java:133:in call' from G:/installs/jruby-1.6.5/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:49:inchained_0_rescue_1$RUBY$SYNTHETIC__file__'
from G:/installs/jruby-1.6.5/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:48:in __file__' from G:/installs/jruby-1.6.5/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:-1:infile'
from JittedMethod.java:167:in call' from CachingCallSite.java:167:incall'
from G:/installs/jruby-1.6.5/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:143:in __file__' from G:/installs/jruby-1.6.5/lib/ruby/gems/1.8/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:-1:infile'
from AbstractScript.java:42:in __file__' from JittedMethod.java:167:incall'

too maybe

bug report: http://jira.codehaus.org/browse/JRUBY-6220

@rdp
Copy link
Author

rdp commented Jun 6, 2012

tasklist /V
ERROR: Provider load failure

meant "you used up all the WMI handles in the entire system (a different rogue process did)! reboot or maybe wait awhile"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment