WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

System.AccessViolationException when parsing gaze position data

Open DLamb-MagicLeap opened this issue 8 years ago • 4 comments

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

While using the GetGazeHidPositions() method to retrieve position information from the GazeMoved stream the call throws the following error intermittently:

System.AccessViolationException HResult=0x800004003 Message=Attempted to read or write protected memory. this is often an indication that other memory is corrupt. Source=

Expected behavior

Minimal reproduction of the problem with instructions

In the GazeMoved event handler a call to:

var positions = gazeHidPositionsParser.GetGazeHidPositions(args.CurrentPoint.HidInputReport);

often throws an error if the user switches between modes of acquiring position to calling the eye tracker's calibration with a call to:

bool ret = await GazeInput.GetGazePointer(this).RequestCalibrationAsync();

and after calibration is complete the user then goes back into acquiring position mode of the app.

Environment

Nuget Package(s): 
Microsoft.Toolkit.Uwp.Input.GazeInteraction   v5.1.0-build.1

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [X] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [X] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (xxxxx)

Device form factor:
- [X] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [X] 2017 (version: 15.8.7 )
- [ ] 2017 Preview (version: )

DLamb-MagicLeap avatar Nov 07 '18 20:11 DLamb-MagicLeap

No response from the community. ping @nmetulev @Odonno @IbraheemOsama

windowstoolkitbot avatar Jan 17 '19 21:01 windowstoolkitbot

This issue seems inactive. It will automatically be closed in 14 days if there is no activity.

windowstoolkitbot avatar Jan 25 '19 07:01 windowstoolkitbot

This issue seems inactive. It will automatically be closed in 14 days if there is no activity.

windowstoolkitbot avatar Feb 02 '19 23:02 windowstoolkitbot

Issue is inactive. It was automatically closed.

windowstoolkitbot avatar Feb 10 '19 00:02 windowstoolkitbot