Images bigger than 5000x5000 sometimes crash when saving

Bug #1902452 reported by Ninja Nolan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Incomplete
Undecided
Unassigned

Bug Description

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.

EDIT: it seems it saves once, but then the second time I try to save it crashes. Also sometimes it crashes when I do an action. (This is version 1.7)

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)

Ninja Nolan (ninjanolan)
description: updated
Ninja Nolan (ninjanolan)
description: updated
Revision history for this message
Cameron White (cameronwhite91) wrote :

Are you able to reproduce the same crash with e.g. creating a blank 5100x5100 image, doing a couple paint operations, and then saving? I wasn't able to reproduce it it my testing, so it might possibly be related to the actions you're performing before saving, or the source image being used.

Changed in pinta:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.