It happens sometimes, when trying to paste an image from clipboard to Pinta, it doesn't paste it, and then when I try to close Pinta, it gets stuck, until I click several times exit button, and then it throws this exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Tried to get WorkspaceManager.ActiveDocument when there are no open Documents. Check HasOpenDocuments first.
at Pinta.Core.WorkspaceManager.get_ActiveDocument () <0x41f46a80 + 0x0005f> in <filename unknown>:0
at Pinta.Core.WorkspaceManager.get_ImageSize () <0x41f496c0 + 0x0000f> in <filename unknown>:0
at Pinta.Core.Document.Paste (Boolean toNewLayer, Int32 x, Int32 y) <0x41f599c0 + 0x001c3> in <filename unknown>:0
at Pinta.Actions.PasteAction.Activated (System.Object sender, System.EventArgs e) <0x41f59610 + 0x00163> 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) <0x41e43f70 + 0x000a3> 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) <0x41e43f70 + 0x000ff> in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x41e43f30 + 0x0002a> in <filename unknown>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) <0x41ea5590 + 0x00277> in <filename unknown>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) <0x41ea54d0 + 0x00037> in <filename unknown>:0
at System.Delegate.DynamicInvoke (System.Object[] args) <0x41ea54a0 + 0x00018> in <filename unknown>:0
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) <0x41ea5330 + 0x00147> in <filename unknown>:0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) <0x41ea52f0 + 0x0002f> 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) <0x41ea3d40 + 0x002a7> in <filename unknown>:0
Same exception as https:/ /bugs.launchpad .net/pinta/ +bug/1675742, can't reproduce it myself. Do you have some image that fails on copy-paste that I can try to use to get this?