Le Jeu 18 juillet 2013 14:12, Nicolas Mailhot a écrit :
> Le Mer 17 juillet 2013 15:04, Michael Droettboom a écrit :
>> This patch doesn't make a whole lot of sense to me.  get_name should
>> work just fine if self._family is None, and indeed it does in my own
>> testing:
>>
>> ```
>> from matplotlib import font_manager
>>
>> f = font_manager.FontProperties(None)
>> print f._family
>> print f.get_family()
>> print f.get_name()
>> ```
>>
>> So I'd much prefer to get to the bottom of the root cause of this
>> problem than patch it unnecessarily in this way.  Any idea what that is?
>
> I haven't the faintest idea. The function seems to be called with a "None"
> font, and then it crashes. As it's executed under a Linux system it uses
> the fontconfig backend with cairo. The call only occurs when matplotlib is
> fed more data than can be isolated in an simple example
>
> Attaching the only patches Fedora/Red Hat applied before the build :
>
> Patch0:         %{name}-noagg.patch
> Patch1:         %{name}-tk.patch
> # http://sourceforge.net/mailarchive/message.php?msg_id=30202451
> # https://github.com/matplotlib/matplotlib/pull/1666
> # https://bugzilla.redhat.com/show_bug.cgi?id=896182
> Patch2:         %{name}-fontconfig.patch
>
> […]
>
> # Remove bundled libraries
> rm -r agg24 lib/matplotlib/pyparsing_py?.py
>
> # Remove references to bundled libraries
> %patch0 -p1 -b .noagg
> sed -i -e s/matplotlib\.pyparsing_py./pyparsing/g lib/matplotlib/*.py
>
> # Correct tcl/tk detection
> %patch1 -p1 -b .tk
> sed -i -e 's|@@libdir@@|%{_libdir}|' setupext.py
>
> # Use fontconfig by default
> %patch2 -p1 -b .fontconfig

BTW if you have some code to add to the crashing function to identify
what's wrong, I can reproduce the crash at will (though the processing
before crash time is rather long)

Regards,

-- 
Nicolas Mailhot


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to