scheme@(guile-user)> (use-modules (opencog)
(opencog nlp relex2logic)
(opencog openpsi)
(opencog eva-behavior)
(opencog ghost))
scheme@(guile-user)> (ghost-parse "s: (hi robot) Hello human")
[2018-01-30 22:25:46:462] [WARN] [GHOST] Did you forget to link a goal to the rule?
$1 = #t
scheme@(guile-user)> (ghost-parse "concept: ~young (child kid youngster)")
$2 = #t
scheme@(guile-user)> (test-ghost "hi robot good morning")
[2018-01-30 22:26:04:431] [INFO] [GHOST] Say: "Hello human"
scheme@(guile-user)> (test-ghost "hi robot good morning")
scheme@(guile-user)>
scheme@(guile-user)> (use-modules (opencog)
(opencog nlp relex2logic)
(opencog openpsi)
(opencog eva-behavior)
(opencog ghost))
scheme@(guile-user)> (ghost-parse "s: (hi robot) Hello human")
[2018-01-30 22:26:49:038] [WARN] [GHOST] Did you forget to link a goal to the rule?
$1 = #t
scheme@(guile-user)> (ghost-parse "concept: ~young (child kid youngster)")
$2 = #t
scheme@(guile-user)> (ghost-run)
$3 = #<thread 140098361210624 (254e8c0)>
scheme@(guile-user)> (ghost "hi robot good morning")
$4 = (StateLink
(AnchorNode "GHOST Currently Processing")
(SentenceNode "sentence@812d10bb-f1db-440f-a940-c59ab9427a25")
)
scheme@(guile-user)> [2018-01-30 22:27:24:115] [INFO] [GHOST] Say: "Hello human"
(ghost "hi robot good morning")
$5 = (StateLink
(AnchorNode "GHOST Currently Processing")
(SentenceNode "sentence@e2092ba1-eb11-4a57-8922-338231efca67")
)
scheme@(guile-user)> (quit)
Segmentation fault (core dumped)
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/6df7e704-6edf-432b-b53b-d59a3879b2a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For question 2, the segfault is caused by interrupting the process, it can be avoided by stopping the psi-loop first (by doing `(ghost-halt)`) before quitting Guile.
Why would that cause a seg-fault? I'm guessing there needs to be some cleanup,
some kind of RAII (resource acquisition is initalization) issue here?
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAMfi0B%2BL0KxM1Y9yssaUaSV6XL0HbW1_O1HhUwMu-VYtGM7XFg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAHrUA36MJSt7awu7X%3D%3DZ1UKsjwYwu7-78BHBPmHbG%2BFow2Yv5A%40mail.gmail.com.
OK will see if it still crashes once that's fixed: https://github.com/opencog/opencog/issues/2991
On Mon, Feb 5, 2018 at 3:27 PM, Linas Vepstas <linasv...@gmail.com> wrote:
On Sun, Feb 4, 2018 at 10:41 PM, Leung Man Hin <manhi...@gmail.com> wrote:Why would that cause a seg-fault? I'm guessing there needs to be some cleanup,
some kind of RAII (resource acquisition is initalization) issue here?It seems so, I'll look into thisOh hang on, I think I know what this is -- its an openpsi issue, I opened a bug report for it last week. The openpsi C++ class is declaring some globals that hold handles.--linas
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAMfi0B%2BL0KxM1Y9yssaUaSV6XL0HbW1_O1HhUwMu-VYtGM7XFg%40mail.gmail.com.
--cassette tapes - analog TV - film cameras - you
--
You received this message because you are subscribed to the Google Groups "opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.