Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashed after usb disconnect #990

Closed
sinfocomp opened this issue May 5, 2020 · 2 comments
Closed

crashed after usb disconnect #990

sinfocomp opened this issue May 5, 2020 · 2 comments

Comments

@sinfocomp
Copy link

LaserGrbl v3.2.0.0
Grbl v1.1
Wrapper: UsbSerial
Win 10, Enterprise, 10.0.14393.0 (7)

TypeOf exception [System.ObjectDisposedException]
Exception message [Se ha cerrado el controlador seguro]
Exception source [mscorlib], thread []
Exception method [IntPtr SafeHandleC2NHelper(System.Object, IntPtr)]

----------- stack trace -----------
en System.StubHelpers.StubHelpers.SafeHandleC2NHelper(Object pThis, IntPtr pCleanupWorkList)
en Microsoft.Win32.UnsafeNativeMethods.WaitCommEvent(SafeFileHandle hFile, Int32* lpEvtMask, NativeOverlapped* lpOverlapped)
en System.IO.Ports.SerialStream.EventLoopRunner.WaitForCommEvent()
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()

@arkypita
Copy link
Owner

arkypita commented May 5, 2020

Hi! Thank you for reporting this exception.
It appears to have been caused by the .NET framework system serial driver, not directly by LaserGRBL. Unfortunately, since it is external code, it is difficult for me to catch this error.

I have already received a couple of reports, which seemed to limit the problem to PCs with Windows 7, but apparently there is also on your PC that has Windows 10.

I would really like to solve it, but the biggest difficulty is that on my PC I can't make it happen. Can you tell me if the error is sporadic, or does it always happen? Is there a particular procedure with which you can make it happen?

@arkypita
Copy link
Owner

arkypita commented Jan 1, 2021

Hi
I write a new SerialUSB wrapper to comunicate with the engraver, that replace microsoft implementation that has some bug like the one reported here.

If you want you can test by download from here: https://github.com/arkypita/LaserGRBL/releases/download/v3.8.10/install.exe and enable UsbSerial2 connection protocol (before connect!).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants