Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Atomspace Backward Chaining Example #830

Closed
dai-dao opened this issue Jul 11, 2016 · 4 comments
Closed

Bug in Atomspace Backward Chaining Example #830

dai-dao opened this issue Jul 11, 2016 · 4 comments

Comments

@dai-dao
Copy link

dai-dao commented Jul 11, 2016

Hi,

I have successfully built atomspace. Then I have to make the c++-api example separately, which was also successful.

When I run the ureexample, which is the backward chaining Criminal Example, I got this error:

terminate called after throwing an instance of 'opencog::RuntimeException'
  what():  UREConfigReader - invalid rulebase specified! (~/Desktop/OPENCOG/atomspace/opencog/rule-engine/UREConfigReader.cc:39)

Any tips on how to debug this? I'd really appreciate it

Thanks

@ngeiswei
Copy link
Member

Hi, thanks for pointing this out. The backward chainer is currently broken and in the middle of being recoded. Once ready I'll revisit this example to fix it. Should be ready in a few weeks to a few months.

@dai-dao
Copy link
Author

dai-dao commented Jul 11, 2016

I've determined the issue is the c++ function to retrieve the Node handle from atom space. For some reason the return is null. Could you give some pointers about debugging atomspace scheme?

@linas
Copy link
Member

linas commented Jul 12, 2016

The handle is presumably null, because no such atom, of the given name, exists. Probably because there is a typo in the name of the rulebse being accessed. You should be able to find a stack trace in the opencog.log file.

@dai-dao
Copy link
Author

dai-dao commented Jul 12, 2016

I needed to change the relative paths to the relevant .scm file, and that error goes away. However I encountered another error:

Variable not groundable: (VariableNode "$A") ; [46][1]

which is invoked in the c++ backchainer code somewhere.

Closing this issue since there's already similar issues #172, #132. Potential fix is possibly deep inside the scheme code

@dai-dao dai-dao closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants