Error opening database/parameters file.

370 views
Skip to first unread message

Zouch

unread,
May 30, 2012, 11:33:47 AM5/30/12
to openn...@googlegroups.com
Hello there,

I've got an awfull bug with my OpenNI code and I really can't solve it.
I have made the samples work correctly (now I've also got the error for them).

When I juste copy paste the samples code (and the SampleConfig.xml) in my main.cpp the program crashes after a 

Reading config from: '../data/SamplesConfig.xml'

Error opening database/parameters file.

The code crashes on 
nRetVal = g_Context.FindExistingNode(XN_NODE_TYPE_USER, g_UserGenerator);
  if (nRetVal != XN_STATUS_OK)
    {
      nRetVal = g_UserGenerator.Create(g_Context);
      CHECK_RC(nRetVal, "Find user generator");
    }

(And exactly on nRetVal = g_UserGenerator.Create(g_Context); )

I couldn't find anything with Google, I hope you will be able to help me ...

Thanks,
Zouch

Zouch

unread,
May 30, 2012, 1:27:00 PM5/30/12
to openn...@googlegroups.com
I think I've forgotten some things ...

So I run the latest openni (unstable) from an Ubuntu 64 bits (12.04), with SensorKinect (also unstable).

I use cmake and make to compile.

If you need some code I'll attach it.
 
Thanks in advance,
Zouch

Charly

unread,
May 31, 2012, 3:39:18 AM5/31/12
to openn...@googlegroups.com
Well, I've executed install.sh one more time and it works fine. I don't know what this message means but a reinstall fixes it ...

Zouch

2012/5/30 Zouch <zou...@gmail.com>

--
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/-/W055Gf2km_oJ.

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.



--
Charly Mourglia

Xavier Mendez

unread,
Jun 7, 2012, 12:15:15 PM6/7/12
to openn...@googlegroups.com
That's strange.
If the create() function is called, it means
the UserGenerator isn't created by your
XML configuration, or it can't be found.

For curiosity, can you post SamplesConfig.xml?

Also, are you saying that your program crashes on create()?
Or it returns a status code != 0?

2012/5/31 Charly <zou...@gmail.com>

criatura

unread,
Jul 23, 2012, 11:00:34 PM7/23/12
to openn...@googlegroups.com
I got the same error:

Error opening database/parameters file.

Is a problem of permissions, because when I run the application with sudo, the error doesn't occur.
Reply all
Reply to author
Forward
0 new messages