Comment 0 for bug 1902452

Revision history for this message
Ninja Nolan (ninjanolan) wrote :

I'm trying to save a picture that is 5100x51000 and it crashes whenever I try to save, or undo. It is really annoying because I keep trying to save my image, but it crashes and I have to start over.

It throws an unhandeled exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
   at Cairo.ImageSurface.get_Data()
   at Pinta.Core.CairoExtensions.ToPixbuf(ImageSurface surfSource) in D:\a\Pinta\Pinta\Pinta.Core\Extensions\CairoExtensions.cs:line 797
   at Pinta.Core.GdkPixbufFormat.Export(Document document, String fileName, Window parent) in D:\a\Pinta\Pinta\Pinta.Core\ImageFormats\GdkPixbufFormat.cs:line 104
   at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile(Document document, String file, FormatDescriptor format, Window parent) in D:\a\Pinta\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 243
   at Pinta.Actions.SaveDocumentImplmentationAction.Activated(Object sender, DocumentCancelEventArgs e) in D:\a\Pinta\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 69
   at Pinta.Core.FileActions.RaiseSaveDocument(Document document, Boolean saveAs) in D:\a\Pinta\Pinta\Pinta.Core\Actions\FileActions.cs:line 118
   at Pinta.Core.Document.Save(Boolean saveAs) in D:\a\Pinta\Pinta\Pinta.Core\Classes\Document.cs:line 740
   at Pinta.Actions.SaveDocumentAction.Activated(Object sender, EventArgs e) in D:\a\Pinta\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.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.Signal.SignalClosure.Invoke(ClosureInvokedArgs args)
   at GLib.Signal.SignalClosure.MarshalCallback(IntPtr raw_closure, Value* return_val, UInt32 n_param_vals, Value* param_values, IntPtr invocation_hint, IntPtr marshal_data)