Re: [OpenNI-dev] Could not create file '���m ' for shared memory (2) / Failed to open shared memory / Illegal instruction (core dumped)

137 views
Skip to first unread message

Xavier Mendez

unread,
Aug 5, 2012, 3:15:24 AM8/5/12
to openn...@googlegroups.com
Hi,

I also have a similar computer running Ubuntu 12.04, will test.
Maybe you don't have enough free (contiguous) memory available.

2012/8/4 Enver Nurkanovic <shab...@gmail.com>
Hi,

I am trying to run Sample-NiUserTracker with Kinect / OpenNI (latest unstable version) / Sensor Module (avin2, latest unstable) / NITE (latest unstable) on Ubuntu 12.04 (AMD Athlon 64 X2 Dual Core Processor 3800+) and I keep getting the error message:

"Could not create file '���m ' for shared memory (2) / Failed to open shared memory / Illegal instruction (core dumped)"

I have also changed the SSE_GENERATION values to 2 in

<OpenNIFolder>/Platform/Linux/Build/Common/Platform.x86 (which gets included into 'Platform.x64' and the latter into the Makefile)

and

<SensorKinectFolder>/Platform/Linux/Build/Common/Platform.x86 (same as above here...)

I use g++ 4.4, have already installed all the necessary prerequisites (mono, freeglut, libusb etc.) and entered the license key in the XML files - in short: I have done everything I could have found in the internet concerning the proper installation (read, followed and also compared lots of tutorials) - AND I STILL GET THE "Illegal Instruction" message!

Getting really frustrated here... Please help! I don't want to believe that the only solution left is using a computer with an Intel processor - because I had all this functioning properly a couple of months ago (March / April) on Kubuntu 11.10 and a quad-core AMD 64-bit processor (don't remember the exact model) and now it just won't budge! Sample-NiSimpleViewer works fine...


