ptitseb is it only nestopia or is it also effecting your apps?
I looked over your trace and I dont see anything obvious, i wouldnt think the call order between context and windowsurface should have this effect.
the key part where the native window surface is null in the trace, so that good.
its...