senchalabs/jsduck — Issue #124: SystemStackError while generating documentation
Author: shiruba
Created: 2012-01-25 10:35:55+00:00
State: open

We got an error when we tried to generate documentation for some of our JavaScript code. The error occurs while "Writing /data/home/saschaf/html/js/docs-wbt/index.html...":

/data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/relations.rb:40:in `[]': stack level too deep (SystemStackError)
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/class.rb:61:in `lookup'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/class.rb:34:in `parent'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/class.rb:82:in `inherits_from?'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/class.rb:82:in `inherits_from?'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/icons.rb:20:in `icon'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/icons.rb:12:in `create'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/icons.rb:7:in `map'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/icons.rb:7:in `create'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/app_data.rb:24:in `write'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/lib/jsduck/app.rb:78:in `run'
from /data/home/saschaf/.gem/ruby/1.8/gems/jsduck-3.3.1/bin/jsduck:26
from /data/home/saschaf/.gem/ruby/1.8/bin/jsduck:19:in `load'
from /data/home/saschaf/.gem/ruby/1.8/bin/jsduck:19

Google suggested to increase the ulimit, but it is already set to "unlimited" on this machine.

Feel free to ask for more information.