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

segmentation_fault #13

Open
cduguet opened this issue Jul 22, 2023 · 2 comments
Open

segmentation_fault #13

cduguet opened this issue Jul 22, 2023 · 2 comments

Comments

@cduguet
Copy link

cduguet commented Jul 22, 2023

Hi!

By trying to run both easy_pbr and permuto_sdf I encounter the problem Segmentation fault (core dumped).

When I'm trying to run permuto:

python permuto_sdf_py/train_permuto_sdf.py --dataset dtu \
> --scene dtu_scan24 \
> --comp_name comp_3 \
> --exp_info default
args.with_mask False
args.low_res False
checkpoint_path /workspace/permuto_sdf/checkpoints
with_viewer True
has_apex True
[    EE1F9740]DataLoaderDTU.cxx:173      1| loaded nr of scenes 1 for mode train
[    EE1F9740]DataLoaderDTU.cxx:432      1| reading poses and intrinsics for scene "dtu_scan24"
[    EE1F9740]DataLoaderDTU.cxx:173      1| loaded nr of scenes 1 for mode test
[    EE1F9740]DataLoaderDTU.cxx:432      1| reading poses and intrinsics for scene "dtu_scan24"
[    EE1F9740]    Mesh.cxx:3417     1| read obj with path /workspace/easy_pbr/data/sphere.obj
Segmentation fault (core dumped)

When I'm trying to run examples/pbr.py I get:

(many more warnings)...
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name render_uv_to_gbuffer is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name MV is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name colors_are_precomputed_ao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name render_uv_to_gbuffer is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name MV is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name colors_are_precomputed_ao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name render_uv_to_gbuffer is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name MV is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name colors_are_precomputed_ao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name render_uv_to_gbuffer is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name MV is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name colors_are_precomputed_ao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name render_uv_to_gbuffer is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name MV is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name colors_are_precomputed_ao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name enable_ssao is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
[    55060740]  Shader.cxx:409   WARN| draw_mesh: Uniform location for name get_ao_from_precomputation is invalid. Are you sure you are using the uniform in the shader? Maybe you are also binding too many stuff.
Segmentation fault (core dumped)

How can I solve this? I'm out of options.

@RaduAlexandru
Copy link
Owner

Hi @cduguet,

In general easypbr is not meant to run on a headless machine. To disable it, you can run the training script with the "--no_viewer" flag.
Please let me know if that solves the issue for you.

@cduguet
Copy link
Author

cduguet commented Aug 4, 2023

Hello,
I have already tried running with --no_viewer in the past, but my results so far are just gibberish, so I wanted to use the viewer to debug camera positions and maybe other factors.
In what platforms/OS is the software tested to work?

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

2 participants