Uploaded image for project: 'Greenshot bugs'
  1. BUG-2126

MemberAccessException during un-DropShadow of Ellipse

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.2.9.112
    • Fix Version/s: 1.2.9.129
    • Component/s: Editor
    • Labels:

      Description

      I got an exception while using the Image Editor of Greenshot.

      Steps taken before the screenshot:

      1. took a "region" screenshot
      2. added a rectangle (with drop shadow)
      3. added an ellipse (with drop shadow)
      4. let that window sit for several minutes during an interruption
      5. took another "region" screenshot (opening a 2nd image editor window)
      6. quit the 2nd image editor window
      7. back in the 1st image editor window, selected the ellipse
      8. clicked icon for drop shadow to turn it off
      9. EXCEPTION THROWN HERE
      10. copied modal window with exception text
      11. clicked icon for "copy image to clipboard"
      12. pasted into Outlook email just fine
      Software version: 1.2.9.112-RELEASE-9bc62ac42bd37d7ba2b19946b70d40a599332b75 (64 bit)
      .NET runtime version: 4.0.30319.42000+
      Time: 2017-01-26 17:15:06 -05:00
      OS: unknown   (x64)  6.1 build 7601 revision 10000
      GDI object count: 192
      User object count: 139
      
      Exception: System.MemberAccessException
      Message: Could not set property 'Value' to 'False' [Boolean] on [Field FieldType=SHADOW Value= Scope=FieldAggregator]. Probably other type than expected, IBindingCoverter to the rescue.
      
      Stack:
         at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.Synchronize(INotifyPropertyChanged sourceObject, String sourceProperty, INotifyPropertyChanged targetObject, String targetProperty)
         at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.ControlPropertyChanged(Object sender, PropertyChangedEventArgs e)
         at System.Windows.Forms.ToolStripButton.OnCheckedChanged(EventArgs e)
         at System.Windows.Forms.ToolStripButton.set_CheckState(CheckState value)
         at System.Windows.Forms.ToolStripButton.set_Checked(Boolean value)
         at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
         at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
         at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
         at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
         at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
         at System.Windows.Forms.Control.WndProc(Message& m)
         at System.Windows.Forms.ToolStrip.WndProc(Message& m)
         at Greenshot.Controls.ToolStripEx.WndProc(Message& m)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      --- InnerException: ---
      Exception: System.Reflection.TargetInvocationException
      Message: Exception has been thrown by the target of an invocation.
      
      Stack:
         at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
         at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
         at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
         at Greenshot.Drawing.Fields.Binding.BidirectionalBinding.Synchronize(INotifyPropertyChanged sourceObject, String sourceProperty, INotifyPropertyChanged targetObject, String targetProperty)
      --- InnerException: ---
      Exception: System.InvalidOperationException
      Message: Collection was modified; enumeration operation may not execute.
      
      Stack:
         at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
         at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
         at Greenshot.Drawing.Fields.FieldAggregator.OwnPropertyChanged(Object sender, PropertyChangedEventArgs ea)
         at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
         at Greenshot.Drawing.Fields.Field.set_Value(Object value)
      
      
      
      Configuration dump:
      

        Gliffy Diagrams

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  darrelvun Darrel Vuncannon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: