Pinta crashes frequently with large images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Fix Released
|
Medium
|
Yamin Bismilla |
Bug Description
In Pinta 1.0 on Windows XP I have tried to do the opposite from bug 776307 (in bug report it tried to create image with 0 x 0 size), but I tried to create as much big image as possible. I have created a new bug report, because I get different error messages.
1. Open Pinta and click New button from toolbar.
2. Type in very large number like million for both fields Width and Height, when field is left number default to 10000 (so writing 10000 in each field is sufficient).
3. Click on OK button.
4. Click on Image menu and then move mouse to View menu and crash appears:
=========
Unhandled exception:
Object reference not set to an instance of an object.
Details:
System.
at Pinta.Gui.
at Pinta.Gui.
at Pinta.Gui.
at Gtk.Widget.
=========
Another reproduce scenario:
step 4. From zoom drop down list from toolbar select 100% and crash appears:
=========
Unhandled exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Details:
System.
at Pinta.Gui.
at Pinta.Gui.
at Pinta.Gui.
at Gtk.Widget.
=========
summary: |
- Pinta crashes when 10000 x 10000 pixel image is selected + Pinta crashes when RAM is used up |
Changed in pinta: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: crash |
Changed in pinta: | |
assignee: | nobody → Don McComb (don-mccomb) |
status: | Confirmed → In Progress |
Changed in pinta: | |
importance: | High → Medium |
Changed in pinta: | |
milestone: | none → 1.8 |
status: | Confirmed → Fix Committed |
Changed in pinta: | |
milestone: | 1.8 → 1.7.1 |
Changed in pinta: | |
status: | Fix Committed → Fix Released |
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. TargetInvocatio nException: Exception has been thrown by the target of an invocation. ---> System. ArgumentOutOfRa ngeException: Specified argument was out of the range of valid values.
Parameter name: y
at Pinta.Core. BitVector2DSurf aceAdapter. Set(Int32 x, Int32 y, Boolean newValue) in c:\Users\ Jonathan\ Documents\ Visual Studio 2010\Projects\ Pinta\Pinta. Core\Effects\ BitVector2DSurf aceAdapter. cs:line 102
at Pinta.Core. BitVector2DSurf aceAdapter. Set(Rectangle rect, Boolean newValue) in c:\Users\ Jonathan\ Documents\ Visual Studio 2010\Projects\ Pinta\Pinta. Core\Effects\ BitVector2DSurf aceAdapter. cs:line 117
at Pinta.Tools. FloodTool. FillStencilFrom Point(ImageSurf ace 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, ButtonPressEven tArgs 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, ButtonPressEven tArgs args, PointD point) in C:\Users\ Jonathan\ Documents\ Visual Studio 2010\Projects\ Pinta\Pinta. Tools\PaintBuck etTool. cs:line 59
at Pinta.Core. BaseTool. DoMouseDown( DrawingArea canvas, ButtonPressEven tArgs 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, ButtonPressEven tArgs 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. RuntimeMethodHa ndle._InvokeMet hodFast( Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System. RuntimeMethodHa ndle.InvokeMeth odFast( Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System. Reflection. RuntimeMethodIn fo.Invoke( Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityC hecks)
at System. Delegate. DynamicInvokeIm pl(Object[ ] args)
at GLib.Signal. ClosureInvokedC B(Object o, ClosureInvokedArgs args)
at GLib.SignalClos ure.Invoke( ClosureInvokedA rgs args)
at GLib.SignalClos ure.MarshalCall back(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
=======