From: Yuan X. <xuy...@gm...> - 2007-03-14 05:54:37
|
Hi all, I have just create a new thread for agent control, but when a agent connect, the error occurred: #<SystemStackError: (eval):30: stack level too deep> from (eval):30 (RubySceneImporter) ERROR: in file 'rsg/boxspheres/box.rsg': failed to eval expression 0 + 0.3425 + 0.06 (SceneServer) ERROR: cannot import scene file 'rsg/agent/soccerbot.rsg' but try connect again, it is OK, and the next agent connection is failed, next success... It seems that the rb_eval_string_protect is not thread safe, should I lock the thread to make sure only one thread working? or there is another solution? I really do not know Ruby, please help me. -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |