openglcontext cygwin-x lazarus / 70-OpenGL ---------------------------------------------------------------------- apeoperaio · 2016-08-25 08:02 Dear all, I got a message from a user of an application developed with lazarus and using the TOpenGLContext. The user is running my app using cygwin-x from Windows 7 on a CentOS 6.7 computer, the user uses XWin Server for displaying GUI remotely. The application runs fine locally on the remote CentOS computer but using cygwin-x the application does not run with the following messages: libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Gdk-ERROR **: The program 'myappguiname' 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 1656 error_code 2 request_code 149 minor_code 24)   (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.) aborting... Aborted (core dumped) Any hint on how to solve the problem? Thank you, Andrea ---------------------------------------------------------------------- Thaddy · 2016-08-25 08:22 Looks like the cygwin-x has no virtual framebuffer support or is not configured correctly. ---------------------------------------------------------------------- mig-31 · 2016-08-25 10:00 By the documentaion, x-cygwin supports OpenGL content. It looks, that user should setup x-cygwin correctly. ---------------------------------------------------------------------- apeoperaio · 2016-08-25 15:59 I cannot test it since this issue has been reported by an user of my application. I asked for the output of glxinfo and suggested to test different cygwin-x settings. Any suggestion is really appreciated. ---------------------------------------------------------------------- molly · 2016-08-25 16:15 Quote from: apeoperaio on August 25, 2016, 10:02:03 amlibGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Taking a shot in the dark here (mind you: a real unfounded shot in the dark): Running a 32 bit application on a 64 bit system, attempting to (dynamically) load the software rasterizer. User hasn't installed the proper (32-bit) drivers. There really isn't a way for anyone to be able to tell something useful (unless someone reading this accidentally ran into the exact same situation as you did and recognizes this. Odds for that are next to nil). Get yourself familiar with the user's environment and collect as much details as possible. ---------------------------------------------------------------------- apeoperaio · 2016-08-26 08:59 I suppose that the user has installed the proper application, the app is properly running if launched locally. Both 32 and 64 bit are available. Anyway I asked for that. Additionally here the output of glxinfo: name of display: localhost:12.0 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request:  BadValue (integer parameter out of range for operation)   Major opcode of failed request:  149 (GLX)   Minor opcode of failed request:  3 (X_GLXCreateContext)   Value in failed request:  0x0   Serial number of failed request:  20   Current serial number in output stream:  23 As soon as I will got more details I will post here. ---------------------------------------------------------------------- apeoperaio · 2016-08-26 15:48 Actually they installed a 32 bit application on 64 bit system. I suggested to install the 64 bit version. I will update you if it works.