Here's the complete OpenNI output:

      601 INFO       New log started on 2012-08-04 00:48:05
      719 INFO       OpenNI version is 1.5.4 (Build 0)-Linux-x86 (Aug  4 2012 00:19:20)
      751 INFO       --- Filter Info --- Minimum Severity: VERBOSE
      920 VERBOSE    Found exported production node. Script: OpenNI/OpenNI/1.5.4.0
     1283 VERBOSE    Checking /usr/lib/libnimMockNodes.so...
     7316 VERBOSE    Found exported production node. ProductionNode: OpenNI/Mock/1.5.4.0
     7457 VERBOSE    Found exported production node. Generator: OpenNI/Mock/1.5.4.0
     7514 VERBOSE    Found exported production node. MapGenerator: OpenNI/Mock/1.5.4.0
     7570 VERBOSE    Found exported production node. Device: OpenNI/Mock/1.5.4.0
     7620 VERBOSE    Found exported production node. Depth: OpenNI/Mock/1.5.4.0
     7684 VERBOSE    Found exported production node. IR: OpenNI/Mock/1.5.4.0
     7724 VERBOSE    Found exported production node. Image: OpenNI/Mock/1.5.4.0
     7780 VERBOSE    Found exported production node. Audio: OpenNI/Mock/1.5.4.0
     7826 VERBOSE    Checking /usr/lib/libnimCodecs.so...
    10781 VERBOSE    Found exported production node. Codec: OpenNI/16zP/1.5.4.0
    10912 VERBOSE    Found exported production node. Codec: OpenNI/16zT/1.5.4.0
    10948 VERBOSE    Found exported production node. Codec: OpenNI/Im8z/1.5.4.0
    10982 VERBOSE    Found exported production node. Codec: OpenNI/JPEG/1.5.4.0
    11013 VERBOSE    Found exported production node. Codec: OpenNI/NONE/1.5.4.0
    11047 VERBOSE    Checking /usr/lib/libnimRecorder.so...
    13554 VERBOSE    Found exported production node. Recorder: OpenNI/Recorder/1.5.4.0
    13643 VERBOSE    Found exported production node. Player: OpenNI/Player/1.5.4.0
    13681 VERBOSE    Checking /usr/lib/libXnVFeatures_1_3_0.so...
    22164 VERBOSE    Found exported production node. Scene: PrimeSense/XnVSceneAnalyzer/1.3.0.17
    22284 VERBOSE    Found exported production node. User: PrimeSense/XnVSkeletonGenerator/1.3.0.17
    22330 VERBOSE    Checking /usr/lib/libXnVFeatures_1_3_1.so...
    30081 VERBOSE    Found exported production node. Scene: PrimeSense/XnVSceneAnalyzer/1.3.1.8
    30189 VERBOSE    Found exported production node. User: PrimeSense/XnVSkeletonGenerator/1.3.1.8
    30233 VERBOSE    Checking /usr/lib/libXnVFeatures_1_4_1.so...
    37574 VERBOSE    Found exported production node. Scene: PrimeSense/XnVSceneAnalyzer/1.4.1.2
    37678 VERBOSE    Found exported production node. User: PrimeSense/XnVSkeletonGenerator/1.4.1.2
    37723 VERBOSE    Checking /usr/lib/libXnVFeatures_1_4_2.so...
    46544 VERBOSE    Found exported production node. Scene: PrimeSense/XnVSceneAnalyzer/1.4.2.5
    46670 VERBOSE    Found exported production node. User: PrimeSense/XnVSkeletonGenerator/1.4.2.5
    46716 VERBOSE    Checking /usr/lib/libXnVFeatures_1_5_2.so...
    59008 VERBOSE    Found exported production node. Scene: PrimeSense/XnVSceneAnalyzer/1.5.2.21
    59140 VERBOSE    Found exported production node. User: PrimeSense/XnVSkeletonGenerator/1.5.2.21
    59192 VERBOSE    Checking /usr/lib/libXnVHandGenerator_1_3_0.so...
    66338 VERBOSE    Found exported production node. Gesture: PrimeSense/XnVGestureGenrator/1.3.0.17
    66480 VERBOSE    Found exported production node. Hands: PrimeSense/XnVHandTracker/1.3.0.17
    66556 VERBOSE    Checking /usr/lib/libXnVHandGenerator_1_3_1.so...
    73175 VERBOSE    Found exported production node. Gesture: PrimeSense/XnVGestureGenrator/1.3.1.8
    73288 VERBOSE    Found exported production node. Hands: PrimeSense/XnVHandTracker/1.3.1.8
    73330 VERBOSE    Checking /usr/lib/libXnVHandGenerator_1_4_1.so...
    78915 VERBOSE    Found exported production node. Gesture: PrimeSense/XnVGestureGenrator/1.4.1.2
    79028 VERBOSE    Found exported production node. Hands: PrimeSense/XnVHandTracker/1.4.1.2
    79068 VERBOSE    Checking /usr/lib/libXnVHandGenerator_1_4_2.so...
    84782 VERBOSE    Found exported production node. Gesture: PrimeSense/XnVGestureGenrator/1.4.2.5
    84905 VERBOSE    Found exported production node. Hands: PrimeSense/XnVHandTracker/1.4.2.5
    84947 VERBOSE    Checking /usr/lib/libXnVHandGenerator_1_5_2.so...
    90769 VERBOSE    Found exported production node. Gesture: PrimeSense/XnVGestureGenerator/1.5.2.21
    90900 VERBOSE    Found exported production node. Hands: PrimeSense/XnVHandTracker/1.5.2.21
    90942 VERBOSE    Checking /usr/lib/libXnDeviceSensorV2KM.so...
   107613 VERBOSE    Found exported production node. Device: PrimeSense/SensorKinect/5.1.2.1
   107732 VERBOSE    Found exported production node. Depth: PrimeSense/SensorKinect/5.1.2.1
   107774 VERBOSE    Found exported production node. Image: PrimeSense/SensorKinect/5.1.2.1
   107814 VERBOSE    Found exported production node. IR: PrimeSense/SensorKinect/5.1.2.1
   107851 VERBOSE    Found exported production node. Audio: PrimeSense/SensorKinect/5.1.2.1
   107889 VERBOSE    Checking /usr/lib/libXnDeviceFile.so...
   112618 VERBOSE    Found exported production node. Player: PrimeSense/File/5.1.2.1
   112994 INFO       Creating node 'Script1' of type Script: OpenNI/OpenNI/1.5.4.0...
   113404 VERBOSE    Requested to create a node of type Depth...
   113536 VERBOSE    Initializing USB...
   113876 INFO       USB is initialized.
   123203 INFO       Creating node 'Device1' of type Device: PrimeSense/SensorKinect/5.1.2.1...
   123523 WARNING    Open named event: failed to open key file (2) - event might not exist...
   291228 INFO       Property Device.ShareMode was changed to 1.
   291352 INFO       Property Device.ShareMode was changed to 0.
   291763 INFO       Creating node 'MyDepth' of type Depth: PrimeSense/SensorKinect/5.1.2.1...
   291818 VERBOSE    Creating stream MyDepth (of type Depth)
   293783 INFO       Property Device.ReadData was changed to 1.
   309204 INFO       Creating stream 'MyDepth' of type 'Depth'...
   309307 VERBOSE    Initializing stream 'MyDepth'...
   309544 INFO       Property MyDepth.RequiredDataSize was changed to 1228800.
   312581 INFO       Property MyDepth.OutputFormat was changed to 1.
   312658 INFO       Stream 'MyDepth' was initialized.
   312676 INFO       'MyDepth' stream was created.
   313239 VERBOSE    Getting property MyDepth.SupportedModes from server...
   313916 VERBOSE    Setting MyDepth.Mirror to 1...
   314144 INFO       Property MyDepth.Mirror was changed to 1.
   314316 VERBOSE    Requested to create a node of type Image (StopOnError=FALSE)...
   323898 VERBOSE    Getting property Device.ImageSupported from server...
   324214 INFO       Creating node 'Image1' of type Image: PrimeSense/SensorKinect/5.1.2.1...
   324272 VERBOSE    Creating stream Image1 (of type Image)
   326871 INFO       Creating stream 'Image1' of type 'Image'...
   326972 VERBOSE    Initializing stream 'Image1'...
   327082 INFO       Property Image1.RequiredDataSize was changed to 921600.
   329342 INFO       Property Image1.OutputFormat was changed to 5.
   329450 INFO       Stream 'Image1' was initialized.
   329481 INFO       'Image1' stream was created.
   329859 VERBOSE    Getting property Image1.SupportedModes from server...
   330167 VERBOSE    Setting Image1.Mirror to 1...
   330363 INFO       Property Image1.Mirror was changed to 1.
   330507 VERBOSE    Opening stream MyDepth...
   333483 INFO       Property MyDepth.ActualReadData was changed to 1.
   423551 INFO       Property MyDepth.State was changed to 1.
   423602 INFO       Stream MyDepth is open.
   423643 VERBOSE    Opening stream Image1...
   426482 INFO       Property Image1.ActualReadData was changed to 1.
   768657 INFO       Property Image1.State was changed to 1.
   768712 INFO       Stream Image1 is open.
   946377 INFO       Creating node 'Gesture1' of type Gesture: PrimeSense/XnVGestureGenerator/1.5.2.21...
   979390 INFO       Creating node 'Scene1' of type Scene: PrimeSense/XnVSceneAnalyzer/1.5.2.21...
   979683 VERBOSE    Initializing shared memory with identifier: '045e/02ae@2/34'
  1019623 VERBOSE    [FPS] MyDepth (I:  0.00, O:  0.00) Image1 (I:  0.00, O:  0.00) Gesture1 (I:  0.00, O:  0.00) ReadCalls:  0.00
  1027831 INFO       Creating node 'User1' of type User: PrimeSense/XnVSkeletonGenerator/1.5.2.21...
  1875032 VERBOSE    Starting from shared memory
Illegal instruction (core dumped)

--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openni-dev/-/jHxtnpu3FT4J.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.

Enver Nurkanovic

unread,
Aug 5, 2012, 5:27:21 AM8/5/12
to openn...@googlegroups.com
SOLVED! (well, not really but...)

It seems that the new versions were the problem, at least on the two computers I've been working with.

I just used the December 2011 unstable versions of OpenNI / avin2-SensorKinect / NITE with the previously mentioned SSE settings and it worked on both computers (Ubuntu 11.10 / 12.04)!

Thanks for your reply though, jmendeth!!!

Michael

unread,
Aug 13, 2012, 6:08:30 AM8/13/12
to openn...@googlegroups.com, shab...@gmail.com
Hello, could you write what version of NITE,OpenNI,avin2-sensorkinect use?
It's version 1.5.2.23 OpenNi? and 1.5.2.21 Nite? What is the correct version for avin2-sensorkinect?
Tkanks

Dňa nedeľa, 5. augusta 2012 11:27:21 UTC+2 Enver Nurkanovic napísal(-a):
Reply all
Reply to author
Forward
0 new messages