[Python-apps-team] Bug#478844: Bug#478844: mayavi2: segfaults or corrupts memory after some operations

Francesco Poli frx at firenze.linux.it
Mon May 12 20:35:42 UTC 2008


On Mon, 12 May 2008 22:22:00 +0530 Prabhu Ramachandran wrote:

> Prabhu Ramachandran wrote:
> > Francesco Poli wrote:
[...]
> >> At this point, as soon as I left-click on the ContourGridPlane
> >> module, I get a debugger window (see attached screenshot inspector.png)
> >> and cannot see any ContourGridPlane properties in the MayaVi
> >> object editor pane...
[...]
> I think I've found the problem and fixed it in the 
> enthought.traits.ui.wx_2.0.5 branch that I just made.

This is great news!  :-)

> The problem in 
> your case is that there is only one value of the scalar, so the high and 
> low limits are the same leading to the floating point division error.

Ah, that makes sense: so high and low are the variables that hold
the maximum and minimum scalar values!  That's why there was that float
exception!  It was a divide by zero error!

> 
> Here is a patch you need to make to 
> enthought/traits/ui/wx/range_editor.py (where it is installed) 
> alternatively get this from the branch.

Patch applied: I can confirm that the problem seems to be fixed by the
patch (I checked on my amd64 box).
Many thanks for providing this fix!  :-)))

> 
> The bug should therefore be closed as far as upstream is concerned.

The Debian bug should be closed by an upload to the Debian unstable
branch of a mayavi2 package version which includes the fixed
plot3d_reader.py .
I am also looking forward to seeing an upload to unstable of a
python-enthought-traits-ui version which includes the fixed
range_editor.py ...

Hence, we will have to wait before this bug report can be closed.
Maybe the bug report deserves a fixed-upstream tag: I'll let the
package maintainer(s) decide...

> Varun already filed a ticket for improving the multi-block support which 
> we'll get to later.

Yeah, I saw it.  But this is about another bug report, so we are off
topic here...


-- 
 http://frx.netsons.org/doc/index.html#nanodocs
 The nano-document series is here!
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20080512/32e6b2a6/attachment.pgp 


More information about the Python-apps-team mailing list