Open3D-ML
Open3D-ML copied to clipboard
Open3D docker visualization python segfault
Checklist
- [X] I have searched for similar issues.
- [X] I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
master
branch).
Describe the issue
I have been trying to get Open3D-ML to work within a docker environment such that tensorboard can be run from inside the docker container and viewed on my local browser. The Dockerfile set up works correctly and the tensorboard command works fine inside the container. However, when I navigate to localhost:6006 I receive the segfault seen below. I have tried adding the correct port forwarding -p 6006:6006 and passing the --bind_all command as well. Curious if anyone has been successful getting docker to run from Open3D-ML tensorboard inside the container?
Steps to reproduce the bug
The dockerfile I'm using has some sensitive information but an outline of the steps are as follows:
- Create a dockerfile for Open3D-ML from the installation guide
- expose port for tensorboard -p 6006:6006
- bind volumes -v /summary_path:/summary_path
- Execute docker run command to go into docker container
- Run tensorboard --logdir /summary_path --bind_all
- Go to localhost:6006 on your browser
- See segfault
Error message
j316chuck@009f5e361d01:/ml$ tensorboard --logdir logdir --bind_all
2022-04-01 20:43:35.901822: 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
TensorBoard 2.8.0 at http://009f5e361d01:6006/ (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:[email protected]:3478", "turn:user:[email protected]:3478?transport=tcp"}
FEngine (64 bits) created at 0x7f391c007560 (threading is enabled)
[Open3D INFO] Set WEBRTC_STUN_SERVER environment variable add a customized WebRTC STUN server.
[Open3D INFO] WebRTC Jupyter handshake mode enabled.
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: DRI2: failed to authenticate
EGL(1.4)
eglCreateContext failed with EGL_BAD_MATCH
Fatal Python error: Segmentation fault
Current thread 0x00007f3942f8a700 (most recent call first):
File "/opt/conda/lib/python3.7/site-packages/open3d/visualization/async_event_loop.py", line 98 in _thread_main
File "/opt/conda/lib/python3.7/threading.py", line 870 in run
File "/opt/conda/lib/python3.7/threading.py", line 926 in _bootstrap_inner
File "/opt/conda/lib/python3.7/threading.py", line 890 in _bootstrap
Thread 0x00007f3943fff700 (most recent call first):
File "/opt/conda/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 704 in is_directory_v2
File "/opt/conda/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 690 in is_directory
File "/opt/conda/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 768 in list_directory_v2
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/event_processing/plugin_asset_util.py", line 76 in ListAssets
File "/opt/conda/lib/python3.7/site-packages/tensorboard/plugins/projector/projector_plugin.py", line 527 in _append_plugin_asset_directories
File "/opt/conda/lib/python3.7/site-packages/tensorboard/plugins/projector/projector_plugin.py", line 351 in _update_configs
File "/opt/conda/lib/python3.7/site-packages/tensorboard/plugins/projector/projector_plugin.py", line 331 in _determine_is_active
File "/opt/conda/lib/python3.7/threading.py", line 870 in run
File "/opt/conda/lib/python3.7/threading.py", line 926 in _bootstrap_inner
File "/opt/conda/lib/python3.7/threading.py", line 890 in _bootstrap
Thread 0x00007f3948e8b700 (most recent call first):
File "/opt/conda/lib/python3.7/socket.py", line 589 in readinto
File "/opt/conda/lib/python3.7/http/server.py", line 394 in handle_one_request
File "/opt/conda/lib/python3.7/http/server.py", line 428 in handle
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 347 in handle
File "/opt/conda/lib/python3.7/socketserver.py", line 720 in __init__
File "/opt/conda/lib/python3.7/socketserver.py", line 360 in finish_request
File "/opt/conda/lib/python3.7/socketserver.py", line 650 in process_request_thread
File "/opt/conda/lib/python3.7/threading.py", line 870 in run
File "/opt/conda/lib/python3.7/threading.py", line 926 in _bootstrap_inner
File "/opt/conda/lib/python3.7/threading.py", line 890 in _bootstrap
Thread 0x00007f394968c700 (most recent call first):
File "/opt/conda/lib/python3.7/threading.py", line 296 in wait
File "/opt/conda/lib/python3.7/threading.py", line 331 in wait_for
File "/opt/conda/lib/python3.7/site-packages/open3d/visualization/async_event_loop.py", line 83 in run_sync
File "/opt/conda/lib/python3.7/site-packages/open3d/visualization/tensorboard_plugin/plugin.py", line 477 in _start_gui
File "/opt/conda/lib/python3.7/site-packages/open3d/visualization/tensorboard_plugin/plugin.py", line 708 in _new_window
File "/opt/conda/lib/python3.7/site-packages/werkzeug/wrappers/request.py", line 187 in application
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/application.py", line 548 in _route_request
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/application.py", line 589 in wrapper
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/empty_path_redirect.py", line 43 in __call__
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/experiment_id.py", line 73 in __call__
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/path_prefix.py", line 68 in __call__
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/security_validator.py", line 77 in __call__
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/application.py", line 566 in wrapper
File "/opt/conda/lib/python3.7/site-packages/tensorboard/backend/application.py", line 525 in __call__
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 306 in execute
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 319 in run_wsgi
File "/opt/conda/lib/python3.7/http/server.py", line 414 in handle_one_request
File "/opt/conda/lib/python3.7/http/server.py", line 428 in handle
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 347 in handle
File "/opt/conda/lib/python3.7/socketserver.py", line 720 in __init__
File "/opt/conda/lib/python3.7/socketserver.py", line 360 in finish_request
File "/opt/conda/lib/python3.7/socketserver.py", line 650 in process_request_thread
File "/opt/conda/lib/python3.7/threading.py", line 870 in run
File "/opt/conda/lib/python3.7/threading.py", line 926 in _bootstrap_inner
File "/opt/conda/lib/python3.7/threading.py", line 890 in _bootstrap
Thread 0x00007f3949e8d700 (most recent call first):
File "/opt/conda/lib/python3.7/socket.py", line 589 in readinto
File "/opt/conda/lib/python3.7/http/server.py", line 394 in handle_one_request
File "/opt/conda/lib/python3.7/http/server.py", line 428 in handle
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 347 in handle
File "/opt/conda/lib/python3.7/socketserver.py", line 720 in __init__
File "/opt/conda/lib/python3.7/socketserver.py", line 360 in finish_request
File "/opt/conda/lib/python3.7/socketserver.py", line 650 in process_request_thread
File "/opt/conda/lib/python3.7/threading.py", line 870 in run
File "/opt/conda/lib/python3.7/threading.py", line 926 in _bootstrap_inner
File "/opt/conda/lib/python3.7/threading.py", line 890 in _bootstrap
Thread 0x00007f3a94f18740 (most recent call first):
File "/opt/conda/lib/python3.7/selectors.py", line 415 in select
File "/opt/conda/lib/python3.7/socketserver.py", line 232 in serve_forever
File "/opt/conda/lib/python3.7/site-packages/werkzeug/serving.py", line 723 in serve_forever
File "/opt/conda/lib/python3.7/site-packages/tensorboard/program.py", line 295 in _run_serve_subcommand
File "/opt/conda/lib/python3.7/site-packages/tensorboard/program.py", line 276 in main
File "/opt/conda/lib/python3.7/site-packages/absl/app.py", line 258 in _run_main
File "/opt/conda/lib/python3.7/site-packages/absl/app.py", line 312 in run
File "/opt/conda/lib/python3.7/site-packages/tensorboard/main.py", line 46 in run_main
File "/opt/conda/bin/tensorboard", line 8 in <module>
Expected behavior
tensorboard runs in docker container same as in local computer.
Open3D, Python and System information
- Docker, python 3.7, open3d-ml, installed with tensorflow requirements.
Additional information
No response
same question
hi chuck, 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)