libgdx / gdx-realsense

RealSense support for libGDX
52 stars 28 forks source link

Landmark Points Query - a heap has been corrupted - ntdll.dll #11

Open ghost opened 9 years ago

ghost commented 9 years ago

I can't preform a landmark query points, an exception is thrown. "a heap has been corrupted" and it references this: ntdll.dll

I can find and draw face rectangle, find the pose, but when I try to get landmark points and exception is thrown.

Code: LandmarkPoint lp = new LandmarkPoint(); LandmarksData ld = face.QueryLandmarks(); if (ld != null){ int j = ld.QueryNumPoints(); ---> just this works int i = ld.QueryPoints(lp); ---> with this exception is thrown System.out.println("Number of Points"+ i); }

Prints: http://prntscr.com/76aw31 http://prntscr.com/76aweo http://prntscr.com/76awmg

Any guess? Can you help @badlogic ? Thanks in advance

ghost commented 9 years ago

public int QueryPoints(PXCFaceData.LandmarkPoint outPoints) { ... } That's the lib-gdx QueryPoints. It's supposed that this receives an array of points, not only one. Where can I change this?