Re: [gtk-osx-devel] Gdk::Pixbuf::create(Gdk::Window, int, int, int, int) on Mac LION



On Jul 10, 2012, at 2:46 AM, Jim Charlton wrote:

> I am porting some gtkmm-3.0 code from Linux (Ubuntu) to Mac OS X (LION) on an x86_64 machine.
> 
> I have struggled to get gtkmm-3.0 and all of its dependencies installed but have managed to do so with jhbuild.
> 
> One last problem remains.  At one point in my code, I copy the image in a Gdk::Window associated with a DrawingArea object to a Pixbuf. I later use cairo to redraw this to restore the image.
> 
> The Linux code uses Gdk::Pixbuf::create() to copy the contents of the Gdk::Window to a Pixbuf.  That code segfaults with a bad_alloc error on the MAC.  Is there another way to do that?  Is there a way to copy the image in the Gdk::Window to a Cairo quartz surface?

I'm not familiar enough with pixbufs to help with a workaround, but I'd appreciate a bug report in bugzilla with a good stacktrace. If you didn't already, please rebuild with debugging symbols for at least cairo, gtkmm, gtk+, and gtk-pixbuf. Better still if you can debug into the segfault a bit  and find out where the bad pointer is coming from.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]