Skip to content

segmentation fault #99

@kamwoh

Description

@kamwoh

just in case anyone faces segmentation fault when running marching cubes to save mesh:

res = args.marching_cubes_res or 256
...
testbed.compute_and_save_marching_cubes_mesh
...

i find that removing the folder dependencies/pybind11 and git clone https://github.com/pybind/pybind11.git to replace this pybind11 works well.


when i debug segmentation fault i find running ngp.BoundingBox([0.0, 0.0, 0.0], [1.0, 1.0, 1.0]) causes segmentation fault but ngp.BoundingBox() doesn't.

i suspect is my own numpy/python (as i didn't exactly follow the installation) may be too new, therefore the bridge pybind11 might be old too (as it was 2 years ago's repo) so i remove pybind11 and uses latest pybind11 and fixes segmentation fault!

(not familiar with c++ and pybind11 so i cannot sure what was the exact reason but probably some format issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions