Re: PIL problem with biprocessor hardware

2006-05-27 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > oops. lost my train of thought. I was gonna say, I wonder if some of > these image manipulation routines are using multiple threads? PIL doesn't use threading by itself, and I know of quite a few PIL-based systems running on multi-processor hardware (not to mention mul

Re: PIL problem with biprocessor hardware

2006-05-26 Thread [EMAIL PROTECTED]
oops. lost my train of thought. I was gonna say, I wonder if some of these image manipulation routines are using multiple threads? -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL problem with biprocessor hardware

2006-05-26 Thread [EMAIL PROTECTED]
I wonder if there are other threads accessing image? Maybe image isn't fully initialized by some other thread before this code accesses it? It's hard to say what's going wrong. I don't believe that an SMP system would have any bearing on an application unless it uses multiple threads of execution.

Re: PIL problem with biprocessor hardware

2006-05-26 Thread mardif
OK, this is the code: """ image is the object instance of Image class which contains all informations """ pil = Image.open( os.path.join( image.path,image.name ) ) if image.rotation_angle != 2: try: pil = pil.rotate( rotation_lev

Re: PIL problem with biprocessor hardware

2006-05-26 Thread [EMAIL PROTECTED]
> If this application work on a PC mono-processor, I don't have any >problems. >If this application work instead on a PC bi-processor, the process >elaborates an image "corrupted": Sounds like you've got some thread synch issue. On a mono-processor system, your threads are running serially, but on