Skip to content

Segmentation fault (core dumped) when running example simulation #22

@ncr292

Description

@ncr292

Hello,
I am trying this awesome package but I run into some small problems which I wanted to report.
Emerge 1.0.3 crashes with a segmentation fault when running the example simulation, in particular when generating the mesh.

Steps to reproduce:
conda create -n emerge
conda activate emerge
conda install -c conda-forge pip
pip install emerge
Then copy-paste the first example in the user manual -- where btw there is a typo in line 23, missing capital "w". Eventually
python example.py
gives
[INFO] Setting frequency as [...] [INFO] Adding PEC boundary condition with tags []. Segmentation fault (core dumped)

Environment:

Emerge 1.0.3
Python 3.13.7
NumPy 2.2.6
Numba 0.61.2

OS: Linux (Ubuntu 24.04.3 LTS x86_64)

Notes
The crash happens on model.generate_mesh(), and it is almost instantaneous, no system resource is being consumed. Both libopenblas-dev and libsuitesparse-dev are installed system wide.

Temporary solution
Downgrading to Python 3.11 with compatible NumPy/Numba resolves the issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions