installation failed could not register module with openni

1,534 views
Skip to first unread message

APRON MAN

unread,
Jan 7, 2011, 2:50:30 PM1/7/11
to OpenNI
ok when i install the sensor kinect thing i alwase get the
installation failed could not register module with openni error i have
openni installed but the nireg.exe doesnt work

OctoPTibz

unread,
Jan 7, 2011, 5:40:57 PM1/7/11
to OpenNI
I'm having this same problem with the new Beta release. The updated
binary just came out yesterday though so I assume it will be fixed
sometime soon?

Rui Marinho

unread,
Jan 8, 2011, 5:28:46 PM1/8/11
to OpenNI
i have the same issue, but if i install the openi unstable first
(windows) that issue goes away, but the sensor folder in primesense
doesn't have all the info like the samplexmls

is something missing in this release?
> > openni installed but the nireg.exe doesnt work- Ocultar texto citado -
>
> - Mostrar texto citado -

Ziv Hendel

unread,
Jan 9, 2011, 6:20:54 PM1/9/11
to OpenNI
Hi Apron!
If you run niReg from the command line, does it work for you?

Thanks,
Ziv.

Ziv Hendel

unread,
Jan 9, 2011, 6:23:51 PM1/9/11
to OpenNI
Hi Rui!
The sensor driver that's provided by PrimeSense is for the PSDK5.0
hardware (which is also supplied by PrimeSense).
When you use the PS hardware, you do not need to make any changes to
XMLs, therefore no XMLs are supplied.

Thanks,
Ziv.

APRON MAN

unread,
Jan 10, 2011, 9:01:29 AM1/10/11
to OpenNI
i tryd running niReg from the command line it still doesnt work

laurentR

unread,
Jan 10, 2011, 11:42:48 AM1/10/11
to OpenNI
hi Zvi ,
im having the same problem as Apron,
cant run niReg, i'm trying to figure it out by debugging the
source .... i'll keep you posted

Ziv Hendel

unread,
Jan 10, 2011, 12:48:49 PM1/10/11
to OpenNI
But can you please post exactly what happens when you run niReg?

Does it say that the command is not found?
Does it say some other error?

This will help us to debug your problem...

Thanks,
Ziv.

APRON MAN

unread,
Jan 11, 2011, 8:44:51 AM1/11/11
to OpenNI
this error comes up saying "The application failed to initialize
properly (0xc000001d). Click on OK to terminate the application."

laurentR

unread,
Jan 11, 2011, 10:44:39 AM1/11/11
to OpenNI
Hi all ,
ive downloaded the OpenNI-Bin-Win32-v1.0.0.25 unstable version, and
typed nireg -l.
which gave me an empty list of registered modules .
i tried then to run nireg . here is the result :

C:\Program Files (x86)\OpenNI\Bin>nireg -v "C:\Program Files
(x86)\OpenNI\Data\modules.xml"
218 [INFO] OpenNI version is 1.0.0 (Build 25)-Win32 (Jan
6 2011 00:42:40)
Failed: Failed to write to the file!

hope this helps .
im running it on windows 7, 64 bit.
laurent
PS : thx a lot for the help ..
PPS: the build 25 , registers eveyrthing properly on XP 32 ..

On 11 jan, 08:44, APRON MAN <t-bone...@hotmail.com> wrote:
> this error comes up saying "The application failed to initialize
> properly (0xc000001d). Click on OK to terminate the application."
>
> On Jan 10, 11:48 am, Ziv Hendel <z...@openni.org> wrote:
>
> > But can you please post exactly what happens when you runniReg?
>
> > Does it say that the command is not found?
> > Does it say some other error?
>
> > This will help us to debug your problem...
>
> > Thanks,
> > Ziv.
>
> > On Jan 10, 4:01 pm, APRON MAN <t-bone...@hotmail.com> wrote:
>
> > > i tryd runningniRegfrom the command line it still doesnt work
>
> > > On Jan 9, 5:20 pm, Ziv Hendel <z...@openni.org> wrote:
>
> > > > Hi Apron!
> > > > If you runniRegfrom the command line, does it work for you?

Ziv Hendel

unread,
Jan 11, 2011, 6:04:55 PM1/11/11
to OpenNI
Hi Apron!

0xc000001d means that the CPU tried to execute an illegal
instructions.

OpenNI & NITE requires a CPU with the SSE3 instruction set extension.

It seems that you do not have one and this is causing the problem.

Can you please tell me the exact model of the CPU you have to make
sure this is indeed the problem?

Thanks,
Ziv.

Ziv Hendel

unread,
Jan 11, 2011, 6:12:47 PM1/11/11
to OpenNI
Hi Laurent!

As you can see from the error message, it seems that you don't have
write permissions for the "C:\Program Files (x86)\OpenNI\Data
\modules.xml" file.

This usually happens if:
1) You installed OpenNI as a user without administrator permissions.
2) You are running niReg with a user without administrator
permissions.
3) UAC (User Access Control) is turned on, which by default blocks
write access to the "Program Files" directory, even if you have
administrator permissions.
You can turn off UAC by following:
http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Control-on-or-off

Thanks,
Ziv.

laurentR

unread,
Jan 11, 2011, 7:33:29 PM1/11/11
to OpenNI
hi zvi,
thx for the info i will double check this tomorrow ... kind of late
now in montreal ;-)
dont you love 24/7 software development ? ;-)

On 11 jan, 18:12, Ziv Hendel <z...@openni.org> wrote:
> Hi Laurent!
>
> As you can see from the error message, it seems that you don't have
> write permissions for the "C:\Program Files (x86)\OpenNI\Data
> \modules.xml" file.
>
> This usually happens if:
> 1) You installed OpenNI as a user without administrator permissions.
> 2) You are running niReg with a user without administrator
> permissions.
> 3) UAC (User Access Control) is turned on, which by default blocks
> write access to the "Program Files" directory, even if you have
> administrator permissions.
>     You can turn off UAC by following:http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Co...

APRON MAN

unread,
Jan 12, 2011, 1:10:12 AM1/12/11
to OpenNI
my pc is pretty old and i dont remember the cpu but here is what CPU-Z
told me (this is everthing it says about my cpu including thread
dumps)

Number of cores 1 (max 1)
Number of threads 1 (max 1)
Name AMD Athlon XP-M
Codename Barton
Specification AMD Athlon(tm) XP 2800+
Package Socket A (462)
CPUID 6.A.0
Extended CPUID 7.A
Core Stepping
Technology 0.13 um
Core Speed 2125.0 MHz
Multiplier x FSB 16.0 x 132.8 MHz
Rated Bus speed 265.6 MHz
Instructions sets MMX (+), 3DNow! (+), SSE
L1 Data cache 64 KBytes, 2-way set associative, 64-byte line size
L1 Instruction cache 64 KBytes, 2-way set associative, 64-byte line
size
L2 cache 512 KBytes, 16-way set associative, 64-byte line size
FID/VID Control yes
Max FID 16.0x
Max VID 1.550 V

K7 Thermal sensor yes


Thread dumps
-------------------------------------------------------------------------

CPU Thread 0
APIC ID 0
Topology Processor ID 0, Core ID 0, Thread ID 0
Type 02001002h
Max CPUID level 00000001h
Max CPUID ext. level 80000008h
Cache descriptor Level 1, I, 64 KB, 1 thread(s)
Cache descriptor Level 1, D, 64 KB, 1 thread(s)
Cache descriptor Level 2, U, 512 KB, 1 thread(s)

CPUID
0x00000000 0x00000001 0x68747541 0x444D4163 0x69746E65
0x00000001 0x000006A0 0x00000000 0x00000000 0x0383FBFF
0x80000000 0x80000008 0x68747541 0x444D4163 0x69746E65
0x80000001 0x000007A0 0x00000000 0x00000000 0xC1CBFBFF
0x80000002 0x20444D41 0x6C687441 0x74286E6F 0x5820296D
0x80000003 0x38322050 0x002B3030 0x00000000 0x00000000
0x80000004 0x00000000 0x00000000 0x00000000 0x00000000
0x80000005 0x0408FF08 0xFF20FF10 0x40020140 0x40020140
0x80000006 0x00000000 0x41004100 0x02008140 0x00000000
0x80000007 0x00000000 0x00000000 0x00000000 0x00000007
0x80000008 0x00002022 0x00000000 0x00000000 0x00000000

MSR 0x0000001B 0x00000000 0xFEE00900
MSR 0xC0010114 0xF90D9CA0 0x37373737
MSR 0xC0010015 0x00000000 0x06031008
MSR 0xC0010042 0x00090909 0x001A061A
MSR 0xC0010041 0x00000000 0x0013091A

APRON MAN

unread,
Jan 12, 2011, 1:12:59 AM1/12/11
to OpenNI
i have full admin privilages and i cant find anything to do with UAC
on my pc

On Jan 11, 5:12 pm, Ziv Hendel <z...@openni.org> wrote:
> Hi Laurent!
>
> As you can see from the error message, it seems that you don't have
> write permissions for the "C:\Program Files (x86)\OpenNI\Data
> \modules.xml" file.
>
> This usually happens if:
> 1) You installed OpenNI as a user without administrator permissions.
> 2) You are running niReg with a user without administrator
> permissions.
> 3) UAC (User Access Control) is turned on, which by default blocks
> write access to the "Program Files" directory, even if you have
> administrator permissions.
>     You can turn off UAC by following:http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Co...

laurentR

unread,
Jan 12, 2011, 2:50:23 PM1/12/11
to OpenNI
Hi Zvi,
you were right , as usual : i turned UAC off , et voila !! thx
again ...
back to our regular programming !!!


