Closed jorisbontje closed 8 years ago
Nice catch, thanks a lot! :) Will have a look at it as soon as back in working mode.
Update on this issue with 9099668fbbc6efdd8618872afb0324b9fcbdd933 (in patham9's PR repo)
mids@ubuntu-2gb-ams2-01:~/opennars2$ lein with-profile production trampoline run -m examples.ircbot
01:10:02.512 [main] INFO c.p.actors.ActorRegistry - Actor registry is co.paralleluniverse.actors.LocalActorRegistry@72998021
Beliefs rules: 3803
Questions rules: 474
Goal rules: 3813
Quests rules: 474
"Elapsed time: 50743.501958 msecs"
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:105] - reset question filter
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:107] - Resetting concepts bagss:
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:109] - c-bag count: 0
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:113] - Reset system Parameters:
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:115] - nars-id: -1
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:117] - nars-time: 0
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:120] - NARS initialising...
16-07-28 05:11:08 ubuntu-2gb-ams2-01 INFO [narjure.core:56] - Initialising system timers...
16-07-28 05:11:09 ubuntu-2gb-ams2-01 INFO [narjure.core:51] - [OK] :inference-timer (20 ms)
16-07-28 05:11:09 ubuntu-2gb-ams2-01 INFO [narjure.core:51] - [OK] :system-timer (25 ms)
16-07-28 05:11:09 ubuntu-2gb-ams2-01 INFO [narjure.core:68] - System timer initialisation complete.
16-07-28 05:11:09 ubuntu-2gb-ams2-01 INFO [narjure.core:128] - NARS initialised.
Connecting... irc.freenode.org
Joining #narstest
NARS hears <{tim} --> quacks>.
NARS hears <duck --> quacks>.
NARS hears <{tim} --> duck>?
NARS answer on <{tim} --> duck>? is <{tim} --> duck>. %1.0;0.44751381215469616%
NARS answer on <{tim} --> duck>? is <{tim} --> duck>. %1.0;0.40276243093922653%
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
java.lang.IllegalStateException: Cycle found in the path [ext-image [* quacks quacks] _ duck]
question unification issue with question [--> [ext-set tim] [ext-image [* quacks quacks] _ [ext-set tim]]]
answer:[--> [ext-set tim] [ext-image [* quacks quacks] [ext-image [* quacks quacks] _ duck] _]]
... etc ...
These are cyclic unifications, we shouldn't print them out as they are just cases where the unifications can not succeed. The StackOverFlow still exists though, will look at it in the next days.
I've been getting something similar running with the TCP implementation:
at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57)
Just kinda shows up randomly. That along with Stack Overflow Errors.
Thats already fixed, my pull request will be ready this month (v2.0.1). On 13 Sep 2016 08:02, "Ryan Peach" notifications@github.com wrote:
I've been getting something similar running with the TCP implementation:
at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57) at narjure.bag.DefaultBag.add_element(bag.clj:57)
Just kinda shows up randomly. That along with Stack Overflow Errors.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/opennars/opennars2/issues/61#issuecomment-246583351, or mute the thread https://github.com/notifications/unsubscribe-auth/AH5qBT0VnJ8ZrWIFCuyodIBL4VmaY1jkks5qpjx3gaJpZM4JS0y1 .
It seems that this indeed fixed it already. If not it will be reopenend.
Using a fresh started ircbot I get an StackOverflowError after the following 3 narsese lines:
This is with
OpenNARS_2.0.0
/ commit 5eac58faf8b51b5870369f57c563ddbb7a706836Full stacktrace: