Re: Need X window for OpenGL context on graphics hardware.
Re: Need X window for OpenGL context on graphics hardware.
- Subject: Re: Need X window for OpenGL context on graphics hardware.
- From: "Keith D. Matthews" <email@hidden>
- Date: Sat, 9 May 2009 22:59:03 -0700 (PDT)
The software I'm trying to set up is called ParaView. It's a scientific
3D data visualization package based on a client/server architecture. It
performs the rendering on the server and then sends the rendered images to
be displayed on the client. In order to run efficiently it needs to be
able to setup an OpenGL context in the graphics hardware of the server.
The documentation for ParaView suggests running glxgears in this way as a
test of whether the server will be able to function correctly. So I think
it's intended that nobody will actually see the window with the gears in
it.
The other issue that some others have pointed out is that none of this has
anything to do with X11. Here I'm in the dark, although now that I think
about perhaps that makes sense. Maybe the folks who wrote the ParaView
documentation were simply assuming that the platform was some form of
Linux box. ParaView provides executables built for OS X, but perhaps the
documentation doesn't reflect this.
So I guess the ParaView server is asking for a window from Quartz or
something with no reference to X11 at all? If that's the case can you
point me to the appropriate apple list where I should post this question?
Also, any help on how to phrase the question would also be appreciated,
since if X11 has nothing to do with the problem then I guess the glxgears
example is irrelevant.
Thanks,
Keith
On Sat, 9 May 2009, Jeremy Huddleston wrote:
As someone others have already mentioned, this is most likely NOT what you
"need to work when logging in remotely." That command DOES work, but it is
most likely not doing what you expect it to. It will cause glxgears to be
run on the X11 server using display 0 on the machine you are running it on,
and it will use tcp/ip to connect to that server.
So let's back this up one level. Tell us what it is you need and why you
think that command is going to give you what you expect.
Since you say "remotely" in there, I am guessing you want this to appear on
your system (remote from the system you are running it on). In that case,
you should use ssh for X11 forwarding (make sure that /etc/sshd_config is
configured to allow X11 forwarding on the remote system):
ssh -X -Y email@hidden
On May 8, 2009, at 21:59, Keith D. Matthews wrote:
Summary:
I need the following to work when logging in remotely.
> env DISPLAY=localhost:0 /usr/X11R6/bin/glxgears
Error: couldn't open display (null)
Details:
I'm trying to use my MacPro as a ParaView server, i.e. running pvserver. I
believe the problem I'm having is the same as the one above. pvserver
needs to open an X window on the server to get access to the graphics
hardware, but since I'm logging in remotely, X11 isn't running.
Below is the pvserver error message.
Thanks,
Keith
#################
bin> ./pvserver -rc --client-host=<actual client IP>
Connected to client
_RegisterApplication(), FAILED TO establish the default connection to the
WindowServer, _CGSDefaultConnection() is NULL.
ERROR: In
/Users/berk/Work/ReleaseBuilds/ParaView3/VTK/Rendering/vtkCarbonRenderWindow.cxx,
line 674
vtkCarbonRenderWindow (0x5057c00): Could not create window, serious error!
[phaneria:33413] *** Process received signal ***
[phaneria:33413] Signal: Bus error (10)
[phaneria:33413] Signal code: (2)
[phaneria:33413] Failing at address: 0x0
[ 1] [0xbffff098, 0x00000000] (-P-)
[ 2] (_ZN17vtkOpenGLRenderer11ClearLightsEv + 0x4d) [0xbffff0d8,
0x021ccc8d]
[ 3] (_ZN15vtkIceTRenderer12DeviceRenderEv + 0x36) [0xbffff188, 0x00996516]
[ 4] (_ZN11vtkRenderer6RenderEv + 0x16f) [0xbffff238, 0x0213846f]
[ 5] (_ZN21vtkRendererCollection6RenderEv + 0x20a) [0xbffff288, 0x0213346a]
[ 6] (_ZN15vtkRenderWindow14DoStereoRenderEv + 0x96) [0xbffff2b8,
0x021450d6]
[ 7] (_ZN15vtkRenderWindow10DoFDRenderEv + 0x99) [0xbffff368, 0x02145229]
[ 8] (_ZN15vtkRenderWindow10DoAARenderEv + 0x62) [0xbffff438, 0x021456b2]
[ 9] (_ZN15vtkRenderWindow6RenderEv + 0x284) [0xbffff4b8, 0x02143ad4]
[10] (_ZN25vtkMultiProcessController10ProcessRMIEiPvii + 0x78) [0xbffff508,
0x0198d2b8]
[11] (_ZN25vtkMultiProcessController11ProcessRMIsEii + 0xc7) [0xbffff578,
0x0198d4f7]
[12] (_ZN19vtkRemoteConnection20ProcessCommunicationEv + 0x25) [0xbffff598,
0x00b565f5]
[13] (_ZN33vtkProcessModuleConnectionManager18MonitorConnectionsEm + 0x23c)
[0xbffff608, 0x00b0e46c]
[14] (_ZN16vtkProcessModule11StartServerEm + 0xad) [0xbffff648, 0x00b14e4d]
[15] (_ZN16vtkProcessModule5StartEiPPc + 0x29b) [0xbffff6b8, 0x00b154eb]
[16] (_ZN9vtkPVMain3RunEP12vtkPVOptions + 0x5f) [0xbffff718, 0x0090da2f]
[17] (main + 0xa3) [0xbffff768, 0x00015943]
[18] (start + 0x36) [0xbffff780, 0x00015866]
[19] [0x00000000, 0x00000003] (FP-)
[phaneria:33413] *** End of error message ***
Bus error
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden