Ticket #95 (closed defect: duplicate)

Opened 14 months ago

Last modified 13 months ago

Hpricot::ParseError - ran out of buffer space

Reported by: holymonkey Owned by: why
Priority: major Milestone: 0.6
Component: ext/hpricot_scan Version:
Keywords: parseerror buffer Cc:

Description

This issue occurs with Hpricot 0.6 when loading the attached html file.

irb(main):001:0> f = File.open 'hpricot-bug.txt'
=> #<File:hpricot-bug.txt>
irb(main):002:0> require 'rubygems'
=> true
irb(main):003:0> require 'hpricot'
=> true
irb(main):004:0> Hpricot f
/usr/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/parse.rb:51:in `scan': ran out of buffer space on element <input>, starting on line 26. (Hpricot::ParseError)
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/parse.rb:51:in `make'
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/parse.rb:15:in `parse'
        from /usr/lib/ruby/gems/1.8/gems/hpricot-0.6/lib/hpricot/parse.rb:4:in `Hpricot'
        from (irb):4:in `irb_binding'
        from /usr/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        from /usr/lib/ruby/1.8/irb/workspace.rb:52

I am using cygwin in windows xp. Ruby version 1.8.6

Change History

Changed 13 months ago by static

  • status changed from new to closed
  • resolution set to duplicate

See #96

Note: See TracTickets for help on using tickets.