Pinta crashes when I paste a screenshot into new image

Bug #1428917 reported by Gregory
This bug report is a duplicate of:  Bug #1508777: Drag and drop unhandled exception. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: must be greater than 0
Parameter name: denominator
  at Pinta.Core.ScaleFactor..ctor (Int32 numerator, Int32 denominator) [0x00000] in <filename unknown>:0
  at Pinta.Core.DocumentWorkspace.WindowPointToCanvas (Double x, Double y) [0x00000] in <filename unknown>:0
  at Pinta.Gui.Widgets.PintaCanvas.<PintaCanvas>m__4 (System.Object sender, Gtk.MotionNotifyEventArgs 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.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
Gregory (gmarthews-1) wrote :
Revision history for this message
Cameron White (cameronwhite91) wrote :

What version of Pinta are you using?

Revision history for this message
Gregory (gmarthews-1) wrote : Re: [Bug 1428917] Re: Pinta crashes when I paste a screenshot into new image

Version 1.7 - I updated the moment it happened - but it doesn't always
happen, occasionally a restart makes it work,

GM

On 6 March 2015 at 12:35, Cameron White <email address hidden> wrote:

> What version of Pinta are you using?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1428917
>
> Title:
> Pinta crashes when I paste a screenshot into new image
>
> Status in Pinta:
> New
>
> Bug description:
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. ---> System.ArgumentOutOfRangeException:
> must be greater than 0
> Parameter name: denominator
> at Pinta.Core.ScaleFactor..ctor (Int32 numerator, Int32 denominator)
> [0x00000] in <filename unknown>:0
> at Pinta.Core.DocumentWorkspace.WindowPointToCanvas (Double x, Double
> y) [0x00000] in <filename unknown>:0
> at Pinta.Gui.Widgets.PintaCanvas.<PintaCanvas>m__4 (System.Object
> sender, Gtk.MotionNotifyEventArgs 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.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
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pinta/+bug/1428917/+subscriptions
>

Revision history for this message
grofaty (grofaty) wrote :

Gregory, thanks for reporting a bug. How did you install Pinta on Ubuntu? What is your Ubuntu version?

It looks like you are using a pinta-daily PPA, is it? Because I see this as only way to get "1.7" currently in Help | About. If you are using pinta-daily then I suggest to continue using it and update your Ubuntu software and if problem appears then please report back that we have information if this problem continues or was maybe fixed.

I tried a lot of testing, but I am not able to reproduce this problem using forge.pinta-project.com Pinta development 1.7.0.140 on Windows 7 and the same on Ubuntu 14.04. This is going to be nasty bug to diagnose, because it is difficult to confirm if bug exists in first place or there is something special in user environment.

Cameron, what I see from Gegory's print-screen is:
1. In Images pad new image icon is visible, but it looks like image is transparent. This is strange except if whole screen was transparent when screenshot was performed.
2. Layers pad is empty after screenshot there should be one layer with name Background.
3. History pad is also empty after screenshot there should be New Image entry.

Revision history for this message
Gregory (gmarthews-1) wrote :
Download full text (4.1 KiB)

I agree, it is strange - my instinct is that there is something in my setup
- I have a virtual box installed, but I can reproduce the bug (often, but
not always) on both my machine at home and at work where we have the same
setup. I think you are correct in your analysis - I will confirm later -
thank you for trying.

Greg

On 11 March 2015 at 14:53, grofaty <email address hidden> wrote:

> Gregory, thanks for reporting a bug. How did you install Pinta on
> Ubuntu? What is your Ubuntu version?
>
> It looks like you are using a pinta-daily PPA, is it? Because I see this
> as only way to get "1.7" currently in Help | About. If you are using
> pinta-daily then I suggest to continue using it and update your Ubuntu
> software and if problem appears then please report back that we have
> information if this problem continues or was maybe fixed.
>
> I tried a lot of testing, but I am not able to reproduce this problem
> using forge.pinta-project.com Pinta development 1.7.0.140 on Windows 7
> and the same on Ubuntu 14.04. This is going to be nasty bug to diagnose,
> because it is difficult to confirm if bug exists in first place or there
> is something special in user environment.
>
> Cameron, what I see from Gegory's print-screen is:
> 1. In Images pad new image icon is visible, but it looks like image is
> transparent. This is strange except if whole screen was transparent when
> screenshot was performed.
> 2. Layers pad is empty after screenshot there should be one layer with
> name Background.
> 3. History pad is also empty after screenshot there should be New Image
> entry.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1428917
>
> Title:
> Pinta crashes when I paste a screenshot into new image
>
> Status in Pinta:
> New
>
> Bug description:
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. ---> System.ArgumentOutOfRangeException:
> must be greater than 0
> Parameter name: denominator
> at Pinta.Core.ScaleFactor..ctor (Int32 numerator, Int32 denominator)
> [0x00000] in <filename unknown>:0
> at Pinta.Core.DocumentWorkspace.WindowPointToCanvas (Double x, Double
> y) [0x00000] in <filename unknown>:0
> at Pinta.Gui.Widgets.PintaCanvas.<PintaCanvas>m__4 (System.Object
> sender, Gtk.MotionNotifyEventArgs 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) [0x0...

Read more...

Revision history for this message
Jonathan Pobst (jpobst) wrote :

I think this may have been fixed by a later commit I did, could you try a newer development version (after March 19th)?

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.