On Mon, May 23, 2011 at 12:11 PM, Ben Gamari <bgamari.f...@gmail.com> wrote:

> On Mon, 23 May 2011 09:35:57 -0400, Michael Droettboom <md...@stsci.edu>
> wrote:
> > Generating the thumbnails has no additional requirements (it uses
> > matplotlib's image module to scale the images).  However, it may be a
> > problem with multiprocessing -- the thumbnails are generated in parallel
> > on multi-core machines.  I haven't had problems myself, but it seems
> > multiprocessing doesn't always work in certain environments.
> >
> > Can you do me a favor?  Can you edit gen_gallery.py and replace the line
> > beginning with "pool.map" to just "map" and let me know if that resolves
> > this issue?  If it does, perhaps we should not use multiprocessing here.
> >
> Given this seems to be one of the longer stages of the build process,
> I'd appreciate if if we identified and fixed the underlying problem and
> not simply sweep it under the rug.
>
> - Ben
>
>
Don't have a lot of time because I am on travel right now, but I think I
figured out the cause.  For whatever reason, there was some sort of missing
file error that caused the generation of the thumbnails to drop down to the
debugger prompt.  When within the multiprocessing pool, everything just
pauses, but nothing shows because the input is disconnected.  After a call
to clean, I was able to run the docs with and without "pool".

I hope that is a useful tip that could help figure out how to prevent a
unresponsive process.

Ben Root
------------------------------------------------------------------------------
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-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to