CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] XLib: extension "XInputExtension" missing on display (https://www.cfd-online.com/Forums/paraview/137941-xlib-extension-xinputextension-missing-display.html)

blwells45 June 25, 2014 15:43

XLib: extension "XInputExtension" missing on display
 
I am a server administrator trying to get Paraview to work for a modeling scientist. What we have is a virtualized Ubuntu 12.04 LTS server with 3.14.1-1ubuntu1.1 version of paraview installed.

If I start paraview from the console session, it works fine. However, if I start it from a VNC session, I am getting XLib: extension "XInputExtension" missing on display

My xstartup config is as follows:

Code:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#exec /etc/X11/xinit/xinitrc
gnome-session --session=gnome-classic &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#export XKL_XMODMAP_DISABLE=1
#/etc/X11/Xsession
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &i

I'm not sure what other information you might need to help me out.

Thanks,
Brian

wyldckat June 28, 2014 15:24

Greetings Brian and welcome to the forum!

I've moved this thread from the OpenFOAM installation forum, as there was no clear indication to it being related to OpenFOAM.

As for the issue you're getting, it looks familiar to me, although I've never gotten it myself. So after searching a bit about this, there seems to be at least two possible solutions:
  1. Inside a console/terminal window in the VNC window, run:
    Code:

    export LIBGL_ALWAYS_INDIRECT=y
    paraview

  2. If the above didn't work, try installing the package "libgl-dev":
    Code:

    sudo apt-get install libgl-dev
    (edit: the previous package and link no longer were applicable.)
Please do let us know if either one (or both) of the above solves the problem.

Best regards,
Bruno

jemz October 21, 2014 20:14

Same issue. Tried solution. Not working.
 
Hi Bruno,

I think I am experiencing the same problem. I tried both your solutions but they didnt work. Here is the error msg:

JeremyVM@JeremyVM:~/OpenFOAM/JeremyVM-2.3.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
Xlib: extension "XInputExtension" missing on display ":11.0".
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0

I am only trying to run the tutorial as outlined in openFOAM's cavity tutorial.

Please advise.

Regards,
Jeremy

Jake87 October 24, 2014 10:17

Problem to connect to server - xrdp
 
Hi...i'm new here.
I installed openFoam 2.3.0 on a server with Ubuntu 14.04.
At the server itself paraFoam ist working right but when i start it with remote on my windows computer i get the following error:
Xlib: extension "XInputExtension" missing on display ":10.0".
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0

I tried a lot but have no idea what else i can do. i updated mesa driver and some more. i guess it's a problem of xrdp.
Is there someone who had the same problem and could tell me what to do?
Thanks
Jake

dkxls October 24, 2014 12:15

Not quite sure what's going on there (I'm not an X-server expert ;)).
But one thing to check would be that X-forwarding is supported. On a linux client it would be something like "ssh server -X", no idea how that would be set up on windows.

In any case, X-forwarding is actually a bad idea [1] and I would recommend you to use paraview's own client-server connection.
The setup is very simple, run pvserver on the server and paraview on the client, then just connect to the server in the GUI, details see here [1,2].

[1] http://www.paraview.org/Wiki/ParaVie...ot_a_Good_Idea
[2] http://www.paraview.org/Wiki/Setting...araView_Server

wyldckat October 26, 2014 11:10

Greetings to all!

@Jake87: I moved your post and Armin's answer to this current thread, because it's on the same topic.

@Jake87 and @Jeremy: Can you please detail how you installed OpenFOAM and ParaView? I ask this because that should give us some ideas on how to reproduce this error.


edit: Can you please also try running this command:
Code:

LIBGL_DEBUG=verbose glxinfo
You might need to install first the package "mesa-utils". The utility glxinfo gives a lot of information about the available OpenGL functionalities available in your current display and "LIBGL_DEBUG=verbose" will request a verbose output of the procedures the utility takes to get things running.

Best regards,
Bruno

Jake87 October 27, 2014 04:24

@dkxls: i have a try if it works
@wyldckat: first i tried this one http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu
but didn't work at all.
Then i used a youtube tutorial: http://www.youtube.com/watch?v=LkLgwm64jGI. Now it starts but it crashes after a few seconds.

jemz October 28, 2014 20:44

Hi everyone! I really appreciate the help offered in this community. Thanks!!

@wyldckat: Sorry for the delay in replying! I installed it following http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu
Under the title "2.3 Ubuntu 14.04"

Also, if it helps, I am using xfce because xrdp doesn't work with Ubuntu 14.04.

While running LIBGL_DEBUG=verbose glxinfo, it asked to install mesa-utils (8.1.0-2), which I did.

I then tried LIBGL_DEBUG=verbose glxinfo again and this is what appeared in the terminal:

Code:

