Unhandled exception message while inverting colors on inverted selection picture

Bug #1754440 reported by Valdas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Medium
Unassigned

Bug Description

$ apt-cache policy pinta
pinta:
  Installed: 1.6-2
  Candidate: 1.6-2
  Version table:
 *** 1.6-2 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status
$
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.3
DISTRIB_CODENAME=sylvia
DISTRIB_DESCRIPTION="Linux Mint 18.3 Sylvia"
$
=========================================================
1. paste image from clipboard (whole image is selected)
2. Edit > Invert Selection (selection disapears)
3. Adjustments > Invert Colors == Unhandled exception error message

Revision history for this message
grofaty (grofaty) wrote :

I can confirm this in Pinta latest Ubuntu PPA 1.7+r1134-202008032046~ubuntu18.04.1 following bug report steps. I get the following error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: EffectRenderSettings.TileWidth
  at Pinta.Core.AsyncEffectRenderer..ctor (Pinta.Core.AsyncEffectRenderer+Settings settings) [0x00029] in <e7d0dcd7669a474795360fb5061850db>:0
  at Pinta.Core.LivePreviewManager+Renderer..ctor (Pinta.Core.LivePreviewManager manager, Pinta.Core.AsyncEffectRenderer+Settings settings) [0x00000] in <e7d0dcd7669a474795360fb5061850db>:0
  at Pinta.Core.LivePreviewManager.Start (Pinta.Core.BaseEffect effect) [0x001d8] in <e7d0dcd7669a474795360fb5061850db>:0
  at Pinta.Core.EffectsManager+<RegisterAdjustment>c__AnonStorey0.<>m__0 (System.Object sender, System.EventArgs e) [0x00006] in <e7d0dcd7669a474795360fb5061850db>:0
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <a17fa1457c5d44f2885ac746c1764ea5>:0
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <a17fa1457c5d44f2885ac746c1764ea5>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <a17fa1457c5d44f2885ac746c1764ea5>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <a17fa1457c5d44f2885ac746c1764ea5>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <a17fa1457c5d44f2885ac746c1764ea5>: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) [0x00050] in <ed39f21b9e9343dcbd442a17ad356a9f>:0

Changed in pinta:
status: New → Confirmed
Revision history for this message
Cameron White (cameronwhite91) wrote :

I suspect the issue is caused by the selection having zero area after the selection is inverted.

Changed in pinta:
importance: Undecided → Medium
status: Confirmed → Triaged
tags: added: easy-to-fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers