Using laso doesn't work and cutting it causes Exception

Bug #950524 reported by G4JC
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Medium
Cameron White

Bug Description

On my current setup I am running 3.2.8-libre, latest xorg drivers etc. The lasso tool doesn't display at all. Also when I try to use it as if it were there (even the the cursor is not visible) and press Ctrl+X to cut an area it throws an exception:
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 (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

Tags: crash
Revision history for this message
grofaty (grofaty) wrote :

Can you please provide your operating system name and version. Please also provide Pinta version you are using (menu Help | About) and how did you installed it (on Linux from main repository, using PPA etc).

Revision history for this message
G4JC (gaming4jc2) wrote :

Trisquel 5.0 (Dagda)
Kernel 3.2.8-libre
Gnome 2.32.1
64bit

Pinta 1.1 latest version on PPA

Revision history for this message
Robert Nordan (rpvn) wrote :

I'm not able to reproduce this bug. (Might be an issue of the system configuration?) Anyway, cant really take action on it but leaving it open in case anyone else experiences the same problem.

Changed in pinta:
status: New → Triaged
tags: added: crash
Revision history for this message
grofaty (grofaty) wrote :

At G4JC, can you still produce this problem. I can't reproduce this problem using Pinta 1.4 in Windows XP and Ubuntu 12.04.
I am bumping status to Incomplete. Ass I also see it from #3 it was not reproduced so "Triaged" status is wrong.

P.S. Triaged status should only be used when problem is confirmed (Status=Confirm) by some other user then bug reported and that it is clear that this is bug (probably is because there is crash message). So both conditions should be met. Bug can't be fixed if it is not reproducible.

Changed in pinta:
status: Triaged → Incomplete
Revision history for this message
G4JC (gaming4jc2) wrote :

This still occurs on my latest distro running 3.0.0-24-generic:
------------------------------------
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
-------------------

Revision history for this message
Cameron White (cameronwhite91) wrote :

I can actually reproduce this now with Ubuntu 12.10. When using the lasso tool, the canvas remains blank and nothing seems to happen. If I then try to use the Move Selected Pixels tool, I can move the outline of the selection but not the selected contents (see attached screenshot).

Changed in pinta:
importance: Undecided → Medium
milestone: none → 1.5
status: Incomplete → Confirmed
Revision history for this message
Cameron White (cameronwhite91) wrote :
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
status: Confirmed → Fix Committed
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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