Task error message

When running tasks I get an alert box " An error occurred while processing this request" when generating thumbnails. I get it five or six times. If I keep refreshing the page I’m able to complete it
Any Ideas ??
Thanks
Bob

did you check for any specific error messages in the log?