Depth Buffer Corrupt on Mac

90 views
Skip to first unread message

Taylor Veltrop

unread,
Mar 3, 2012, 9:01:36 PM3/3/12
to OpenNI
The problem seems to be here: 3253922 WARNING Read: Depth buffer
is corrupt. Size is 0 (!= 614400)

The full log plus the configuration file follows. Any idea how to
proceed?

934 INFO New log started on 2012-02-25 20:14:41
962 INFO OpenNI version is 1.5.2 (Build 23)-MacOSX (Dec 28
2011 17:54:37)
971 INFO --- Filter Info --- Minimum Severity: INFO
32984 INFO Creating node 'Script1' of type Script: OpenNI/
OpenNI/1.5.2.23...
33562 INFO USB is initialized.
577938 WARNING No PS sensor is connected!
2094967 WARNING No PS sensor is connected!
2095031 INFO Creating node 'Device1' of type Device:
PrimeSense/SensorV2/5.1.0.41...
2096818 INFO Module 'Device' configuration was loaded from
file.
2647896 INFO Connected to USB device
2647923 INFO Property Device.USBPath was changed to
1d27/0600@38/2.
2659456 INFO Hardware versions: FW=5.3.26 (9) HW=2 Chip=2
Sensor=1 SYS=14
2836686 INFO Property Device.PhysicalDeviceName was changed
to PrimeSense RD1.08x.
2836740 INFO Property Device.VendorSpecificData was changed
to PS1080SOC.
2836762 INFO Property Device.ID was changed to 1112240017.
2836805 INFO Device sensor initialized
2837093 INFO Creating node 'Depth1' of type Depth:
PrimeSense/SensorV2/5.1.0.41...
2837187 INFO Creating stream 'Depth1' of type 'Depth'...
2837212 INFO Setting Device.ReadData to 1...
2843137 INFO Endpoints open
2844400 INFO Property Device.ReadData was changed to 1.
2844418 INFO Device.ReadData was successfully set.
2845054 INFO Property Depth1.Resolution was changed to QVGA.
2845071 INFO Property Depth1.XRes was changed to 320.
2845081 INFO Property Depth1.YRes was changed to 240.
2845090 INFO Property Depth1.FPS was changed to 30.
2845098 INFO Property Depth1.OutputFormat was changed to 1.
2845106 INFO Property Depth1.BytesPerPixel was changed to 2.
2845115 INFO Property Depth1.RequiredDataSize was changed to
153600.
2845124 INFO Property Depth1.ParamCoeff was changed to 4.
2845187 INFO Property Depth1.ShiftScale was changed to 10.
2854666 INFO Property Depth1.ConstShift was changed to 200.
2854762 INFO Property Depth1.ZPD was changed to 120.
2854885 INFO Property Depth1.ZPPS was changed to 0.105200.
2854896 INFO Property Depth1.LDDIS was changed to 7.500000.
2854992 INFO Property Depth1.DCRCDIS was changed to
2.630000.
2855084 INFO Property Depth1.Gain was changed to 42.
2855108 INFO Property Depth1.SupportedModesCount was changed
to 9.
2855118 INFO Property Depth1.SupportedModesCount was changed
to 15.
2855131 INFO Stream 'Depth1' was initialized.
2855145 INFO 'Depth1' stream was created.
2857128 INFO Module 'Depth1' configuration was loaded from
file.
2857353 INFO Setting Depth1.FPS to 30...
2857363 INFO Depth1.FPS value did not change.
2857371 INFO Setting Depth1.YRes to 480...
2857379 INFO Property Depth1.Resolution was changed to
Custom.
2857389 INFO Property Depth1.YRes was changed to 480.
2857398 INFO Property Depth1.RequiredDataSize was changed to
307200.
2857408 INFO Depth1.YRes was successfully set.
2857416 INFO Setting Depth1.XRes to 640...
2857423 INFO Property Depth1.Resolution was changed to VGA.
2857431 INFO Property Depth1.XRes was changed to 640.
2857439 INFO Property Depth1.RequiredDataSize was changed to
614400.
2857448 INFO Depth1.XRes was successfully set.
2857491 INFO Setting Depth1.Mirror to 1...
2857500 INFO Property Depth1.FirmwareMirror was changed to
1.
2857509 INFO Property Depth1.Mirror was changed to 1.
2857515 INFO Depth1.Mirror was successfully set.
2865942 INFO USB read thread was started.
2865960 INFO Property Depth1.ActualReadData was changed to
1.
3229536 INFO Property Depth1.State was changed to 1.
3229562 INFO Stream Depth1 is open.
3229957 WARNING Depth: Expected 1, got 3
3229969 WARNING Depth frame is corrupt!
3253922 WARNING Read: Depth buffer is corrupt. Size is 0 (!=
614400)
3652494 WARNING No PS sensor is connected!
4189631 WARNING No PS sensor is connected!
4724636 WARNING No PS sensor is connected!
5259643 WARNING No PS sensor is connected!
5259737 INFO Creating node 'Gesture1' of type Gesture:
PrimeSense/XnVGestureGenerator/1.5.2.21...
5268207 INFO Creating node 'Scene1' of type Scene:
PrimeSense/XnVSceneAnalyzer/1.5.2.21...
5286228 INFO Creating node 'User1' of type User: PrimeSense/
XnVSkeletonGenerator/1.5.2.21...


<OpenNI>

<Licenses>
<License vendor="PrimeSense"
key="0KOIk2JeIBYClPWVnMoRKn5cdY4=" />
</
Licenses>
<Log writeToConsole="true"
writeToFile="false">
<LogLevel value="1"/
>

<Masks>
<Mask name="ALL" on="true"/
>
</
Masks>

<Dumps>
</
Dumps>
</
Log>

<ProductionNodes>
<Node type="Depth"
name="Depth1">

<Configuration>
<MapOutputMode xRes="640" yRes="480" FPS="30"/>
<Mirror on="true"/
>
</
Configuration>
</
Node>
</
ProductionNodes>
</OpenNI>

Taylor Veltrop

unread,
Mar 5, 2012, 2:59:17 PM3/5/12
to OpenNI
Ok, got this working now.

It turned out to be a pthread problem.  In Linux, sending an empty but initialized pthread_attr to pthread_create() was fine.  But on Mac I had to set that to NULL.  I thought the thread creation was failing because of a kinect init failure, but it turns out that the failed thread creation was causing a producer/consumer problem on the kinect.
Reply all
Reply to author
Forward
0 new messages