Can you provide a stack trace -- either a Python one, or a gdb one? Mike
On 05/18/2011 03:25 AM, Mark Hepburn wrote: > Hi, > > I have a web application using matplotlib which is unpredictably > crashing with the error message from the subject. It seems to be > happening in ft2font, but I can't be certain at this stage that it's > only occurring there (although since isolating it via logging > statements, every time it has occurred has been in that spot). The > crash occurs at load time, seemingly through a chain of import > statements (starting with wsgi app -> django -> my app): > matplotlib.colorbar -> matplotlib.lines -> matplotlib.font_manager -> > matplotlib.ft2font > > Google is strangely quiet on that particular message; the closest I > have found that also involves ft2font was this rather old one: > http://comments.gmane.org/gmane.comp.python.matplotlib.devel/1332 > > The unpredictable nature of it suggests that it's thread-related, but > other than that I have no further clues. The unpredictable nature of > the crashes obviously makes testing any theory or avenue quite slow at > times! Does anyone have any suggestions, hints for further > probing,... anything, please? > > The particulars: > Server OS: openSUSE 11.3 (x86_64) > matplotlib: 1.0.0 (compiled from source distro) > Server: apache prefork, mod_wsgi > Python version: 2.6.4 > > Extra factors: > There are two versions of the application, deployed in virtualenvs > (identical matplotlib versions). It does affect both of them, > although I've only been investigating with one. It frequently seems > to affect a group of processes; that is, reloading is required > multiple times before it returns to normal. > > mod_wsgi is running in embedded mode, but the same problem was > occurring with mod_python -- that was my main impetus for porting to > wsgi in fact. The same application ran fine on the previous server > however (SUSE Linux Enterprise Server 11 (x86_64)), in fact with 3 > versions of the application, using mod_python. It was previously > using matplotlib 0.98.5.2; according to my commit message the upgrade > was prompted by the server move and that version not compiling against > libpng1.4 on the new server. > > Thanks, Mark. > > ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users