ArgumentOutOfRangeException on paste as new image blocks Pinta

Bug #1838620 reported by Dmitry Petrov
110
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Pinta
Undecided
Unassigned

Bug Description

Sometimes (probably on pasting large enough image) "paste as new image" action causes the following exception:

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 (System.Int32 numerator, System.Int32 denominator) [0x00009] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Core.DocumentWorkspace.WindowPointToCanvas (System.Double x, System.Double y) [0x00027] in <d07abe89b0c1405ca613eaf73991f472>:0
  at Pinta.Gui.Widgets.PintaCanvas.<PintaCanvas>m__4 (System.Object sender, Gtk.MotionNotifyEventArgs e) [0x00035] in <0ba1d3bddee54c6a9ca66d83a5dd53a3>: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, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0010d] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0001e] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0006d] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <5a439e0caae7469886e7119d9f6bc621>:0
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x0012e] in <5a439e0caae7469886e7119d9f6bc621>:0

After that, clicking "Ok" causes "Unhandled exception" popup yet again, and so on, making editor unusable.

Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
milestone: none → 1.7
status: New → Fix Committed
Revision history for this message
Cameron White (cameronwhite91) wrote :

https://github.com/PintaProject/Pinta/commit/196a93198e6a2b628fe7cad7fd037c4cf7eb9f55 is the other related change, which fixed this same crash when dragging and dropping images.

Revision history for this message
swapnalim (swapnalimali) wrote : Re: [Bug 1838620] Re: ArgumentOutOfRangeException on paste as new image blocks Pinta

Thanks for your kind  support.

On 31/07/20 2:59 AM, Cameron White wrote:
> I think this issue should be fixed by
> https://github.com/PintaProject/Pinta/commit/1776a79d42831bb4d5f8cea85897a95af97e53d1
> and
> https://github.com/PintaProject/Pinta/commit/1776a79d42831bb4d5f8cea85897a95af97e53d1
>
> ** Changed in: pinta
> Status: New => Fix Committed
>
> ** Changed in: pinta
> Milestone: None => 1.7
>
--
Thanks & Regards,
swapnali C Mali
Business To Business Team| Pune Ho
<email address hidden>
www.firstcry.com

grofaty (grofaty)
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers