gInk icon indicating copy to clipboard operation
gInk copied to clipboard

gInk crashed:UIThreadException

Open Liu-zhigang opened this issue 4 years ago • 2 comments

OS: Win 7 UIThreadException

Oops, gInk crashed! Please include the following information if you plan to contact the developers (a copy of the following information is stored in crash.txt in the application folder):

值不在预期的范围内。

Stack Trace: 在 Microsoft.Ink.InkOverlayClass.set_Enabled(Boolean Collecting) 在 Microsoft.Ink.InkOverlay.set_Enabled(Boolean value) 在 gInk.FormCollection..ctor(Root root) 位置 H:\Codes\gInk\src\FormCollection.cs:行号 282 在 gInk.Root.StartInk() 位置 H:\Codes\gInk\src\Root.cs:行号 192 在 gInk.Root.TrayIcon_Click(Object sender, MouseEventArgs e) 位置 H:\Codes\gInk\src\Root.cs:行号 178 在 System.Windows.Forms.NotifyIcon.OnMouseClick(MouseEventArgs mea) 在 System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button) 在 System.Windows.Forms.NotifyIcon.WndProc(Message& msg) 在 System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Liu-zhigang avatar Feb 26 '21 04:02 Liu-zhigang

I also am getting this, as well as the infinite "crash windows" that makes me have to use system manager to kill gInk. it typically happens when I press ESC to close gInk and when I am on one of my other monitors. I run 4 monitors and ink over the top of a VM. It crashes almost once a week with a forever loop of crash windows. which leads me to believe you have a try catch in there that is popping up the window and letting it forever crash. I suggest actually ending the program after displaying the dialog.

CTI-Tim avatar May 04 '21 12:05 CTI-Tim

Same issue as @CTI-Tim here. It happens more frequently though. I use gInk to add notes on live lessons, and my use case is always the same: I run it through a shortcut (that I have linked to a mouse button for fast access to drawings) and then press ESC to leave and continue with the explanation. I do this frequently until it crashes (after 20-40 repetitions of this pattern) showing the following exception:

UIThreadException

Oops, gInk crashed! Please include the following information if you plan to contact the developers (a copy of the following information is stored in crash.txt in the application folder):

Referencia a objeto no establecida como instancia de un objeto.

Stack Trace:
   en gInk.FormDisplay.timer1_Tick(Object sender, EventArgs e) en H:\Codes\gInk\src\FormDisplay.cs:línea 506
   en System.Windows.Forms.Timer.OnTick(EventArgs e)
   en System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

fjcalzado avatar May 05 '21 15:05 fjcalzado