From: Hedayat V. <hed...@ai...> - 2007-06-04 13:16:01
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body dir="ltr" bgcolor="#ffffff" text="#000000"> <p style="margin-bottom: 0cm; margin-top: 0pt;"><small><font size="+1"><small>Hi,<br> </small></font></small>I can't run monitor spark, it crashes. I've sent the full report as a bug in sserver.sf.net. I've tested it on many computers but it crashes in all of them. I think that all of them were Fedora. Personally I use FC5. Also, I configure my server using --enable-debug=no option.</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">Today, I've tried to find the source of the problem. The problem is related to this line in both sparkSetupMonitor & sparkSetupMonitorLogPlayer (in spark.rb):</p> <p style="margin-bottom: 0cm; margin-top: 0pt;">rubySceneImporter.setUnlinkOnCompleteScenes(true);</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">With this line, the monitorspark crashes on this line in soccersim.rb:</p> <p style="margin-bottom: 0cm; margin-top: 0pt;">line 57: scene.importScene('rsg/agent/soccer.rsg')</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">The problem arises in RubySceneImporter::ParseScene:</p> <p style="margin-bottom: 0cm; margin-top: 0pt;">line 195: root->UnlinkChildren();</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">It seems that it causes the dBodyDestroy() function to be called on a previously destroyed body.</p> <p style="margin-bottom: 0cm; margin-top: 0pt;">When I comment the rubySceneImporter.setUnlinkOnCompleteScenes(true); line in spark.rb, the monitorspark doesn't crash anymore.</p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">Cheers,</p> <p style="margin-bottom: 0cm; margin-top: 0pt;">Hedayat<br> </p> </body> </html> |