I have been trying to get a wxWidgets program to compile on Ubuntu 18.04. At the time, my RTX 2080 had not come in yet and I was using a coworkers 1060 in the mean time. Last Friday, I finally was able to compile the program I was working on and I got it to run, which required the OpenCL and OpenGL Libraries. I installed these libraries which I believe are required for the program to run:
mesa-utils libeglw1-mesa libglw1-mesa-dev freeglut3-dev freeglut3 ocl-icd-opencl-dev
I also installed the Cuda 10 Libraries from NVIDIA as well.
My RTX 2080 finally came in, I installed the graphics card and only one monitor worked at a terrible resolution, I realized that I needed to download official NVIDIA drivers. Once I got those installed my monitors returned back to normal. However, now when I try to run the program I get the error:
(Program:18499): Gdk-ERROR **: 09:45:23.055: The program 'Program' 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 228 error_code 2 request_code 151 (GLX) minor_code 3) (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 GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap
Which this could be a legitimate bug in the program, however, it is a little strange to me on why before the 2080 my program ran just fine. I've tried running GDB like this:
GDK_SYNCHRONIZE="1" gdb ./Program
However, I don't really know where to break on the program and if I try setting a break point on
gdk_x_error() GDB cannot find the function to break on. So at this point I am at a loss on where to go from here. I don't really want to reinstall my distro, but if I have to I will. When I searched for an error, I was directed to this site: https://github.com/cjcliffe/CubicSDR/issues/569, and someone in that thread said:
"A quick search on the Internet suggests a problem related to GLX libraries vs. drivers (Intel, Nvidia) and re-installing them. Please also note that wxWidgets 3.11 must be compiled with OpenGL support for CubicSDR to work."
However I wasn't sure if that error was specific to CubicSDR or if this is the same issue. Does anyone have any ideas on what I can try?