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

Terminating a GazePoint Calibration via Mouse Click Causes a crash in the Core #115

Open
dtg3 opened this issue Aug 2, 2019 · 6 comments
Assignees
Labels
Bug Good First Issue Good issue for someone new to the project Medium

Comments

@dtg3
Copy link
Member

dtg3 commented Aug 2, 2019

If you are using the GazePoint Control Application begin a calibration, but cancel it by clicking the mouse the Core will hang and crash.

@dtg3 dtg3 changed the title Closing Gazepoint Control Application and iTrace Core Crash Terminating a GazePoint Calibration via Escape Key Causes a crash in the Core Aug 2, 2019
@dtg3
Copy link
Member Author

dtg3 commented Aug 2, 2019

There isn't a clean way to prevent this as the GazePoint sends ZERO data informing us that calibration has stopped so the Core simply continues to wait like a good program. One option might be to have a timeout on calibration between receiving data points.

@dtg3
Copy link
Member Author

dtg3 commented Aug 2, 2019

Could consider using:
Reader.BaseStream.ReadTimeout = 5000;

This would set the timeout to 5 seconds. It can be restored to the default value with:
Reader.BaseStream.ReadTimeout = System.Threading.Timeout.Infinite;

One important detail to keep in mind is that the CALIBRATE_TIMEOUT (duration of the calibration point) and the CALIBRATE_DELAY (animation time) settings for Gazepoint API can be changed. Therefore the timeout would need to consider those values and not use an arbitrary timeout value.

@dtg3
Copy link
Member Author

dtg3 commented Aug 2, 2019

Noted the issue in the documentation in the event that a reliable solution is not present for release.

@dtg3 dtg3 changed the title Terminating a GazePoint Calibration via Escape Key Causes a crash in the Core Terminating a GazePoint Calibration via Mouse Click Causes a crash in the Core Aug 2, 2019
@shbonita
Copy link
Contributor

shbonita commented Aug 4, 2019

It can be one of the known issues in the release notes.

@dtg3
Copy link
Member Author

dtg3 commented Aug 5, 2019

Okay. For this release (0.1.0) we will leave it as a known documented issue. I'll keep this open so we fix it in future releases.

@dtg3 dtg3 added the Good First Issue Good issue for someone new to the project label May 14, 2020
@shbonita
Copy link
Contributor

@dtg3 @Joshua2000B was this fixed or looked at? It could still be a known documented issue if we don't want to fix it in this release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Good First Issue Good issue for someone new to the project Medium
Projects
None yet
Development

No branches or pull requests

3 participants