Skip to content

Protonect ignores ^C #598

@hanyazou

Description

@hanyazou

Overview Description:
The Protonect does not show the window nor images and ignore ^C and ESC key though kill command and ^\ can stop the Protonect.

Version, Platform, and Hardware Bug Found:

  1. git log -1 --oneline

    9c80ccd usb: Issue reboot command on Mac OS X

  2. uname -a

    Darwin iMac.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64

  3. lsusb -t

    Bus 000.Dev 001: USB 2.0 Bus,
    Bus 000.Dev 001: USB 2.0 Bus,
    Bus 000.Dev 001: USB 3.0 Bus,
    |__ Bus 020.Dev 018: NuiSensor Adaptor, 480M
    |__ Bus 020.Dev 026: iPad, 480M
    |__ Bus 020.Dev 019: NuiSensor Adaptor, 5G
    |__ Bus 020.Dev 003: Xbox NUI Sensor, 5G
    |__ Bus 026.Dev 001: Hub, 480M
    |__ Bus 026.Dev 002: FaceTime HD Camera (Built-in), 480M
    |__ Bus 029.Dev 001: Hub, 480M
    |__ Bus 029.Dev 002: Hub, 480M
    |__ Bus 029.Dev 003: BRCM20702 Hub, 12M
    |__ Bus 029.Dev 006: Bluetooth USB Host Controller, 12M

  4. lspci -nn

    lspci: command not found

Steps to Reproduce:

  1. execute ./bin/Protonect
  2. hit control + C key
  3. repeat 1. and 2.

Actual Results:
Protonect does not show the window nor any images and ignores ^C

Expected Results:
show the window and image and stop when I hit ^C

Reproducibility:
1/100~1/1000

Additional Information:
The Protonect seems not to receive any frames at all though no error messages were displayed. So listener.waitForNewFrame(frames); in the main loop won't return and the variable protonect_shutdown could not take effect.

It might be better to use SyncMultiFrameListener::waitForNewFrame(FrameMap &frame, int milliseconds) instead. But that is not implemented on Mac OS X (and Windows?). It seems that we should add wait(_mutexT &aMutex, const libfreenect2::chrono::duration& rel_time) in tinythread.h at first.

Any comments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions