Copy/paste between images and after save crash appears

Bug #1531500 reported by grofaty
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pinta
Invalid
Undecided
Unassigned

Bug Description

Pinta latest development 1.7.0.218 on Windows 7.

What I did when crash appeared:
1. One big image opened 2000 x 2000.
2. Multiple small images opened.
3. Crop to selection from small image. Copy/paste part of image from small images to big image.
4. Save and crash appeared:
================================================================
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 c:\GitRepos\Pinta\Pinta.Core\Extensions\CairoExtensions.cs:line 800
   at Pinta.Core.GdkPixbufFormat.Export(Document document, String fileName, Window parent) in c:\GitRepos\Pinta\Pinta.Core\ImageFormats\GdkPixbufFormat.cs:line 106
   at Pinta.Actions.SaveDocumentImplmentationAction.SaveFile(Document document, String file, FormatDescriptor format, Window parent) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 214
   at Pinta.Actions.SaveDocumentImplmentationAction.SaveFileAs(Document document) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 160
   at Pinta.Actions.SaveDocumentImplmentationAction.Activated(Object sender, DocumentCancelEventArgs e) in c:\GitRepos\Pinta\Pinta\Actions\File\SaveDocumentImplementationAction.cs:line 58
   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)
================================================================

I can't reproduce a problem, but time to time this crash appears. Sorry for not having step-by-step instructions.

Changed in pinta:
status: New → Incomplete
Revision history for this message
grofaty (grofaty) wrote :

I am using Pinta-development currently for few months and this problem did not appear for few months. Maybe this problem does not appear any more in development.

If problem reappears and I have a step-by-step instruction, I will open new bug report. I am closing this bug as Invalid.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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