Error when copying selected portion of the page

Bug #1212370 reported by Donald Owens
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
High
Cameron White

Bug Description

Get an unhandled exception when I use the Rectangle Select tool to select a portion of the page, then Copy it. This error occurs when I click Edit > Copy or use Command + C. I'm using OS X 10.8.4.

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

Can you please provide what is your Pinta version from Help | About menu. Please post the whole error exception message.

Can you please test the latest development preview from https://groups.google.com/forum/?hl=en#!topic/pinta/fUttSBGPBRU (see download link from first post) and report back if this problem persists.

Revision history for this message
Donald Owens (boiler92) wrote : Re: [Bug 1212370] Re: Error when copying selected portion of the page

Hello!

I'm using v1.4. Here's the text from the error:

[image: Inline image 2]

On Fri, Aug 16, 2013 at 1:38 AM, grofaty <email address hidden> wrote:

> Can you please provide what is your Pinta version from Help | About
> menu. Please post the whole error exception message.
>
> Can you please test the latest development preview from
> https://groups.google.com/forum/?hl=en#!topic/pinta/fUttSBGPBRU (see
> download link from first post) and report back if this problem persists.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1212370
>
> Title:
> Error when copying selected portion of the page
>
> Status in Pinta:
> New
>
> Bug description:
> Get an unhandled exception when I use the Rectangle Select tool to
> select a portion of the page, then Copy it. This error occurs when I
> click Edit > Copy or use Command + C. I'm using OS X 10.8.4.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pinta/+bug/1212370/+subscriptions
>

Revision history for this message
Donald Owens (boiler92) wrote :

And I get the error in the dev preview as well.

Some more info on this... I get it when I try a copy/paste on a .jpg
version of my image but not with the .png version.

On Fri, Aug 16, 2013 at 8:55 AM, Donald Owens <email address hidden> wrote:

> Hello!
>
> I'm using v1.4. Here's the text from the error:
>
> [image: Inline image 2]
>
>
> On Fri, Aug 16, 2013 at 1:38 AM, grofaty <email address hidden>wrote:
>
>> Can you please provide what is your Pinta version from Help | About
>> menu. Please post the whole error exception message.
>>
>> Can you please test the latest development preview from
>> https://groups.google.com/forum/?hl=en#!topic/pinta/fUttSBGPBRU (see
>> download link from first post) and report back if this problem persists.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1212370
>>
>> Title:
>> Error when copying selected portion of the page
>>
>> Status in Pinta:
>> New
>>
>> Bug description:
>> Get an unhandled exception when I use the Rectangle Select tool to
>> select a portion of the page, then Copy it. This error occurs when I
>> click Edit > Copy or use Command + C. I'm using OS X 10.8.4.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/pinta/+bug/1212370/+subscriptions
>>
>
>

tags: added: crash osx
Changed in pinta:
importance: Undecided → High
milestone: none → 1.6
Revision history for this message
Saul Dobney (saul-dobney) wrote :

Happening in Ubuntu 14.04. Firstly taken a screenshot. Then Rectangle select area. Attempted to copy (ctrl-C) and get Unhandled Exception. Details below (Pinta version 1.3.0.0 - also checked uninstall and reinstall - same problem)

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 (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't reproduce the crash with Pinta 1.5 on Ubuntu 14.04. Can you try the daily builds PPA (https://launchpad.net/~pinta-maintainers/+archive/pinta-daily) and see if you still get that crash?

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
David Cesarino de Sousa (davidcesarino) wrote :

Hi Cameron,

Fixed in “1.5+r860~ubuntu14.04.1” from the ppa.

I'm using 14.04 amd64.

Revision history for this message
David Cesarino de Sousa (davidcesarino) wrote :

Ah, and just to make sure (sorry for the double post): yes, I was having this problem when performing _any_ copy or cut operation, with the same stack message that was posted in #4. It is not happening anymore at all, at least here, with the package I mentioned.

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

OK, sounds like I can mark this as fixed.

Changed in pinta:
milestone: 1.6 → 1.5
status: New → Fix Committed
assignee: nobody → Cameron White (cameronwhite91)
Changed in pinta:
status: Fix Committed → Fix Released
no longer affects: ubuntu
Revision history for this message
Rainshoots (astyh83) wrote :

Hi,

I am using Pinta on Ubuntu Kylin and got the same error msg.

Seems like it is still affecting certain versions of Ubuntu.

Should I report a new bug or leave this comment as it is?

===================================================

Unhandled exception:
Exception has been thrown by the target of an invocation.

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 (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
vedavata (vedavrata) wrote :

Version 1.3.

Unhandled exception:
Exception has been thrown by the target of an invocation.

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 (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
nissim kaufmann (nissimkaufmann) wrote :

Fixed for me by upgrading from 1.3 to 1.6 by adding the PPA

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.