Skip to content

OffScreenRenderer with Python and Docker on Linux #5001

Answered by dancergraham
dancergraham asked this question in Q&A
Discussion options

You must be logged in to vote

** UPDATE ; See reply below for solution **

The following Dockerfile, using xvfb with xvfb-run and requiring xauth seems to work, in that it generates the test images but then something clearly goes very wrong afterwards. I am able to work around this by running the python code via multiprocessing as described here: #4437

Output

FEngine (64 bits) created at 0x7f167660f010 (threading is enabled)
FEngine resolved backend: OpenGL
Saving image at test.png
Saving image at test2.png
corrupted size vs. prev_size in fastbins
Aborted (core dumped)

Dockerfile

# This could also be another Ubuntu or Debian based distribution
FROM python:3.9-bullseye

# Install Open3D system dependencies and pip
RUN a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@forrestjgq
Comment options

@dancergraham
Comment options

Answer selected by dancergraham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants