We are getting seg faults on our Solaris platform at work when we use
the blit API in GTKAgg.  This has been going on for a while, and I
don't know if it is in our pygtk version, or what.  The line that is
causing the crash is in src/_gtkagg.cpp

  GdkDrawable *drawable = GDK_DRAWABLE(py_drawable->obj);

But rather than spend any more time trying to track that down, I
decided to try and remove the gtk extension code entirely, which would
be a great help for building mpl and distributing binaries.  I feel
like I am close, but something is still not clicking (at least on my
platform).

I'm attaching an svn diff in case anyone has some ideas -- basically,
it removes the use of agg_to_gtk_drawable in
backend_gtkagg.FigureCanvasGTKAgg.blit and replaces it with gdk
pixmap/pixbuffer calls.  If anyone has any ideas, please let me know.

Attached also is the example code I am using to test.  Strangely, the
agg buffer seems to be updating internally but the gtk window is only
updating when I hover my mouse over it, and then only once until I
activate another window and then re-hover over the mpl animation
window.

Thanks for any help!
JDH

Attachment: diff.out
Description: Binary data

Attachment: animation_blit_gtk.py
Description: Binary data

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to