Project

General

Profile

This project is closed and read-only.

Actions

Bug #1765

closed

rdoc runs out of memory on Windows XP with 4GB RAM

Bug #1765: rdoc runs out of memory on Windows XP with 4GB RAM

Added by Tichy (Björn Günzel) about 17 years ago. Updated over 15 years ago.

Status:
Closed
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
[ruby-core:24271]

Description

=begin
I have installed the binary distribution of Ruby 1.9.1 for Windows XP and tried to run rdoc on the source snapshot from today as follows:

rdoc lib ext -o rdoc -S -T kilmer

After quite a while this fails with "NoMemorError", see copied output below. My PC has 4GB of RAM installed. The same command has completed successfully on the same machine with Ubuntu Linux 9.04 64 Bit Edition.

Output:

Generating HTML...
C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in sort': failed to allocate memory (NoMemoryError) from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:327:in
index_to_links'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:225:in block in gen_into' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in
each'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:216:in gen_into' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:180:in
generate_html'
from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/generator/html.rb:86:in g enerate' from C:/programs/ruby-1.9/lib/ruby/1.9.1/rdoc/rdoc.rb:279:in document'
from C:/programs/ruby-1.9/bin/rdoc.bat:23:in `

'
=end

Updated by Tichy (Björn Günzel) about 17 years ago Actions #1

=begin
I forgot to note: I tried to run this on my desktop machine because rdoc ext lib never completes on my MacBook with 2GB RAM. I think after a while it starts swapping so much that it slows to a crawl.
=end

Updated by rogerdpack (Roger Pack) about 17 years ago Actions #2

=begin
As a note, when I run rdoc [v2.3] against trunk on a linux box of mine, it takes up ~1.2 G memory (that's what top shows, so possibly more) then does complete about 10 minutes later. Also with some gems it also uses up all available memory for some reason.
=end

Updated by rogerdpack (Roger Pack) almost 17 years ago Actions #3

=begin

After quite a while this fails with "NoMemorError", see copied output below. My PC has 4GB of RAM installed. The same command has completed successfully on the same machine with Ubuntu Linux 9.04 64 Bit Edition.

http://rubyforge.org/tracker/index.php?func=detail&aid=27257&group_id=627&atid=2474

might help.
-r
=end

Updated by naruse (Yui NARUSE) almost 17 years ago Actions #4

  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)

=begin

=end

Updated by drbrain (Eric Hodel) over 15 years ago Actions #5

  • Status changed from Assigned to Closed

=begin
I recommend upgrading to a newer version of RDoc for 1.9.1:

gem install rdoc

Fixing this in 1.9.1 is too hard.
=end

Actions

Also available in: PDF Atom