On 2013/09/17 8:09 PM, Matt Terry wrote:
> My mac testing hasn't picked up on this, but I don't think we have any
> tests that actually draw to the screen. I have noticed a i386 linking
> error, but haven't gotten to it.
>
> Is there an automated way to test this? Something like:
> Make a simple plot
> show()
> close the window after 10s.

Matt,

I don't know--I would think it would be hard to make an automated test 
that can handle a full-on python crash.  It leaves behind a screen with 
extensive diagnostics that it says are being sent to Apple.

Eric

>
> -matt
>
> On Sep 17, 2013 7:15 PM, "Damon McDougall" <damon.mcdoug...@gmail.com
> <mailto:damon.mcdoug...@gmail.com>> wrote:
>
>     On Tue, Sep 17, 2013 at 8:55 PM, Damon McDougall
>     <damon.mcdoug...@gmail.com <mailto:damon.mcdoug...@gmail.com>> wrote:
>      > On Tue, Sep 17, 2013 at 3:49 PM, Eric Firing <efir...@hawaii.edu
>     <mailto:efir...@hawaii.edu>> wrote:
>      >> When I build mpl from master on python.org <http://python.org>
>     python 2.7, Mountain Lion,
>      >> and try to plot anything with the macosx backend, I am now
>     getting an
>      >> Apple crash--the plot window flashes up and vanishes, and a big OS X
>      >> crash report window pops up.  Ipython shows "Trace/BPT trap: 5".
>       I have
>      >> never seen anything like this before.  Building from 1.3.0 works
>     fine.
>      >>
>      >> Is anyone else seeing this?
>      >>
>      >> Master is also broken, at least on my machine, with other
>     backends.  The
>      >> suggested fix is https://github.com/matplotlib/matplotlib/pull/2431.
>      >>
>      >> Eric
>      >
>      > Building from master produces a broken build of matplotlib for me.
>      > After the build finishes, I get this warning from the linker:
>      >
>      > ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, file was
>      > built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0
>     0x 0
>      > 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the
>      > architecture being linked (i386): /opt/local/lib/libfreetype.dylib
>      >
>      > I don't know why it's compiling with -arch i386.  It's also compiling
>      > with -arch x86_64.
>      >
>      > When I install matplotlib, this is what happens from an ipython
>     terminal:
>      >
>      > In [1]: import matplotlib
>      > In [2]: print matplotlib.__version__
>      > 1.4.x
>      > In [3]: matplotlib.use('macosx')
>      > In [4]: import matplotlib.pyplot as plt
>      > In [5]: fig = plt.figure()
>      > In [6]: ax = fig.add_subplot(1, 1, 1)
>      > In [7]: ax.plot([1, 2, 3])
>      > Out[7]: [<matplotlib.lines.Line2D at 0x107523250>]
>      > In [8]: plt.show()
>      > Trace/BPT trap: 5
>      >
>      > git bisecting says that f4adec7b569cfd0b30e0f8367ba8618b9e160f92 is
>      > the first bad commit, which you can see the diff of
>      >
>     
> here<https://github.com/matplotlib/matplotlib/commit/f4adec7b569cfd0b30e0f8367ba8618b9e160f92>.
>      >  That's a pretty big commit so it'll take a while to track down.
>      >
>      > I'm kind of swamped with work right now (a colleague I work with
>      > recently resigned) so I don't have as much time as I'd like to
>      > dedicate to helping out.
>      >
>      > Eric, I hope that helps a little bit.
>      >
>      > Best wishes,
>      > Damon
>      >
>      > --
>      > Damon McDougall
>      > http://www.damon-is-a-geek.com
>      > Institute for Computational Engineering Sciences
>      > 201 E. 24th St.
>      > Stop C0200
>      > The University of Texas at Austin
>      > Austin, TX 78712-1229
>
>     Oh, and I get the linker warning both with last good commit, *and* the
>     first bad commit.  Just as another data point.
>
>     --
>     Damon McDougall
>     http://www.damon-is-a-geek.com
>     Institute for Computational Engineering Sciences
>     201 E. 24th St.
>     Stop C0200
>     The University of Texas at Austin
>     Austin, TX 78712-1229
>
>     
> ------------------------------------------------------------------------------
>     LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>     1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>     SharePoint
>     2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power
>     Pack includes
>     Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>     
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>     _______________________________________________
>     Matplotlib-devel mailing list
>     Matplotlib-devel@lists.sourceforge.net
>     <mailto:Matplotlib-devel@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to