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

pyrender: Failed rendering frame #60

Open
yosagaf opened this issue Dec 14, 2020 · 7 comments
Open

pyrender: Failed rendering frame #60

yosagaf opened this issue Dec 14, 2020 · 7 comments

Comments

@yosagaf
Copy link

yosagaf commented Dec 14, 2020

I'm trying to launch the demo and i'm still getting this error.
What could be the solution ?

Thanks.

@MitchellX
Copy link

Try to include this argc --visualize False, e.g. python xxx --visualize False

the author says:
By default, running the demo uses pyrender to render the sequence to a video, however this causes problems for certain configurations (e.g. if running the code remotely). In this case try running the demo with an additional flag --visualize False to disable the visualization. The animated meshes are then still stored to the output directory and can be viewed or rendered with another tool.

@yosagaf
Copy link
Author

yosagaf commented Dec 25, 2020

Thanks guys, I can see the meshes with online 3D viewer.
I'm using Linux machine, is there a solution to render the sequence video.

@liyuanyaun
Copy link

Thanks guys, I can see the meshes with online 3D viewer.
I'm using Linux machine, is there a solution to render the sequence video.

i an in the same case, could you solve this problem? and can you share you solution? thank you very much

@Alidar40
Copy link

Alidar40 commented Mar 9, 2021

@liyuanyaun @yosagaf
Had this errors:
pyrender: Failed rendering frame
Segmentation fault (core dumped)

Fixed by downgrading CUDA to 10.0 and CuDNN to 7.6.5
Then commented out this lines in utils/rendering.py:
os.environ['PYOPENGL_PLATFORM'] = 'egl'

Configuration:
Pop os 20.04
gtx 1060 6Gb, driver version 460.39
python 3.16.13
tensorflow 1.15.2
ffmpeg version 4.2.4-1ubuntu0.1

@aszxnm
Copy link

aszxnm commented Jan 10, 2022

@liyuanyaun @yosagaf Had this errors: pyrender: Failed rendering frame Segmentation fault (core dumped)

Fixed by downgrading CUDA to 10.0 and CuDNN to 7.6.5 Then commented out this lines in utils/rendering.py: os.environ['PYOPENGL_PLATFORM'] = 'egl'

Configuration: Pop os 20.04 gtx 1060 6Gb, driver version 460.39 python 3.16.13 tensorflow 1.15.2 ffmpeg version 4.2.4-1ubuntu0.1

I close the os.environ['PYOPENGL_PLATFORM'] = 'egl' and the question disappeared.

@sdulyq
Copy link

sdulyq commented Jan 18, 2022

I tried 3 days to solve this bug,and I finally know how to solve it.

  • First circumstance: I use virtual box(A virtual machine software) to run the demo. I think it is not a good way because it's hard to find where the bug is.
  • Second circumstance: I use xshell(A remote machine softward) to run the demo. And I finally solve the problem by following steps:
  1. use the address https://pyrender.readthedocs.io/en/latest/install/index.html#installmesa to install osmega
  2. os.environ['PYOPENGL_PLATFORM']='egl' should not be commented in rendering.py but commented in visualize_sequence.py
  3. Pay attention to the opengl version. Although in the readme you install mesh after pip install -r requirements.txt, you should input pip install -r requirements.txt again after installing mesh. I notice that too high version of opengl will not be supported in remote machine.

@QifengDai
Copy link

I solved the problem by just commenting out the os.environ['PYOPENGL_PLATFORM']='egl' in rendering.py.

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

7 participants