azzaaliabdelaziz / opensim4opencog

Automatically exported from code.google.com/p/opensim4opencog
1 stars 0 forks source link

botconfig.xml and prolog create separate ClientManager #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. edit botconfig.xml so it defines a bot to be logged in at start.
2. Setup and run the hillpeople.pl example, which tries to log in bots.

EXPECTED: normal run
OBSERVED: lots of debug messages about only wanting one ClientManager followed 
by crash

Original issue reported on code.google.com by anneogb...@gmail.com on 10 May 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Actually, it's a case of logging bots on too fast. Staggering them every 30 
seconds is what cures it.   So the latest hillpeople.pl no longer generates the 
error.

But the code still needs some mutex, or ClientManager needs to implement 
singleton properly.

Original comment by anneogb...@gmail.com on 10 May 2012 at 3:42

GoogleCodeExporter commented 9 years ago
SVN Revision 2760 should fix this (I was locking the creation of client manager 
but not the getter)

Original comment by logicmoo@gmail.com on 10 May 2012 at 5:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please verify and close if the fix worked

Original comment by logicmoo@gmail.com on 10 May 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Please verify and close if the fix worked

Original comment by logicmoo@gmail.com on 10 May 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Reopening because:

1). having a default autologon bot in botconfig.xml still triggers this.

2). removing the sleep(30) indeed has different behavior now, but now it 
rapidly tries to log on 3 bots and hangs somewhere. The bots never actually 
appear

sysadmin note, you now have your own set of bots, with same first name, but
Dougstribe  instead of Hillperson as last name, same pw as mine.

Original comment by anneogb...@gmail.com on 10 May 2012 at 9:28

GoogleCodeExporter commented 9 years ago
Even more mysteriousness.
I've now managed ot make it happen with no bots in botconfig.xml and the 30 sec 
delay in. Now yells about no foreign PL - dialog box.
wondering if the rebuild updating to 2760 did something?

Wonder if we're somehow messing up state on server?

Opensim console

17:04:06 - [LLUDPSERVER]: Ack timeout, disconnecting 
3df3f660-b829-4a05-a240-c30cd89f411b
17:04:06 - [CLIENT]: Close has been called for Onosideboard Hillperson attached 
to scene annies haven II
17:04:06 - [PRESENCE SERVICE]: Session 0d5f5da6-1dfa-4f22-9be2-cc3b9c7f702d 
logout
17:04:06 - [GRID USER SERVICE]: User 3df3f660-b829-4a05-a240-c30cd89f411b is 
offline
17:04:06 - [SCENE]: Removing root agent 3df3f660-b829-4a05-a240-c30cd89f411b 
from region annies haven II
17:04:06 - [INTERGRID]: Sending close agent 
3df3f660-b829-4a05-a240-c30cd89f411b to region at 1000-1000
17:04:06 - [INTERGRID]: Sending close agent 
3df3f660-b829-4a05-a240-c30cd89f411b to region at 1001-1000
17:04:06 - [INTERGRID]: Sending close agent 
3df3f660-b829-4a05-a240-c30cd89f411b to region at 1001-1001
17:04:06 - [CLIENT]: Close has been called for Onosideboard Hillperson attached 
to scene annies haven III
17:04:06 - [CLIENT]: Close has been called for Onosideboard Hillperson attached 
to scene annies haven IV
17:04:06 - [SCENE]: Removing child agent 3df3f660-b829-4a05-a240-c30cd89f411b 
from region annies haven IV
17:04:06 - [SCENE]: Removing child agent 3df3f660-b829-4a05-a240-c30cd89f411b 
from region annies haven III
17:04:06 - [CAPS]: Received request to remove CAPS handler for root agent 
3df3f660-b829-4a05-a240-c30cd89f411b in annies haven IV, but no such CAPS 
handler found!
17:04:06 - [CAPS]: Received request to remove CAPS handler for root agent 
3df3f660-b829-4a05-a240-c30cd89f411b in annies haven III, but no such CAPS 
handler found!
17:04:08 - [WATCHDOG]: Timeout detected for thread "Outgoing Packets (annies 
haven IV)". ThreadState=WaitSleepJoin. Last tick was 6683ms ago
17:04:11 - [SCENE GRAPH]: Tried to remove non-existent scene presence with 
agent ID 3df3f660-b829-4a05-a240-c30cd89f411b from scene Entities list
17:04:11 - [SCENE GRAPH]: Tried to remove non-existent scene presence with 
agent ID 3df3f660-b829-4a05-a240-c30cd89f411b from scene ScenePresences list
17:04:11 - [SCENE GRAPH]: Tried to remove non-existent scene presence with 
agent ID 3df3f660-b829-4a05-a240-c30cd89f411b from scene Entities list
17:04:11 - [SCENE GRAPH]: Tried to remove non-existent scene presence with 
agent ID 3df3f660-b829-4a05-a240-c30cd89f411b from scene ScenePresences list
Region (annies haven II) #

Original comment by anneogb...@gmail.com on 10 May 2012 at 9:40

GoogleCodeExporter commented 9 years ago
This is fixed

Original comment by logicmoo@gmail.com on 1 Jul 2012 at 8:38