Skip to content

Instantly share code, notes, and snippets.

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 jufemaiz/841459 to your computer and use it in GitHub Desktop.
Save jufemaiz/841459 to your computer and use it in GitHub Desktop.
Ruby-processing + MovieMaker not working :(
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1034)
at quicktime.QTSession.<clinit>(QTSession.java:94)
at quicktime.util.QTUtils.<clinit>(QTUtils.java:33)
at processing.video.MovieMaker.<clinit>(MovieMaker.java:110)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:147)
at org.jruby.javasupport.JavaSupport.loadJavaClassVerbose(JavaSupport.java:156)
at org.jruby.javasupport.JavaClass.forNameVerbose(JavaClass.java:944)
at org.jruby.javasupport.JavaClass.for_name(JavaClass.java:956)
at org.jruby.javasupport.Java.get_proxy_class(Java.java:445)
at org.jruby.javasupport.JavaUtilities.get_proxy_class(JavaUtilities.java:34)
at org.jruby.javasupport.JavaUtilities$s_method_1_0$RUBYINVOKER$get_proxy_class.call(org/jruby/javasupport/JavaUtilities$s_method_1_0$RUBYINVOKER$get_proxy_class.gen)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.ConstDeclNode.interpret(ConstDeclNode.java:97)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.evaluator.ASTInterpreter.evalSimple(ASTInterpreter.java:149)
at org.jruby.RubyObject.evalUnder(RubyObject.java:435)
at org.jruby.RubyObject.specificEval(RubyObject.java:414)
at org.jruby.RubyModule.module_eval(RubyModule.java:2112)
at org.jruby.RubyModule$i_method_multi$RUBYFRAMEDINVOKER$module_eval.call(org/jruby/RubyModule$i_method_multi$RUBYFRAMEDINVOKER$module_eval.gen)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrThreeOrNBlock.call(JavaMethod.java:293)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:350)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:229)
at org.jruby.ast.FCallThreeArgNode.interpret(FCallThreeArgNode.java:40)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.IfNode.interpret(IfNode.java:117)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:268)
at org.jruby.runtime.Block.yield(Block.java:194)
at org.jruby.RubyArray.eachCommon(RubyArray.java:1635)
at org.jruby.RubyArray.each(RubyArray.java:1642)
at org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:116)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:192)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:177)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:158)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)
at org.jruby.ast.FCallSpecialArgBlockPassNode.interpret(FCallSpecialArgBlockPassNode.java:38)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:135)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:101)
at org.jruby.runtime.callsite.SuperCallSite.callBlock(SuperCallSite.java:48)
at org.jruby.runtime.callsite.SuperCallSite.call(SuperCallSite.java:55)
at org.jruby.ast.SuperNode.interpret(SuperNode.java:111)
at org.jruby.ast.ReturnNode.interpret(ReturnNode.java:88)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.IfNode.interpret(IfNode.java:117)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.evalClassDefinitionBody(ASTInterpreter.java:196)
at org.jruby.ast.ClassNode.interpret(ClassNode.java:141)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.Ruby.loadFile(Ruby.java:2419)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:64)
at org.jruby.runtime.load.LoadService.load(LoadService.java:250)
at org.jruby.RubyKernel.load(RubyKernel.java:932)
at org.jruby.RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.call(org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:180)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:176)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.IfNode.interpret(IfNode.java:117)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)
at usr.local.lib.ruby.gems.$1_dot_8.gems.ruby_minus_processing_minus_1_dot_0_dot_9.lib.ruby_minus_processing.runners.run.__file__(run.rb:7)
at usr.local.lib.ruby.gems.$1_dot_8.gems.ruby_minus_processing_minus_1_dot_0_dot_9.lib.ruby_minus_processing.runners.run.load(run.rb)
at org.jruby.Ruby.runScript(Ruby.java:628)
at org.jruby.Ruby.runNormally(Ruby.java:550)
at org.jruby.Ruby.runFromMain(Ruby.java:396)
at org.jruby.Main.run(Main.java:272)
at org.jruby.Main.run(Main.java:117)
at org.jruby.Main.main(Main.java:97)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib: no suitable image found. Did find: /System/Library/Java/Extensions/libQTJNative.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1712)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at quicktime.QTSession$1.run(QTSession.java:96)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
require 'ruby-processing'
class Chart < Processing::App
load_libraries :video
import 'processing.video.MovieMaker'
def setup
puts "Ruby-Processing version #{Processing::VERSION}"
@do_record = false
@mm = MovieMaker.new( self, width, height, "drawing.mov", 30, MovieMaker::H264, MovieMaker::HIGH )
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment