Paintbrush and Line/Curve with Undo crashes Pinta

Bug #1419153 reported by grofaty
24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
High
Cameron White

Bug Description

Pinta 1.6 using daily PPA on Ubuntu 14.04.

1. Paintbrush and draw something on canvas.
2. Line/Curve and draw one line on canvas.
3. Paintbrush and draw something on canvas.
4. Undo button twice and crash appears.
==============
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at Pinta.Tools.BaseEditEngine.ActivateCorrespondingTool (ShapeTypes shapeType, Boolean permanentSwitch) [0x00000] in <filename unknown>:0
  at Pinta.Tools.BaseEditEngine.ActivateCorrespondingTool (Int32 shapeIndex, Boolean permanentSwitch) [0x00000] in <filename unknown>:0
  at Pinta.Tools.ShapesHistoryItem.Swap (Boolean redraw) [0x00000] in <filename unknown>:0
  at Pinta.Tools.ShapesHistoryItem.Undo () [0x00000] in <filename unknown>:0
  at Pinta.Core.DocumentWorkspaceHistory.Undo () [0x00000] in <filename unknown>:0
  at Pinta.Core.EditActions.HandlerPintaCoreActionsEditUndoActivated (System.Object sender, System.EventArgs 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.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
==============

It may be related to bug 1419082, but I have reported a new bug report, because crash error is not the same.

Tags: line-tool undo
Revision history for this message
Cameron White (cameronwhite91) wrote :

Probably related to bug #1419079

Changed in pinta:
importance: Undecided → High
milestone: none → 1.6
status: New → Confirmed
tags: added: line-tool
grofaty (grofaty)
tags: added: undo
Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
assignee: nobody → Cameron White (cameronwhite91)
status: Confirmed → Fix Committed
Changed in pinta:
status: Fix Committed → Fix Released
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.