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

Issue for visualization #1

Open
leihouyeung opened this issue Oct 11, 2022 · 8 comments
Open

Issue for visualization #1

leihouyeung opened this issue Oct 11, 2022 · 8 comments

Comments

@leihouyeung
Copy link

Thanks for such an excellent work. When I tried to visualize the point cloud, the following issue was raised:

[xcb] Unknown request in queue while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python3: ../../src/xcb_io.c:151: append_pending_request: Assertion `!xcb_xlib_unknown_req_pending' failed.

It looks like the issue happened on the 'p.write_frame()' function.

Hope for your answer. Thanks。

@marcniethammer
Copy link
Contributor

Sounds like it might be an issue with the xserver. Are you running this remotely?

@leihouyeung
Copy link
Author

Yes, I ran it remotely. Is there any way I could save the GIF?

@marcniethammer
Copy link
Contributor

Seems like a problem with pyvista and the xserver. @hbgtjxzbbx do you know what could be causing this?

@leihouyeung
Copy link
Author

I tried to run locally. But it did not work either.

@marcniethammer
Copy link
Contributor

With the same error message?

@leihouyeung
Copy link
Author

Yes. I tried to fix the bug but in vain. I have to use another way of visualization now. Thanks for your response.

@hbgtjxzbbx
Copy link
Collaborator

Sorry for the late reply. if you run it remotely in headless display mode, please follow pyvista installation guide.
https://docs.pyvista.org/getting-started/installation.html

sudo apt-get install libgl1-mesa-dev
sudo apt-get install lxvfb

Then, you need to configure the headless display, for MyBinder, create a file called start and include the following set up script that will run every time your Docker container is launched:

#!/bin/bash
set -x
export DISPLAY=:99.0
export PYVISTA_OFF_SCREEN=true
export PYVISTA_USE_IPYVTK=true
which Xvfb
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
set +x
exec "$@"

@threeneedone
Copy link

colab

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

No branches or pull requests

4 participants