I have run into exactly this problem when the wrong type is passed to a GL function. The window manager especially hates passing doubles to routines expecting floats. The same thing also happens if a float value is NaN.