Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Error with plugin "xcb" #7

Open
TomKrogmann opened this issue Nov 10, 2021 · 3 comments
Open

Qt Error with plugin "xcb" #7

TomKrogmann opened this issue Nov 10, 2021 · 3 comments
Labels

Comments

@TomKrogmann
Copy link

TomKrogmann commented Nov 10, 2021

Hi everybody,

I'm facing an error when trying to plot with the gnuplot package inside the gnuplot shell using the command : "plot 'contCumulative_0"

Error message:

Could not connect to existing gnuplot_qt. Starting a new one.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Same error appears when trying to visualize the results with ParaView on the command "paraview post.foam". I installed gnuplot using "sudo apt install gnuplot".

Someone facing the same error?

Edit:
Of course reinstalling xcb could be a possible solution, but I've had bad experience with installing/reinstalling packages I'm not sure about and this has already destroyed complete setups/environments for me.

@AndreWeiner
Copy link
Owner

AndreWeiner commented Nov 10, 2021

Hi @Tooom615,

do you have a native Linux installation or do you use WSL?
Edit: in case of WSL, this link might help you.

Best, Andre

@TomKrogmann
Copy link
Author

Hi @AndreWeiner,

I'm using WSL2 and the link fixed the error.
Thank you !

@JanisGeise
Copy link
Collaborator

Hi @AndreWeiner,

it seems like the fix you provided leads to another issue when trying to execute sudo apt-get update:

E: The repository 'http://packages.ros.org/ros/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I will write a more detailed report about the issue once I found a way to fix it, so for now this is just a reminder.

Regards,
Janis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants