Sign in Join

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

Mailing lists / lazarus / 2014-06

gdk_gl_context_share_new no visual found

9 messages · 4 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 developed an application using LazOpenGLContext, one of the application user reported me that he got an error: gdk_gl_context_share_new no visual found.
Could you help me trying to identify the problem?
What may I ask to better understand the problem and how to solve it?

Andrea

Reply by email

Mattias Gaertner
to Andrea Mauri
Show quoted text 6 lines
Dear all, I developed an application using LazOpenGLContext, one of the application user reported me that he got an error: gdk_gl_context_share_new no visual found. Could you help me trying to identify the problem?

It means the opengl driver does not support the needed context. For example by default the LazOpenGLContext wants 8bit red, green, blue and 24bit depth bits.

What may I ask to better understand the problem and how to solve it?

Ask to run in a terminal:
glxinfo

This gives the supported visuals.
Maybe he runs the program in a virtual machine with limited 3D support.

Mattias

Reply by email

Andrea Mauri
to Mattias Gaertner

Thanks Mattias, I will ask for the output of glxinfo and if they are running the application remotely or locally.
Anyway they also wrote me that the application worked till last week and now they got this error message. What can affect this modified behaviour? Andrea

Il 06/06/2014 10:07, Mattias Gaertner ha scritto:

Show quoted text 30 lines
On Fri, 06 Jun 2014 09:55:14 +0200 Andrea Mauri wrote: > Dear all, > > I developed an application using LazOpenGLContext, one of the > application user reported me that he got an error: > gdk_gl_context_share_new no visual found. > Could you help me trying to identify the problem? It means the opengl driver does not support the needed context. For example by default the LazOpenGLContext wants 8bit red, green, blue and 24bit depth bits. > What may I ask to better understand the problem and how to solve it? Ask to run in a terminal: glxinfo This gives the supported visuals. Maybe he runs the program in a virtual machine with limited 3D support. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Andrea Mauri
Thanks Mattias, I will ask for the output of glxinfo and if they are running the application remotely or locally. Anyway they also wrote me that the application worked till last week and now they got this error message. What can affect this modified behaviour?

Probably something in front of the keyboard. ;)

Mattias

Reply by email

Andrea Mauri
to Mattias Gaertner: On Fri, 06 Jun 2014 09:55:14 +0200 It means the opengl driver does not support the needed…
Show quoted text 5 lines
Ask to run in a terminal: glxinfo This gives the supported visuals. Maybe he runs the program in a virtual machine with limited 3D support.

I asked for glxinfo they answered me that:
"the application runs remotely; I have a virtual host set up for me in the university.

If running via VNC, glxinfo outputs:

Xlib: extension ?GLX? missing on display ?:1.0? {many times followed by}
Error: couldn?t find RGB GLX visual or fbconfig

If running via ssh -X :

name of display: localhost:10.0
Error: couldn't find RGB GLX visual or fbconfig"

So, what can I do? What can I suggest them to make my application working again (it worked since last week)?

Show quoted text 9 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Van Canneyt
to Andrea Mauri
Andrea Mauri wrote 24 lines
> Ask to run in a terminal: > glxinfo > > This gives the supported visuals. > Maybe he runs the program in a virtual machine with limited 3D support. I asked for glxinfo they answered me that: "the application runs remotely; I have a virtual host set up for me in the university. If running via VNC, glxinfo outputs: Xlib: extension ?GLX? missing on display ?:1.0? {many times followed by} Error: couldn?t find RGB GLX visual or fbconfig If running via ssh -X : name of display: localhost:10.0 Error: couldn't find RGB GLX visual or fbconfig" So, what can I do? What can I suggest them to make my application working again (it worked since last week)?

I don't think OpenGL works remotely through virtualization. At least, I've never heard about it.

Michael.

Reply by email

Andrea Mauri
to Andrea Mauri

OK, it uses ssh -X too.
The problem is that I tried running my application from a Linux Virtual box installed on Linux and calling remotely the application from another Linux PC.
It works.
Additionally the user was able to run my application since last week. The application didn't change. I presume that something changed on the user server.
How can I interpret the messages:
"If running via ssh -X :

name of display: localhost:10.0
Error: couldn't find RGB GLX visual or fbconfig"

A display is identified but there is some problem with the framebuffer I presume (fbconfig).

Any suggestion?

Andrea

Il 06/06/2014 12:53, Andrea Mauri ha scritto:

Show quoted text 20 lines
using ssh -X I am able to run remotely my app and visualize topenglcontext.. I will try to suggest it to the user. Andrea > > I don't think OpenGL works remotely through virtualization. At least, > I've never heard about it. > > Michael. > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Dimitrios Chr. Ioannidis
to Andrea Mauri

Hi,

???? 6/6/2014 2:06 ??, ?/? Andrea Mauri ??????:

Show quoted text 13 lines
OK, it uses ssh -X too. The problem is that I tried running my application from a Linux Virtual box installed on Linux and calling remotely the application from another Linux PC. It works. Additionally the user was able to run my application since last week. The application didn't change. I presume that something changed on the user server. How can I interpret the messages: "If running via ssh -X : name of display: localhost:10.0 Error: couldn't find RGB GLX visual or fbconfig"

plz try with

export LIBGLALWAYSINDIRECT=yes

which tells libGL don't try to load any DRI driver meaning no direct rendering.

regards,

Dimitrios Chr. Ioannidis -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4261 bytes Desc: ?????????????????????????????? ???????????????? S/MIME URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140606/6c9a2a89/attachment.bin>

Reply by email