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?

  • 2
    IMO, it’s borderline.   Some people will believe that this question belongs on Stack Overflow; some will vehemently insist that it does.   I suggest that you wait a couple of days.   If you don’t get a satisfactory response here, then flag your message for a moderator to migrate it.   Please do not repost this question on Stack Overflow unless this copy gets deleted, or a moderator refuses to move it. – G-Man Mar 1 at 18:07
  • 1
    @G-Man thank you. I will continue my search and see if I can solve it. If I don't get an answer by Monday, then I will flag for it to be Migrated. Rui made an edit removing the "I am not sure if this belongs here or on Stackoverflow." But I will wait patiently. – Sailanarmo Mar 1 at 18:10
  • @G-Man would this be on topic on Stack Overflow? There's no code here. The OP is trying to install a program, not writing it, why would that be on topic on SO? – terdon Mar 4 at 21:04
  • @Sailanarmo you don't need to ask a mod to migrate. If you want to move your question elsewhere, you can simply delete this and post it on the other site. G-man meant that you shouldn't have the same question on both sites, but deleting here and then reposting is fine. Flagging is also fine, I just wanted to let you know you could do it yourself too. All that said, I don't really know if this would be on topic on SO. – terdon Mar 4 at 21:05
  • I just asked an Stack Overflow moderator and he confirmed that this wouldn't really be on topic on SO. Sorry :/ – terdon Mar 4 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.