Comment 1 for bug 776346

Revision history for this message
Cameron White (cameronwhite91) wrote : Re: Pinta crashes when 10000 x 10000 pixel image is selected

I can't reproduce either of those crashes using Pinta 1.0 or the latest development build on Windows 7, but I do get a crash if I attempt to use the Paint Bucket tool.

Steps:
1) Create a new 10000 x 10000 image
2) Select Paint Bucket tool and attempt to use it (i.e. click on canvas)

======

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

Parameter name: y

   at Pinta.Core.BitVector2DSurfaceAdapter.Set(Int32 x, Int32 y, Boolean newValue) in c:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Core\Effects\BitVector2DSurfaceAdapter.cs:line 102

   at Pinta.Core.BitVector2DSurfaceAdapter.Set(Rectangle rect, Boolean newValue) in c:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Core\Effects\BitVector2DSurfaceAdapter.cs:line 117

   at Pinta.Tools.FloodTool.FillStencilFromPoint(ImageSurface surface, IBitVector2D stencil, Point start, Int32 tolerance, Rectangle& boundingBox, Region limitRegion, Boolean limitToSelection) in C:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Tools\FloodTool.cs:line 195

   at Pinta.Tools.FloodTool.OnMouseDown(DrawingArea canvas, ButtonPressEventArgs args, PointD point) in C:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Tools\FloodTool.cs:line 135

   at Pinta.Tools.PaintBucketTool.OnMouseDown(DrawingArea canvas, ButtonPressEventArgs args, PointD point) in C:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Tools\PaintBucketTool.cs:line 59

   at Pinta.Core.BaseTool.DoMouseDown(DrawingArea canvas, ButtonPressEventArgs args, PointD point) in c:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Core\Classes\BaseTool.cs:line 97

   at Pinta.Gui.Widgets.PintaCanvas.<.ctor>b__2(Object sender, ButtonPressEventArgs e) in c:\Users\Jonathan\Documents\Visual Studio 2010\Projects\Pinta\Pinta.Gui.Widgets\Widgets\Canvas\PintaCanvas.cs:line 62

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)

=======