From: Joschka B. <jbo...@un...> - 2007-06-04 15:29:25
|
Hi Hedayat, Hedayat Vatankhah wrote: > > Hi, > I can't run monitor spark, it crashes. I've sent the full report as a > bug in sserver.sf.net. > Thanks for the bug report. > 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. > > I can't reproduce the crash on my Ubuntu 7.04 laptop (Ruby 1.8.5 (Ubuntu package), ODE 0.8 (compiled from source) and gcc 4.1.2 (Ubuntu package)). With the latest CVS version, everything runs fine for me. I use standard configure options though, I can try to set debug to no tomorrow. > 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): > > rubySceneImporter.setUnlinkOnCompleteScenes(true); > > > With this line, the monitorspark crashes on this line in soccersim.rb: > > line 57: scene.importScene('rsg/agent/soccer.rsg') > > > The problem arises in RubySceneImporter::ParseScene: > > line 195: root->UnlinkChildren(); > > > It seems that it causes the dBodyDestroy() function to be called on a > previously destroyed body. > > When I comment the rubySceneImporter.setUnlinkOnCompleteScenes(true); > line in spark.rb, the monitorspark doesn't crash anymore. > What version of ruby and ODE do you use? Also, what gcc version of gcc do you use? Just to get a better picture... Cheers, Joschka |