Skip to content

psmove_tracker_new freezes the application #175

@PolGraphic

Description

@PolGraphic

Hi.
I've compiled the libpsmoveapi_tracker.dll from psmoveapi. The PS Move is already working fine, but now I wanted to use the tracker.

I am working in Unity 5.0.1. The problem is, when I call to either psmove_tracker_new or psmove_tracker_new_with_camera (with parameter 0 or 1 as I have both PS Eye and default laptop camera attached), the Unity project freezes along with the Unity itself (infinite loop, another thread or something?).

I guess that the psmove_tracker_new should either success or fail, not freeze the application.

The situation is exactly the same for both connected and disconnected PS Eye.

I've installed the PS Move (I already have an working orientation/buttons/bulb color in Unity) & PS Eye property.

I work with x64 code / DLLs, on Windows 8.1 x64.
I use libusbK and not the CL Eye Driver. The "frozen" application consumes much of CPU.

While compiling the psmoveapi, I've used:
cmake .. -G "MinGW Makefiles" -DPSMOVE_USE_LOCAL_OPENCV=1.
As cboulay explained in another issue, I've used the option(PSMOVE_USE_MADGWICK_AHRS "Use AHRS algorithm (GPL license)" ON) while compiling the source code.
I was following the great tutorial by cboulay: https://github.com/cboulay/psmove-ue4/wiki/Windows-PSEye-Setup


When I've added some printf to the code, I see that those lines of psmove_tracker.c are responsible for infinite loop:

IplImage* frame = NULL; while (!frame) { frame = camera_control_query_frame(tracker->cc, NULL, NULL); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions