On Oct 28, 9:17 am, Jaap Spies <[EMAIL PROTECTED]> wrote:
> With experimental package mayavi_2.2.1 installed the following works fine:
>
> [EMAIL PROTECTED] sage-3.1.2]$ ./sage -wthread
> ----------------------------------------------------------------------
> | SAGE Version 3.1.2, Release Date: 2008-09-16                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: from enthought.mayavi import mlab as M
>
> sage: M.test_plot3d()
>
> (sage.bin:24738): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion 
> `!GTK_WIDGET_REALIZED (widget)' failed
>   <enthought.mayavi.modules.surface.Surface object at 0xd1b411c>
>
> sage:
> Exiting SAGE (CPU time 0m5.95s, Wall time 0m26.55s).
> Closing threads... Done.
> /home/jaap/downloads/sage-3.1.2/local/bin/sage-sage: line 215: 24738 
> Segmentation fault      sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"
> [EMAIL PROTECTED] sage-3.1.2]$
>
> Note the segfault above!
>
> The following shows no picture because threading for wxPython is not enabled:
>
> [EMAIL PROTECTED] sage-3.1.2]$ ./sage
> ----------------------------------------------------------------------
> | SAGE Version 3.1.2, Release Date: 2008-09-16                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: from enthought.mayavi import mlab as M
>
> sage: M.test_plot3d()
>
> (sage.bin:24806): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion 
> `!GTK_WIDGET_REALIZED (widget)' failed
>   <enthought.mayavi.modules.surface.Surface object at 0xdc850bc>
>
> sage:
> Exiting SAGE (CPU time 0m6.36s, Wall time 0m28.33s).
> /home/jaap/downloads/sage-3.1.2/local/bin/sage-sage: line 215: 24806 
> Segmentation fault      sage-ipython "$@" -c "$SAGE_STARTUP_COMMAND;"
> [EMAIL PROTECTED] sage-3.1.2]$
>
> The *same* happens using sage-3.1.3 or higher:
>
> [EMAIL PROTECTED] sage-3.2.alpha1]$ ./sage -wthread
> ----------------------------------------------------------------------
> | Sage Version 3.2.alpha1, Release Date: 2008-10-26                  |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: from enthought.mayavi import mlab as M
>
> sage: M.test_plot3d()
>
> (sage.bin:24864): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion 
> `!GTK_WIDGET_REALIZED (widget)' failed
>   <enthought.mayavi.modules.surface.Surface object at 0xd147b3c>
>
> sage:
> Exiting SAGE (CPU time 0m6.34s, Wall time 0m32.41s).
> /home/jaap/downloads/sage-3.2.alpha1/local/bin/sage-sage: line 198: 24864 
> Segmentation fault      sage-ipython "$@" -i
> [EMAIL PROTECTED] sage-3.2.alpha1]$
>
> My hypothesis is that somehow the argument -wthread is not correctly
> passed to ipython.
>
> Thoughts?

Hi Jaap.

 (a) in 3.1.3 we updated ipython (#3659) - but there is already a
ipython 0.9.x is out there.
 (b) in 3.1.4 we fixed some ipython startup issues - see #4291

Maybe you should try downgrading ipython? If that fixes it we have a
clear culprit :)

>
> Jaap

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to