We are using Johnson via Harmony to run javascript unit tests in our
Sinatra app. It was all working great until we added our last test
file. Now, the suite ends with either a Segmentation fault in env.js
or a NoMemoryError.
It looks like there is no garbage collection between our tests. Are
there any configuration options in Johnson to increase Spidermonkey
memory or alternately trigger collection?
Here is oure trace:
NoMemoryError in 'TitleBar.js update title form updates on change'
spidermonkey ran out of memory
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
runtime.rb:49:in `evaluate_compiled_script_without_clearing_traps'
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
runtime.rb:49:in `evaluate_compiled_script'
/Library/Ruby/Gems/1.8/gems/envjs-0.2.0/lib/envjs/runtime.rb:54:in
`evaluate'
/Library/Ruby/Gems/1.8/gems/envjs-0.2.0/lib/envjs/runtime.rb:267:in
`extended'
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
js_land_proxy.rb:16:in `call'
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
js_land_proxy.rb:16:in `__send__'
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
js_land_proxy.rb:16:in `send_with_possible_block'
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
runtime.rb:49:in `evaluate_compiled_script_without_clearing_traps'
/Library/Ruby/Gems/1.8/gems/envjs-0.2.0/lib/envjs/env.js:591
[JavaScript]
/Library/Ruby/Gems/1.8/gems/envjs-0.2.0/lib/envjs/env.js:1111
[JavaScript]
none:1 [JavaScript]
/Library/Ruby/Gems/1.8/gems/johnson-2.0.0.pre3/lib/johnson/tracemonkey/
runtime.rb:49:in `evaluate_compiled_script'
/Library/Ruby/Gems/1.8/gems/envjs-0.2.0/lib/envjs/runtime.rb:54:in
`evaluate'
/Library/Ruby/Gems/1.8/gems/harmony-0.5.4/lib/harmony/page.rb:25:in
`from_uri'
/Library/Ruby/Gems/1.8/gems/harmony-0.5.4/lib/harmony/page.rb:30:in
`from_document'
/Library/Ruby/Gems/1.8/gems/harmony-0.5.4/lib/harmony/page.rb:65:in
`initialize'
/Users/ben/dev/cohuman/spec/unit/harmony/title_bar_js_spec.rb:6:in
`new'
/Users/ben/dev/cohuman/spec/unit/harmony/title_bar_js_spec.rb:6:
--
Subscription settings:
http://groups.google.com/group/johnson-talk/subscribe?hl=en