Skip to content

BUG: segfault on exit #13

@tylerjereddy

Description

@tylerjereddy

This is clearly visible in recent CI logs like the Linux pytest run here: https://github.com/yuxuanzhuang/ggmolvis/actions/runs/12759069444/job/35562217197

Also reproducible on latest main branch on ARM Mac locally with:

  • python -m pip install -v .
  • pytest -n 2
<snip>
============================================================================ 25 passed, 3 xfailed, 2 warnings in 4.07s ============================================================================
/Users/treddy/python_venvs/py_311_mda_dev/lib/python3.11/site-packages
2025-02-22 20:30:20.799 | DEBUG    | ggmolvis:<module>:50 - Blend file stored at /var/folders/5_/hm0ft57n6dn2ksgg2p0bx5h0000w2g/T/ggmolvis.blend
2025-02-22 20:30:22.019 | DEBUG    | ggmolvis.ggmolvis:__new__:85 - Creating new GGMolVis
Read blend: "/var/folders/5_/hm0ft57n6dn2ksgg2p0bx5h0000w2g/T/ggmolvis.blend"
zsh: segmentation fault  pytest -n 2

Can also be reproduced with a simple import Python script:

import ggmolvis
2025-02-22 20:35:50.010 | DEBUG    | ggmolvis:<module>:50 - Blend file stored at /var/folders/5_/hm0ft57n6dn2ksgg2p0bx5h0000w2g/T/ggmolvis.blend
2025-02-22 20:35:50.336 | DEBUG    | ggmolvis.ggmolvis:__new__:85 - Creating new GGMolVis
Read blend: "/var/folders/5_/hm0ft57n6dn2ksgg2p0bx5h0000w2g/T/ggmolvis.blend"
zsh: segmentation fault  python probe.py

Importing molecularnodes and bpy in isolation does not segfault of course.

I suspect others have noticed this since it consistently happens at control flow exit, but it may not be a priority since it seems you can otherwise do the work you need just fine beforehand.

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