I think I traced the bug down, in fact it's got nothing to do with cairo itself as it seems. It's more likely the combination with directx causing the bug. I'm really sorry for this unnecessary thread, but I was pulling my hair out after hours of debugging. Cheers