From: Pito Salas Date: 2009-08-28T08:58:46+09:00 Subject: Re: RMagick reacts very oddly to an incorrect file Tim Hunter wrote: > Pito Salas wrote: >> Magick::Image.read(f, &block).each { |n| @images << n } >> >> will have a comment... But if anyone, especially TimH can shed some >> light I would appreciate it! >> >> I want to put some defensive code into my stuff but I am not sure what I >> am checking for. Is it just a very large file or what? >> >> Thanks!! >> >> Pito > > My guess is that you ran out of memory and OS X started swapping to > disk. This would explain your disk whirling and your computer getting > unresponsive. Killing the process freed the memory and things went back > to normal. But why would a 40M file run out of memory on a machine with 2G of memory, and why didn't it just throw an error? By the way if I use ImageMagick itself, off the command line with the identify command it has no problem with the file. -- Posted via http://www.ruby-forum.com/.