Pinta throws unhandled exception when invoking CUT (^X) or COPY (^C)

Bug #1395061 reported by Mitch Golden on 2014-11-21
22
This bug affects 6 people
Affects Status Importance Assigned to Milestone
pinta (Ubuntu)
Medium
Unassigned
Trusty
Undecided
Unassigned

Bug Description

Installing the version of pinta in the 14.04 LTS repository, (1.3-3) if I select a region of an image and hit ^X, I receive a popup about an unhandled reflection invocation. This happens every time. Below is the message.

Note that if I use pinta 1.5 from the stable ppa repo it works fine.

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

Mitch Golden (mgolden) wrote :

I should add that I am using Kubuntu 14.04.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pinta (Ubuntu):
status: New → Confirmed
Rolf Leggewie (r0lf) wrote :

At least in vivid it seems to work fine.

Rolf Leggewie (r0lf) wrote :

Cameron mentioned an upstream commit that might possibly fix this

https://bugs.launchpad.net/ubuntu/+source/pinta/+bug/1236457/comments/6

summary: - Pinta throws unhandled exception when invoking CUT (^X)
+ Pinta throws unhandled exception when invoking CUT (^X) or COPY (^C)
Rolf Leggewie (r0lf) on 2015-02-20
Changed in pinta (Ubuntu):
importance: Undecided → Medium
Rolf Leggewie (r0lf) wrote :

setting to fix released for vivid and nominating for trusty

Changed in pinta (Ubuntu):
status: Confirmed → Fix Released
Rolf Leggewie (r0lf) wrote :

This works fine for me now in Trusty. What about others?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers