[Pixman] Seems to crash in pixman

Søren Sandmann sandmann at cs.au.dk
Thu Jan 26 09:40:37 PST 2012


ashbb <ashbbb at gmail.com> writes:

> When my friend runs the following snippet on his Macbook, it crashes.
>
>   require 'cairo'
>   require 'pango'
>   require 'gtk2'
>   win = Gtk::Window.new
>   win.set_default_size 300, 300
>   canvas = Gtk::Layout.new
>   surface = Cairo::ImageSurface.new Cairo::FORMAT_ARGB32, 300, 300
>   context = Cairo::Context.new surface
>   layout = context.create_pango_layout
>   layout.text = 'hello world'
>   context.show_pango_layout layout
>   context.show_page
>   surface.write_to_png 'temp.png'
>   img = Gtk::Image.new 'temp.png'
>   canvas.put img, 50, 50
>   win.add canvas
>   win.show_all
>   Gtk.main
>
> But on my Windows 7, it works well.
> He is using Macbook with Lion, Xcode 4.1 and rvm.
> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
> Ruby/GNOME2 v1.1.2
>
> More information is here: http://pastie.org/3230151
>
>   -- C level backtrace information ---------------
>   ...
>   6   libpixman-1.0.dylib   0x000000010446528c 
> pixman_image_composite32 + 144

My random guess is that it has to do with thread-local storage being
compiled wrong, but it's really difficult to say without knowing what
source line "+ 144" corresponds to.


Soren


More information about the Pixman mailing list