Report abuse

# Crashes Shoes on Linux

class Foo < Widget
  def initialize( args )
    @canvas = stack( args ) do
      background blue

      @memory_image = image :top => 0, :left => 0,
                            :width => 200, :height => 200 do
        fill red
        rect 0, 0, 200, 200
      end
    end
  end

  def crash
    @memory_image.clear do
      # crash
    end
  end
end


Shoes.app :width => 800, :height => 600, :resizable => false do
  f = foo( :width => 300, :height => 300 )

  every( 3 ) { f.crash }  # trigger the crash after a 3 second pause
end