Exception at image opening

Bug #1807536 reported by hil liao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

On Ubuntu 18.04 with 3 monitors, opening a jpg image caused the following exception. Pressing OK continued using the application. Sometimes pressing OK on the exception dialog box would not clear the dialog box and makes the app unusable.

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) [0x0003b] in <3833a6edf2074b959d3dab898627f0ac>: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) [0x00051] in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) <0x7fe12dd886a0 + 0x00219> in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) <0x7fe12dd8b950 + 0x00066> in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) <0x7fe12dd8b950 + 0x0004e> in <3833a6edf2074b959d3dab898627f0ac>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) <0x7fe12dd885b0 + 0x00009> in <3833a6edf2074b959d3dab898627f0ac>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007d] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
  at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value* return_val, System.UInt32 n_param_vals, GLib.Value* param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x000b1] in <ed39f21b9e9343dcbd442a17ad356a9f>:0

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.