singnet / opencog

A framework for integrated Artificial Intelligence & Artificial General Intelligence (AGI)
http://wiki.opencog.org/w/Development
Other
14 stars 3 forks source link

GHOST -- (clear) would lead to exception #39

Open EskenderTamrat opened 5 years ago

EskenderTamrat commented 5 years ago

Recreated from https://github.com/opencog/opencog/issues/3061 and https://github.com/opencog/opencog/issues/3312

For clearing the atomspace, one can only restart the cogserver now as OpenPsi is not working well with it. Running ghost-parse-file after (clear) would result in the following error.

scheme@(guile-user) > (clear) scheme@(guile-user) > (ghost-parse-file "rule.top")

In ghost.scm: 258:2 4 (ghost-parse-file ) In system/base/lalr.upstream.scm: 1956:16 3 ( ) In opencog/ghost/cs-parse.scm: 290:8 2 ( #(0 #t 25 #<lexical-token category: TOPIC source: #<source-location input: "/root/ghost/chatru…> …) …) In opencog/ghost/translator.scm: 810:2 1 (create-topic ) In unknown file: 0 (cog-set-value! (ConceptNode "GHOST introductions")

@leungmanhin Any pointers on this one? ,d cog-atomspace-clear remove atoms from atomspace but once you call (clear) you've to restart the cogserver.

amebel commented 5 years ago

see https://github.com/opencog/atomspace/blob/master/examples/atomspace/copy-on-write.scm for https://github.com/opencog/opencog/issues/3061