I believe this bug is the same as
https://github.com/enthought/chaco/issues/273 and, from there,
https://github.com/enthought/enable/issues/97
It looks like the fix may be to compile Enable with optimization turned
off or with GCC <= 4.6 or Clang. It remains to be seen whether the
segfault is caused by undefined behaviour in Enable, or a bug in GCC.
For completeness, here's a minimal program that will cause the segfault:
from traits.api import HasTraits, Instance
from traitsui.api import View, Item
from chaco.api import ArrayPlotData, Plot
from enable.api import ComponentEditor
class Segfault(HasTraits):
data_store = Instance(ArrayPlotData)
plot = Instance(Plot)
view = View(Item('plot', show_label=False, editor=ComponentEditor()))
def __init__(self, **traits):
super(Segfault, self).__init__(**traits)
self.data_store = ArrayPlotData(image=[[0, 0], [0, 0]])
self.plot = Plot(self.data_store)
self.plot.img_plot('image')
s = Segfault()
s.configure_traits()
And the relevant part of the stack trace:
#0 0x00007fffe6bf258d in
agg24::span_image_filter_rgba_nn<agg24::image_accessor_clip<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_rgba>, agg24::row_ptr_cache<unsigned char>, unsigned int> >,
agg24::span_interpolator_linear<agg24::trans_affine, 8u>
>::generate(agg24::rgba8*, int, int, unsigned int) () from
/usr/lib/python2.7/dist-packages/kiva/agg/_agg.so
#1 0x00007fffe6c0c016 in void
kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_bgra>, agg24::row_ptr_cache<unsigned char>, unsigned int>
>::transform_image_interpolate<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_rgba>, agg24::row_ptr_cache<unsigned char>, unsigned int>
>(kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_rgba>, agg24::row_ptr_cache<unsigned char>, unsigned int> >&,
agg24::trans_affine&) ()
from /usr/lib/python2.7/dist-packages/kiva/agg/_agg.so
#2 0x00007fffe6c1c1a5 in
kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_bgra>, agg24::row_ptr_cache<unsigned char>, unsigned int>
>::transform_image(kiva::graphics_context_base*, agg24::trans_affine&) () from
/usr/lib/python2.7/dist-packages/kiva/agg/_agg.so
#3 0x00007fffe6c1c37e in
kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8,
agg24::order_bgra>, agg24::row_ptr_cache<unsigned char>, unsigned int>
>::draw_image(kiva::graphics_context_base*, double*, bool) () from
/usr/lib/python2.7/dist-packages/kiva/agg/_agg.so
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1145575
Title:
image plots not working
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-chaco/+bug/1145575/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs