pablodraw icon indicating copy to clipboard operation
pablodraw copied to clipboard

Crash on Ctrl+C `v3.1.14.0`

Open telamon opened this issue 1 year ago • 1 comments

OS: Linux / Wayland Pablodraw version: v3.1.14.0

Process terminated. A callback was made on a garbage collected delegate of type 'GtkSharp!GtkSharp.ClipboardClearFuncNative::Invoke'.
   at Gtk.Clipboard.Clear()
   at Eto.GtkSharp.Forms.ClipboardHandler.Clear()
   at Eto.Forms.Clipboard.Clear()
   at Pablo.Formats.Character.Actions.Block.CopyToClipboard.OnExecuted(System.EventArgs)
   at Eto.Forms.Command.System.Windows.Input.ICommand.Execute(System.Object)
   at Eto.Forms.MenuItem.OnClick(System.EventArgs)
   at Eto.Forms.MenuItem.PerformClick()
   at Pablo.Interface.Main.OnKeyDown(Eto.Forms.KeyEventArgs)
   at Eto.Forms.Control+Callback.OnKeyDown(Eto.Forms.Control, Eto.Forms.KeyEventArgs)
   at Eto.GtkSharp.Forms.GtkWindow`3+GtkWindowConnector[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].HandleWindowKeyPressEvent(System.Object, Gtk.KeyPressEventArgs)
   at DynamicClass.InvokeStub_KeyPressEventHandler.Invoke(System.Object, System.Span`1<System.Object>)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Delegate.DynamicInvokeImpl(System.Object[])
   at GLib.SignalClosure.MarshalCallback(IntPtr, IntPtr, UInt32, IntPtr, IntPtr, IntPtr)
   at Gtk.Application.Run()
   at Eto.GtkSharp.Forms.ApplicationHandler.Run()
   at Eto.Forms.Application.Run()
   at PabloDraw.CommandHandlers.EditorCommandLine.Process(PabloDraw.ProcessCommandLineArgs)
   at PabloDraw.Program.Run()
   at PabloDraw.Startup.Main()
Aborted

Steps to reproduce:

  1. selected area, then copy using menu Edit -> Copy (worked fine)
  2. afk ~15min, make coffee
  3. select different area
  4. ctrl+c (crash!)

telamon avatar Mar 30 '25 15:03 telamon

Thanks for reporting the issue! I can reproduce this so should be easy enough to fix or find a workaround.

cwensley avatar Apr 01 '25 04:04 cwensley