I've been using Robot Framework successfully for test automation for a while, and Selenium 2 auto-screen captures have always worked perfectly.
Just this week while fixing a script I noticed that the Selenium2Library automatic screen captures are all 0 bytes.
Behind the scenes.... S2L simply sets the "Capture Page Screenshot" keyword as the keyword to run on failure. When I explicitly call the "Capture Page Screenshot" keyword in my script, a screenshot is captured, as expected.
However if one of my S2L steps fails, and a screenshot is automatically captured, that screenshot is 0 bytes.
Any idea why this would happen?