isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.23k stars 2.28k forks source link

Segmentation Fault for Open3d Visualization in Tensorboard #5010

Closed Nireil closed 2 years ago

Nireil commented 2 years ago

Checklist

Describe the issue

I have been runing tensorboard --logdir demo_logs/ to visualize the examples(the *.msgpack files really exist) in Open3D and Open3D-ML. However, everytime I run this command, it results in a segmentation fault.

Steps to reproduce the bug

python examples/visualization/tensorboard_pytorch.py small_scales
tensorboard --logdir demo_logs/pytorch

Error message

2022-04-18 11:11:27.637181: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudart.so.11.0

NOTE: Using experimental fast data loading logic. To disable, pass "--load_fast=false" and report issues on GitHub. More details: https://github.com/tensorflow/tensorboard/issues/4784

Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all TensorBoard 2.8.0 at http://localhost:6008/ (Press CTRL+C to quit) [Open3D INFO] WebRTCWindowSystem: HTTP handshake server disabled. [Open3D INFO] WebRTC GUI backend enabled. [Open3D INFO] Resetting default logger to print to terminal. [Open3D INFO] Window window_0 created. [Open3D INFO] EGL headless mode enabled. [Open3D INFO] ICE servers: {"stun:stun.l.google.com:19302", "turn:user:password@34.69.27.100:3478", "turn:user:password@34.69.27.100:3478?transport=tcp"} [Open3D INFO] Set WEBRTC_STUN_SERVER environment variable add a customized WebRTC STUN server. [Open3D INFO] WebRTC Jupyter handshake mode enabled. FEngine (64 bits) created at 0x7f530c007900 (threading is enabled) eglInitialize failed Fatal Python error: Segmentation fault

Current thread 0x00007f533d3b0700 (most recent call first): File "/data/panjieyun/.local/lib/python3.8/site-packages/open3d/visualization/async_event_loop.py", line 98 in _thread_main File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 870 in run File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 932 in _bootstrap_inner File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f533dbb1700 (most recent call first): File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socket.py", line 669 in readinto File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 395 in handle_one_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 427 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 347 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 747 in init File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 360 in finish_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 683 in process_request_thread File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 870 in run File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 932 in _bootstrap_inner File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f533e3b2700 (most recent call first): File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socket.py", line 669 in readinto File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 395 in handle_one_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 427 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 347 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 747 in init File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 360 in finish_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 683 in process_request_thread File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 870 in run File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 932 in _bootstrap_inner File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f533f3b4700 (most recent call first): File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 302 in wait File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 337 in wait_for File "/data/panjieyun/.local/lib/python3.8/site-packages/open3d/visualization/async_event_loop.py", line 83 in run_sync File "/data/panjieyun/.local/lib/python3.8/site-packages/open3d/visualization/tensorboard_plugin/plugin.py", line 475 in _start_gui File "/data/panjieyun/.local/lib/python3.8/site-packages/open3d/visualization/tensorboard_plugin/plugin.py", line 708 in _new_window File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/wrappers/request.py", line 187 in application File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/application.py", line 548 in _route_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/application.py", line 589 in wrapper File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/empty_path_redirect.py", line 43 in call File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/experiment_id.py", line 73 in call File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/path_prefix.py", line 68 in call File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/security_validator.py", line 77 in call File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/application.py", line 566 in wrapper File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/backend/application.py", line 525 in call File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 306 in execute File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 319 in run_wsgi File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 415 in handle_one_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/http/server.py", line 429 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 347 in handle File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 747 in init File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 360 in finish_request File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 683 in process_request_thread File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 870 in run File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 932 in _bootstrap_inner File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x00007f54766b33c0 (most recent call first): File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/selectors.py", line 415 in select File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/socketserver.py", line 232 in serve_forever File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/werkzeug/serving.py", line 723 in serve_forever File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/program.py", line 295 in _run_serve_subcommand File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/program.py", line 276 in main File "/data/panjieyun/.local/lib/python3.8/site-packages/absl/app.py", line 258 in _run_main File "/data/panjieyun/.local/lib/python3.8/site-packages/absl/app.py", line 312 in run File "/data/panjieyun/.conda/envs/open3d/lib/python3.8/site-packages/tensorboard/main.py", line 46 in run_main File "/data/panjieyun/.conda/envs/open3d/bin/tensorboard", line 8 in 段错误 (核心已转储)

Expected behavior

the visualization result can be displayed normally in tensorboard

Open3D, Python and System information

- Operating system: Ubuntu 20.04
- Python version: Python 3.8.13
- Open3D version: 0.15.2
- System architecture: x86
- Is this a remote workstation?: yes
- How did you install Open3D?: pip

Additional information

jonyzhang2023 commented 2 years ago

same question.

jonyzhang2023 commented 2 years ago

hi nireil, when i use a ubuntu pc with a monitor, this problem could be fixed. i think it is the server without a monitor that made this problem. (like vnc problem)

Nireil commented 2 years ago

hi nireil, when i use a ubuntu pc with a monitor, this problem could be fixed. i think it is the server without a monitor that made this problem. (like vnc problem)

oh, I also get examples' result use a ubuntu pc with a monitor. Thank you!

Nireil commented 2 years ago

hi nireil, when i use a ubuntu pc with a monitor, this problem could be fixed. i think it is the server without a monitor that made this problem. (like vnc problem)

oh, I also get examples' result use a ubuntu pc with a monitor. Thank you!

And the problem exists in a local vscode terminal that SSH connet to the remote server. When I use the remote desktop, it also could be fixed.

jonyzhang2023 commented 2 years ago

hi nireil, when i use a ubuntu pc with a monitor, this problem could be fixed. i think it is the server without a monitor that made this problem. (like vnc problem)

oh, I also get examples' result use a ubuntu pc with a monitor. Thank you!

And the problem exists in a local vscode terminal that SSH connet to the remote server. When I use the remote desktop, it also could be fixed.

YES. I used open3d and lots of vi tools like mayavi and pcl. (openGL also) When there is no monitor or desktop, lots of bugs come up. (vnc does not work)

muonmax commented 2 years ago

Has anyone found a solution besides plugging in a monitor?

chyohoo commented 2 years ago

I got the same error when I tried to visualize inside a remote docker container. It works fine when I visualized it outside the container.

yuvalH9 commented 2 years ago

Is there any solution for this issue when connecting to a remote server without a server?

tomas-aftalion commented 1 year ago

same here

JD0316 commented 9 months ago

I had a same problem,it is successful when i visualize pointcloud and box in server without monitor at first ,But when i try visualize nextday , i met same problem.

any solution ? except plugging in a monitor

rubengrab commented 4 months ago

Did anyone managed to find the reason for this exact error?

lileai commented 2 months ago

My visualization is successful with non-tensorboard, but visualizing the results with tensorboard gives me the following problem, and I'm using an ubuntu system that has a graphical operator interface: [Open3D INFO] WebRTCWindowSystem: HTTP handshake server disabled. [Open3D INFO] WebRTC GUI backend enabled. [Open3D INFO] Resetting default logger to print to terminal. [Open3D INFO] Window window_0 created. [Open3D INFO] EGL headless mode enabled. [Open3D INFO] ICE servers: ["stun:stun.l.google.com:19302", "turn:user:password@34.69.27.100:3478", "turn:user:password@34.69.27.100:3478?transport=tcp"] FEngine (64 bits) created at 0x7f7660036830 (threading is enabled) eglInitialize failed Fatal Python error: Segmentation fault