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)
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. TargetInvocatio nException: Exception has been thrown by the target of an invocation. ---> System. ArgumentNullExc eption: Value cannot be null. Runtime. InteropServices .Marshal. CopyToManaged( IntPtr source, Object destination, Int32 startIndex, Int32 length) ace.get_ Data() CairoExtensions .ToPixbuf( ImageSurface surfSource) in D:\a\Pinta\ Pinta\Pinta. Core\Extensions \CairoExtension s.cs:line 797 GdkPixbufFormat .Export( Document document, String fileName, Window parent) in D:\a\Pinta\ Pinta\Pinta. Core\ImageForma ts\GdkPixbufFor mat.cs: line 104 SaveDocumentImp lmentationActio n.SaveFile( Document document, String file, FormatDescriptor format, Window parent) in D:\a\Pinta\ Pinta\Pinta\ Actions\ File\SaveDocume ntImplementatio nAction. cs:line 243 SaveDocumentImp lmentationActio n.Activated( Object sender, DocumentCancelE ventArgs e) in D:\a\Pinta\ Pinta\Pinta\ Actions\ File\SaveDocume ntImplementatio nAction. cs:line 69 FileActions. RaiseSaveDocume nt(Document document, Boolean saveAs) in D:\a\Pinta\ Pinta\Pinta. Core\Actions\ FileActions. cs:line 118 Document. Save(Boolean saveAs) in D:\a\Pinta\ Pinta\Pinta. Core\Classes\ Document. cs:line 740 SaveDocumentAct ion.Activated( Object sender, EventArgs e) in D:\a\Pinta\ Pinta\Pinta\ Actions\ File\SaveDocume ntAction. cs:line 48 RuntimeMethodHa ndle.InvokeMeth od(Object target, Object[] arguments, Signature sig, Boolean constructor) Reflection. RuntimeMethodIn fo.UnsafeInvoke Internal( Object obj, Object[] parameters, Object[] arguments) Delegate. DynamicInvokeIm pl(Object[ ] args) ClosureInvokedC B(Object o, ClosureInvokedArgs args) SignalClosure. Invoke( ClosureInvokedA rgs args) SignalClosure. MarshalCallback (IntPtr raw_closure, Value* return_val, UInt32 n_param_vals, Value* param_values, IntPtr invocation_hint, IntPtr marshal_data)
Parameter name: source
at System.
at Cairo.ImageSurf
at Pinta.Core.
at Pinta.Core.
at Pinta.Actions.
at Pinta.Actions.
at Pinta.Core.
at Pinta.Core.
at Pinta.Actions.
--- End of inner exception stack trace ---
at System.
at System.
at System.
at GLib.Signal.
at GLib.Signal.
at GLib.Signal.