Recent

Author Topic: openglcontext cygwin-x  (Read 7325 times)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 272
openglcontext cygwin-x
« on: August 25, 2016, 10:02:03 am »
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

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: openglcontext cygwin-x
« Reply #1 on: August 25, 2016, 10:22:32 am »
Looks like the cygwin-x has no virtual framebuffer support or is not configured correctly.
Specialize a type, not a var.

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: openglcontext cygwin-x
« Reply #2 on: August 25, 2016, 12:00:33 pm »
By the documentaion, x-cygwin supports OpenGL content.

It looks, that user should setup x-cygwin correctly.
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

apeoperaio

  • Sr. Member
  • ****
  • Posts: 272
Re: openglcontext cygwin-x
« Reply #3 on: August 25, 2016, 05:59:12 pm »
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

  • Hero Member
  • *****
  • Posts: 2330
Re: openglcontext cygwin-x
« Reply #4 on: August 25, 2016, 06:15:12 pm »
libGL 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

  • Sr. Member
  • ****
  • Posts: 272
Re: openglcontext cygwin-x
« Reply #5 on: August 26, 2016, 10:59:15 am »
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

  • Sr. Member
  • ****
  • Posts: 272
Re: openglcontext cygwin-x
« Reply #6 on: August 26, 2016, 05:48:29 pm »
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.

 

TinyPortal © 2005-2018