Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-08

openglcontext cygwin-x

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

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

Reply by email

Martok
to Andrea Mauri

Who is forwarding what where? I'm not familiar with cygwin-x.

maj=149 is GLX, min=25 is X_GLXCreateNewContext.

libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast

That sounds like there is no GL driver present wherever rendering happens. What does glxinfo say?

Does it work with Xming?

Regards,
Martok

Reply by email

Andrea Mauri
to Martok

Il 25/08/2016 12:52, Martok ha scritto:

Who is forwarding what where? I'm not familiar with cygwin-x. maj=149 is GLX, min=25 is X_GLXCreateNewContext.

What "maj=149 is GLX, min=25 is X_GLXCreateNewContext" means?

Show quoted text 7 lines
> libGL error: No matching fbConfigs or visuals found > libGL error: failed to load driver: swrast That sounds like there is no GL driver present wherever rendering happens. What does glxinfo say? Does it work with Xming?

I cannot test my application directly, since this issue happens on a user that wrote me. I will ask them to try with Xming too.

Show quoted text 5 lines
Regards, Martok

Reply by email

Martok
to Andrea Mauri
What "maj=149 is GLX, min=25 is X_GLXCreateNewContext" means?

That's the magic unexplained numbers in your X error message. They're a bit of a hassle to look up unless you alread have the correct glproto.h. Mistyped 24 as 25, sorry.

I cannot test my application directly, since this issue happens on a user that wrote me. I will ask them to try with Xming too.

Ah, then you're at the same point I was when I learned to hate GLX :D

Just found this one, maybe it helps?
<http://askubuntu.com/questions/541343/problems-with-libgl-fbconfigs-swrast-through-each-update>

Regards,
Martok

Reply by email