djemta / tonatiuh

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

tonatiuh.SetSunshape("Pillbox_Sunshape") crashes Tonatiuh 1.2.6 #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start Tonatiuh binary executable
2. Load attached script issue61.tnhs
3. Run script.
4. Edit script by uncommenting line #2: tonatiuh.SetSunshape("Pillbox_Sunshape")
5. Run script.

What is the expected output? What do you see instead?
expect: scene looks same after step 3 and step 5.
observe: step 3 runs fine, step 5 crashes program with "Segmentation fault".

What version of the product are you using? On what operating system?
Tonatiuh-linux64-1.2.6 on SLES11SP2 with SLE11_SDK_SP1

Please provide any additional information below.
When run in a debugger (gdb) the segmentation fault occurs in 
TSceneKit::GetSoPath() at TSceneKit.cpp:line 83. The variable 
nodePath.nodes.SoBaseList.SbPList.builtinbuffer reports "Error: Failed to 
execute MI command [...]"
I can not rule out that there is an issue with the general design of my script, 
but I am still learning.

Original issue reported on code.google.com by schnfx...@googlemail.com on 4 Apr 2012 at 8:06

Attachments:

GoogleCodeExporter commented 8 years ago
Hello Felix,

There are some problems on your script that are avoiding the correct running of 
Tonatiuh. There are two important problems, both of them, related with trackers:

1-)Trackers can not be copied. The main reason is because, when they are 
oriented following the sun, they have to be moved in differents directions but 
it is not posible if they are from the same tracker copy. Tonatiuh is crashing 
because of that so we have to improve that in the source code.

2-)You have not created the correct number of TSeparatorKits before defining 
the Heliostat_Tracker. In your script, when the tracker is oriented, the 
position of the heliostats is going to change to the root node translation.
Another tracker needs to be added before defining the Heliostat_tracker. I will 
try to explain them better in the following weeks.

The attached file might help you.

Best regards,
Sergio

Original comment by sergio.g...@gmail.com on 4 Apr 2012 at 4:02

Attachments:

GoogleCodeExporter commented 8 years ago
Dear Sergio,

thanks for your response. It seems that I am still at the bottom of the 
"learning curve". But I try to climb fast.

Regards,
Felix

Original comment by schnfx...@googlemail.com on 5 Apr 2012 at 7:25