MantisBT - VTK
View Issue Details
0000273VTK(No Category)public2003-10-14 07:052004-02-17 18:18
Martin Saturka 
Mathieu Malaterre 
normalmajoralways
closedfixed 
 
 
0000273: vtkBoxWidget transformation errors
Objects inside vtkBoxWidget disappear during transformation. It is so under Tcl/Tk wrapping, it is OK under direct C++ compilation. You can see it with tutorial Cone6.tcl example. The Cone6.cxx example works OK, but it segfaults during end of application run. I use Debian/Linux with tcl8.4.
No tags attached.
? Cone6.tcl (5,466) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5043/Cone6.tcl
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0000505)
Mathieu Malaterre   
2004-01-18 17:22   
Could not reproduce on cygwin.
(0000604)
Mathieu Malaterre   
2004-02-02 16:41   
Martin send me this email:
I just run "wish8.4 ./Cone6.tcl" (it can be "wish Cone6.tcl" or just
addition of four lines below to the script, it does not matter.
----------------------------
#!/bin/sh
# \
exec wish8.4 "$0" ${1+"$@"}

----------------------------

Then I put mouse cursor onto side of the box and I press left button.
I keep the button pressed (so one side oh the box is green) and
I move (at least) a bit the mouse cursor. The cone disappears. I can
move the box by keeping mouse cursor out of the box before it. Then
a reclick with cursor on a box side destroy the cone too.
When I play with the box then, the cone time to time appears.

When the cone appears for a moment I usually see it (partially)
out of the box. When I have a good luck, the cone appears just
when I release mouse button. Then I can move with it by mouse
out of the box. Even though the box and the cone are displaced
in such a case, they move synchronously then.

I have experience that doing the steps on faster (newer) computers
results in more time fraction with appeared cone. Usage of Pentium
200MHz (my old home PC) results in approximatelly 0-5% of time with
the cone on, 95-100% of time is the cone off.

However, the behavior should not be caused by hardware. Compiled
Cone6 (gained by cmake .;make in directory with Cone6.cxx) behaves
nicely - the cone does not disappear. Thus, I suppose, there is
something wrong in VTK-Tcl connection, the 0000187 bug?

Just a note on another issue, when I close compiled Cone6 application,
(not Cone6.tcl) e.g. by pressing q key, I get the following error:
----------------------------
Generic Warning: In /debian/stage/vtk-4.2.5/Common/vtkObjectBase.cxx, line
63
Trying to delete object with non-zero reference count.

Memory fault
----------------------------
But it is another, non-critical issue.


I use Debian/Linux unstable/testing branches, with tcl8.4, vtk4.2;
I really can see it on my computers (as an old Intel Pentium and new
AMD Athlon), and I can see that on the same HW, it is OK with compiled
example version. But I highly prefer to have Tcl version, since Tcl
is too nice language.

(0000664)
Mathieu Malaterre   
2004-02-17 18:18   
Could not reproduce the bug using VTK CVS, this has been fixed. The other error might be related to the fact that subclass of vtkCommand should not call 'delete this'