When running some Intel® FPGA OpenCL™ Examples(Video_downscaling, sobel_filter), you may encounter runtime errors like "X Error of failed request: BadValue". The whole message would be like as following:
[bin]$ ./host
Input video file: video.yuv
# frames: 100X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 77
Current serial number in output stream: 78
Such error occurs when you are running the examples on a remote machine with an NVIDIA® display card and a third party driver is installed.
Reinstall the original display card driver, or run the examples on a local machine instead.