libGL: Can't open configuration file /home/JeremyVM/.drirc: No sych file or directory
libGL error: failed to load drivier: swrast

Also a separate window popped up which says:
Code:

Your system is providing 3D via software rendering rather than hardware rendering. This is a compatibility mode which should display 3D graphics properly but the performance may be very poor. If the problem you are reporting is related to graphics performance, your real question may be why X didn't use hardware acceleration for your system.
Please advise.

Regards,
Jeremy

jemz October 28, 2014 21:25

Quote:

Originally Posted by jemz (Post 515442)
Hi Bruno,

I think I am experiencing the same problem. I tried both your solutions but they didnt work. Here is the error msg:

JeremyVM@JeremyVM:~/OpenFOAM/JeremyVM-2.3.0/run/tutorials/incompressible/icoFoam/cavity$ paraFoam
created temporary 'cavity.OpenFOAM'
Xlib: extension "XInputExtension" missing on display ":11.0".
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x0

I am only trying to run the tutorial as outlined in openFOAM's cavity tutorial.

Please advise.

Regards,
Jeremy

It's funny, I upgraded libgl and mesa util and now I get

Xlib: extension "XInputExtension" missing on display ":12.0" (It was 11.0 in my previous post!)

Please advise.

Regards,
Jeremy

wyldckat November 1, 2014 09:28

Hi Jeremy,

Quote:

Originally Posted by jemz (Post 516401)
It's funny, I upgraded libgl and mesa util and now I get

Xlib: extension "XInputExtension" missing on display ":12.0" (It was 11.0 in my previous post!)

The change in the number is because when the new VNC display was created, it had to allocate to another display number. Either the ":11" was still working or there is a file left from the previous session not having been closed properly before rebooting. Have a look into the files present in the folder "~/.vnc".

I got the same problem with the "failed to load driver: swrast" when testing this in a virtual machine.
The problem is that the VNC display does not have access to a decent graphics card (and respective drivers) and instead tries to load the "swrast" driver. But I haven't managed to figure out what's necessary to get this driver up and running. The solution that usually pops-up for this issue is to use VirtualGL along with TurboVNC, for getting a proper VNC with OpenGL display.

Honestly, dkxls' answer in post #5 seems the best solution for this issue, since that solution relies on having only a headless pvserver running on the remote machine and then having the local machine use ParaView to connect to the remote pvserver. This way the data is rendered locally and processed at the remote machine.

Best regards,
Bruno

jemz March 17, 2015 04:05

Paraview Server
 
Quote:

Originally Posted by dkxls (Post 515926)
Not quite sure what's going on there (I'm not an X-server expert ;)).
But one thing to check would be that X-forwarding is supported. On a linux client it would be something like "ssh server -X", no idea how that would be set up on windows.

In any case, X-forwarding is actually a bad idea [1] and I would recommend you to use paraview's own client-server connection.
The setup is very simple, run pvserver on the server and paraview on the client, then just connect to the server in the GUI, details see here [1,2].

[1] http://www.paraview.org/Wiki/ParaVie...ot_a_Good_Idea
[2] http://www.paraview.org/Wiki/Setting...araView_Server

Dear dkxls, I am running ubuntu 14.04 on a virtual machine hosted in an Microsoft Azure Server. I had a previous post regarding some graphics issue and I still haven't fixed that issue. (it seems ubuntu has some graphics issues) The question I have is, what is the paraview server all about? Is it about running backend servers to compile the graphics so that my VM does not have to?

Please advise.

Thank you very much.

wyldckat May 16, 2015 11:20

Quote:

Originally Posted by jemz (Post 536679)
The question I have is, what is the paraview server all about? Is it about running backend servers to compile the graphics so that my VM does not have to?

Quick answer: pvserver was designed for assisting in the handling of very large datasets, including rendering. That is why this section exists in the wiki: http://www.paraview.org/Wiki/Setting...d_pvdataserver

In theory, in your case, you could use pvdataserver in the remote virtual machine and then use pvrenderserver in your local machine/workstation. The your local ParaView would connect to the two servers, namely the remote one and the local one. I've never done this, so I'm not sure how it will perform, but I think it's possible to skip the need of using pvrenderserver and simply use ParaView to only connect to the
pvdataserver.

qiang92 July 13, 2017 01:52

Have anyone solved this problem? Or this is the problem of the ubuntu 14.04?
I tried every method advising above, and none works.
I have to use my windows paraview remotely to spot the paraview in the server.

undefspi March 15, 2020 12:03

I have no idea why this works but found this to work all the same

cd /usr/lib/x86_64-linux-gnu/
cp libxcb.so.1 libxcb.so.1.bak
sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' libxcb.so.1


Reference
https://stackoverflow.com/questions/...-1-atom-ubuntu


All times are GMT -4. The time now is 22:33.