Since I upgraded to ubuntu 14.04 from 13.10, it is impossible to change any parameter in nvidia-settings without this program crashing.
nvidia-settings is starting correctly but if I try to change any parameter (and clicking "apply"), it will crash with the following message:
ERROR: Error querying target relations The program 'nvidia-settings' received an X Window System error. This probably reflects a bug in the program. The error was 'BadValue (integer parameter out of range for operation)'. (Details: serial 830 error_code 2 request_code 157 minor_code 25) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
This error happens even when there is no change in configuration (changing resolution and setting back then clicking apply)
Graphics card: GeForce GTX 460
OpenGL version string: 4.2.0 NVIDIA 304.117
nvidia-settings: version 331.20 (buildd@roseapple) Mon Feb 3 15:07:22 UTC 2014