Latest Pinta development 1.7+r1110-202007241840~ubuntu18.04.1:
1. New from toolbar and select 4000x4000. Image is properly zoomed in my case 23%.
2. Select Line tool and draw line in upper left corner of canvas.
3. Select Rectangle Select, select small area on canvas of upper left corner so that you select drawn line.
4. Crop to Selection from toobar.
5. Undo from toolbar 3-times. FIRST PROBLEM. Line is way too big, it gets drawn through the full length of canvas.
6. Undo again and we are at the first action in History panel.
7. Now redo 4-times and crash appears. SECOND PROBLEM.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Redo stack is empty
at Pinta.Core.DocumentWorkspaceHistory.Redo () [0x00019] in <5951116749ed4edeaae59deb464a2fa8>:0
at Pinta.Core.EditActions.HandlerPintaCoreActionsEditRedoActivated (System.Object sender, System.EventArgs e) [0x0002b] in <5951116749ed4edeaae59deb464a2fa8>: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
I have tested this problem today with the same version, and I see I am unable to produce crash every time I test, but few times random way of undo and redo and crash does appear.