On 11 jan, 18:12, Ziv Hendel <z...@openni.org> wrote:
> Hi Laurent!
>
> As you can see from the error message, it seems that you don't have
> write permissions for the "C:\Program Files (x86)\OpenNI\Data
> \modules.xml" file.
>
> This usually happens if:
> 1) You installed OpenNI as a user without administrator permissions.
> 2) You are running niReg with a user without administrator
> permissions.
> 3) UAC (User Access Control) is turned on, which by default blocks
> write access to the "Program Files" directory, even if you have
> administrator permissions.
>     You can turn off UAC by following:http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Co...

Iain Sproat

unread,
Jan 15, 2011, 8:31:02 AM1/15/11
to OpenNI
Hi, I'm just starting to work with Kinect on Win32, and have
successfully got the drivers installed (the LED is blinking)

However, I'm experiencing the same issue failed to write to file issue
on registration:
C:\Program Files\OpenNI\Bin>nireg -v "C:\Program Files\OpenNI\Data
\modules.xml"
83 [INFO] OpenNI version is 1.0.0 (Build 25)-Win32 (Jan
6 2011 00
:42:40)
Failed: Failed to write to the file!

I've taken a look at Ziv's suggestions that seemed to have solved
laurentR's issue. Unfortunately:
1) I installed OpenNI, NITE and avin2/SensorKinect on the
administrator account
2) running nireg on the admin account
3) And I'm on Windows XP so UAC shouldn't apply (Is there an
equivalent for XP?).

Any ideas?

Thanks in advance,

Iain

On Jan 11, 11:12 pm, Ziv Hendel <z...@openni.org> wrote:
> Hi Laurent!
>
> As you can see from the error message, it seems that you don't have
> write permissions for the "C:\Program Files (x86)\OpenNI\Data
> \modules.xml" file.
>
> This usually happens if:
> 1) You installed OpenNI as a user without administrator permissions.
> 2) You are running niReg with a user without administrator
> permissions.
> 3) UAC (User Access Control) is turned on, which by default blocks
> write access to the "Program Files" directory, even if you have
> administrator permissions.
>     You can turn off UAC by following:http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Co...
> > > > > > > installation failed could not registermodulewith openni error i have

Ziv Hendel

unread,
Jan 15, 2011, 10:17:24 AM1/15/11
to OpenNI
HI Iain!

Some questions for you:
1) What error do you get when trying the NiViewer sample?
2) Can you post the output of: "niReg -l" ?
3) If you use notepad to edit the file: "C:\Program Files\OpenNI\Data
\modules.xml", can you modify and save it?

Thanks!

Ziv.

Iain Sproat

unread,
Jan 15, 2011, 10:29:57 AM1/15/11
to openn...@googlegroups.com
Ziv, thanks for responding.

1) The strange thing is that if I run the samples from the Start menu
(location "C:\Program Files\OpenNI\Samples\Bin\Release\NiViewer.exe")
it works!

If I try and run the same from the command line I get the following:
C:\Program Files\OpenNI\Samples\Bin\Release>NiViewer.exe
Open failed: OpenNI library can't find any module!
Press any key to continue . . .

Which to me seems strange as to why I would get two different
responses from the same file based on the way of accessing it...

2)
C:\Program Files\OpenNI\Bin>niReg.exe -l
OpenNI version is 1.0.0.25.

Registered modules:


C:\Program Files\OpenNI\Bin>

3) I've just done that and can verify that I can modify and save files
that directory.

Thanks,

Iain

> --
> You received this message because you are subscribed to the Google Groups "OpenNI" group.
> 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.
>
>

Iain Sproat

unread,
Jan 15, 2011, 11:02:15 AM1/15/11
to openn...@googlegroups.com
On Sat, Jan 15, 2011 at 3:29 PM, Iain Sproat <iains...@gmail.com> wrote:
> Ziv, thanks for responding.
>
> 1) The strange thing is that if I run the samples from the Start menu
> (location "C:\Program Files\OpenNI\Samples\Bin\Release\NiViewer.exe")
> it works!

but when trying the NITE samples, they fail from both the Start menu
and the command line.

The error message received when running it from the Command line is:
C:\Program Files\Prime Sense\NITE\Samples\Bin\Release>Sample-PointViewer.exe
InitFromXmlFile failed: OpenNI library can't find any module!

Is this related to the above issue?

Iain

Ziv Hendel

unread,
Jan 16, 2011, 5:44:48 PM1/16/11
to OpenNI
This is very strange!
I've never seen this problem before.

If you type "set" just before you run things that fail from the
command line, do you see this environment variables?
OPEN_NI_BIN=C:\Program Files\OpenNI\Bin
OPEN_NI_INCLUDE=C:\Program Files\OpenNI\Include
OPEN_NI_INSTALL_PATH=C:\Program Files\OpenNI
OPEN_NI_LIB=C:\Program Files\OpenNI\Lib

Thanks,
Ziv.
Reply all
Reply to author
Forward
0 new messages