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 #33

Open
SLAGworld opened this issue Apr 17, 2024 · 3 comments
Open

Segmentation Fault #33

SLAGworld opened this issue Apr 17, 2024 · 3 comments

Comments

@SLAGworld
Copy link

When I reach step 4, the script fails with a segmentation fault. The terminal outputs the following error message:
python -X faulthandler utils/body_utils/postprocess.py --dir $EXP_DIR/obj --name $SUBJECT_NAME

Fatal Python error: Segmentation fault
Current thread 0x00007feb5d36d240 (most recent call first):
File "/opt/conda/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 415 in call
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 614 in _bind_and_draw_primitive
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 389 in _forward_pass
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 144 in render
File "/opt/conda/lib/python3.9/site-packages/pyrender/offscreen.py", line 104 in render
File "/data/TeCH/utils/body_utils/lib/common/render_pyrender.py", line 141 in get_image
File "/data/TeCH/utils/body_utils/postprocess.py", line 118 in get_occ_map
File "/data/TeCH/utils/body_utils/postprocess.py", line 125 in
Segmentation fault (core dumped)

@SLAGworld
Copy link
Author

After switching to EGL, I received more detailed error messages:
Traceback (most recent call last):
File "/data/TeCH/utils/body_utils/postprocess.py", line 132, in
left_occ_map = get_occ_map(tech_obj_cp, tech_vert_seg, L_labels_remove, L_labels_occ, 2048)
File "/data/TeCH/utils/body_utils/postprocess.py", line 125, in get_occ_map
_, mask_remove = renderer.get_image('front')
File "/data/TeCH/utils/body_utils/lib/common/render_pyrender.py", line 142, in get_image
color, depth = self.renderer.render(
File "/opt/conda/lib/python3.9/site-packages/pyrender/offscreen.py", line 102, in render
retval = self._renderer.render(scene, flags, seg_node_map)
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 144, in render
retval = self._forward_pass(scene, flags, seg_node_map=seg_node_map)
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 326, in _forward_pass
self._configure_forward_pass_viewport(flags)
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 1012, in _configure_forward_pass_viewport
self._configure_main_framebuffer()
File "/opt/conda/lib/python3.9/site-packages/pyrender/renderer.py", line 1067, in _configure_main_framebuffer
glRenderbufferStorage(
File "/opt/conda/lib/python3.9/site-packages/OpenGL/platform/baseplatform.py", line 415, in call
return self( *args, **named )
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1281,
baseOperation = glRenderbufferStorage,
cArguments = (
GL_RENDERBUFFER,
GL_RGBA,
16384,
16384,
)
)

@NeuroLord
Copy link

Have you been able to get around this error? I'm getting a similar message:
scripts/run.sh: line 47: 13007 Segmentation fault python cores/main_mc.py --config configs/tech_mc_geometry.yaml --exp_dir ${EXP_DIR} --sub_name ${SUBJECT_NAME}

@amerssun
Copy link

same error

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

3 participants