Pinta development 1.7.0.202 on Windows 7. The latest tasks I have performed (after save):
- Image | Resize Canvas: 200%
- Then bellow the original image size I have drawn a line.
- Save button and bellow crash appears.
======================
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: SurfaceDiff requires surfaces to be same size.
at Pinta.Core.SurfaceDiff.Create(ImageSurface original, ImageSurface updated_surf, Boolean force) in c:\GitRepos\Pinta\Pinta.Core\Classes\SurfaceDiff.cs:line 83
at Pinta.Tools.ShapesHistoryItem..ctor(BaseEditEngine passedEE, String icon, String text, ImageSurface passedUserSurface, UserLayer passedUserLayer, Int32 passedSelectedPointIndex, Int32 passedSelectedShapeIndex, Boolean passedRedrawEverything) in c:\GitRepos\Pinta\Pinta.Tools\HistoryItems\ShapesHistoryItem.cs:line 67
at Pinta.Tools.BaseEditEngine.FinalizeAllShapes() in c:\GitRepos\Pinta\Pinta.Tools\Editable\EditEngines\BaseEditEngine.cs:line 1675
at Pinta.Tools.BaseEditEngine.HandleCommit() in c:\GitRepos\Pinta\Pinta.Tools\Editable\EditEngines\BaseEditEngine.cs:line 468
at Pinta.Tools.ShapeTool.OnCommit() in c:\GitRepos\Pinta\Pinta.Tools\Tools\ShapeTool.cs:line 105
at Pinta.Core.BaseTool.DoCommit() in c:\GitRepos\Pinta\Pinta.Core\Classes\BaseTool.cs:line 152
at Pinta.Core.ToolManager.Commit() in c:\GitRepos\Pinta\Pinta.Core\Managers\ToolManager.cs:line 128
at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile(Document document, String file, FormatDescriptor format, Window parent) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 211
at Pinta.Actions.SaveDocumentImplmentationAction.Activated(Object sender, DocumentCancelEventArgs e) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 67
at Pinta.Core.FileActions.RaiseSaveDocument(Document document, Boolean saveAs) in c:\GitRepos\Pinta\Pinta.Core\Actions\FileActions.cs:line 115
at Pinta.Core.Document.Save(Boolean saveAs) in c:\GitRepos\Pinta\Pinta.Core\Classes\Document.cs:line 753
at Pinta.Actions.SaveDocumentAction.Activated(Object sender, EventArgs e) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentAction.cs:line 48
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
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)
======================
Can you reproduce this in the latest 1.7 builds? I haven't been able to reproduce in either 1.6 or 1.7 with these steps.