Pinta version 1.3
Steps to reproduce:
1. Open a png image.
2. Rectangle select some area.
3. CTRL-X or Menu--> Edit --> Cut
Expected results:
Selected area gets cut into the system clipboard
Actual results:
Pop-up with unhandled exception shows up:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: src
at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int)
at System.Runtime.InteropServices.Marshal.Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0
at Cairo.ImageSurface.get_Data () [0x00000] in <filename unknown>:0
at Pinta.Core.CairoExtensions.ToPixbuf (Cairo.ImageSurface surfSource) [0x00000] in <filename unknown>:0
at Pinta.Core.EditActions.HandlerPintaCoreActionsEditCopyActivated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at Pinta.Core.EditActions.HandlerPintaCoreActionsEditCutActivated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
You are using Pinta 1.3 which is very old Pinta version. Most probably you are using some kind of older version of Linux distribution that was distributing this old version. For example Ubuntu 14.04 LTS still provides old Pinta 1.3 version.
In the time being three new versions were released, now currently stable is Pinta 1.6.
Install info for Linux and BSD users: pinta-project. com/howto/ installing- pinta
http://
Or if using something else see download page: pinta-project. com/releases
http://
Please upgrade to latest Pinta version and retest. Please also let us know if the problem is fixed.