Crash trying to create really big new image

Bug #1428748 reported by grofaty
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Pinta on Ubuntu 14.04.

1. New Image 1000000000 x 1000000000 and OK button.
Crash appears with error:
Unhandled exception:
Division by zero

  at Pinta.Gui.Widgets.CellRendererSurface.RenderCell (Cairo.Context g, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
  at Pinta.Gui.Widgets.CellRendererSurface.Render (Gdk.Drawable window, Gtk.Widget widget, Rectangle backgroundArea, Rectangle cellArea, Rectangle exposeArea, CellRendererState flags) [0x00000] in <filename unknown>:0
  at Gtk.CellRenderer.Render_cb (IntPtr item, IntPtr window, IntPtr widget, Gdk.Rectangle& background_area, Gdk.Rectangle& cell_area, Gdk.Rectangle& expose_area, CellRendererState flags) [0x00000] in <filename unknown>:0

Revision history for this message
Cameron White (cameronwhite91) wrote :

I think we used to have a limit of 10000x10000?

Changed in pinta:
importance: Undecided → Medium
milestone: none → 1.7
status: New → Confirmed
Revision history for this message
grofaty (grofaty) wrote :

Just for test I have installed Pinta 1.5 on Windows 7 and I can confirm that 10000 x 10000 was limitation, so this is regression problem. In 1.5 I see typing in Width input box any number no limitation, but when input box loses focus like clicking into Height box, Width number changes to 10000.

Probably more user friendly is to not permit to type in any bigger number then 10000 in the first place to be perfectly clear what is the limitation.

Revision history for this message
grofaty (grofaty) wrote :

This problem and bug 1428756 probably have the same solution like setting back 10000 x 10000 limitation.

Changed in pinta:
milestone: 1.7 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.