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

segfault when only running one simulation (doing plotting) #43

Open
FinbarArgus opened this issue Aug 30, 2024 · 0 comments
Open

segfault when only running one simulation (doing plotting) #43

FinbarArgus opened this issue Aug 30, 2024 · 0 comments

Comments

@FinbarArgus
Copy link
Owner

FinbarArgus commented Aug 30, 2024

When I run the ./plot_param_id.py, there is a segfault when releasing the values after the simulation. I have temporarily fixed this with the following line:

        if only_one_exp != -1:
            # for some reason if i only do one simulation and then release values there is a seg fault.
            # so here i don't release all values.
            self.simulation.release_all_values()

Error message was:
[bn437516:1189968] *** Process received signal ***
[bn437516:1189968] Signal: Segmentation fault (11)
[bn437516:1189968] Signal code: Address not mapped (1)
[bn437516:1189968] Failing at address: 0x7f9cf5e15b10
[bn437516:1189968] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f9da3242520]
[bn437516:1189968] [ 1] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x433a56)[0x7f9d87433a56]
[bn437516:1189968] [ 2] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x433cd2)[0x7f9d87433cd2]
[bn437516:1189968] [ 3] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x433cd2)[0x7f9d87433cd2]
[bn437516:1189968] [ 4] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x436625)[0x7f9d87436625]
[bn437516:1189968] [ 5] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x2551b5)[0x7f9d872551b5]
[bn437516:1189968] [ 6] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x257ad5)[0x7f9d87257ad5]
[bn437516:1189968] [ 7] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x256e69)[0x7f9d87256e69]
[bn437516:1189968] [ 8] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x25d57d)[0x7f9d8725d57d]
[bn437516:1189968] [ 9] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(_PyEval_EvalFrameDefault+0x5344)[0x7f9da4d2c7f4]
[bn437516:1189968] [10] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyObject_Vectorcall+0x55)[0x7f9da4d4bfc5]
[bn437516:1189968] [11] /home/farg967/software/OpenCOR-2024-08-23-Linux/Python/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-x86_64-linux-gnu.so(+0x148083)[0x7f9d87148083]
[bn437516:1189968] [12] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyObject_Vectorcall+0x55)[0x7f9da4d4bfc5]
[bn437516:1189968] [13] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(_PyEval_EvalFrameDefault+0x37b4)[0x7f9da4d2ac64]
[bn437516:1189968] [14] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyEval_EvalCode+0xb5)[0x7f9da4e83cd5]
[bn437516:1189968] [15] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(+0x280e48)[0x7f9da4e80e48]
[bn437516:1189968] [16] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(+0x1b9c51)[0x7f9da4db9c51]
[bn437516:1189968] [17] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyObject_Vectorcall+0x55)[0x7f9da4d4bfc5]
[bn437516:1189968] [18] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(_PyEval_EvalFrameDefault+0x37b4)[0x7f9da4d2ac64]
[bn437516:1189968] [19] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyEval_EvalCode+0xb5)[0x7f9da4e83cd5]
[bn437516:1189968] [20] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(+0x2f3ffd)[0x7f9da4ef3ffd]
[bn437516:1189968] [21] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(+0x2f4105)[0x7f9da4ef4105]
[bn437516:1189968] [22] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/../lib/libpython3.12.so(PyRun_StringFlags+0x6e)[0x7f9da4ef76ee]
[bn437516:1189968] [23] /home/farg967/software/OpenCOR-2024-08-23-Linux/plugins/OpenCOR/../../lib/libPythonQt.so.3(_ZN8PythonQt10evalScriptEP7_objectRK7QStringi+0x178)[0x7f9d9d849248]
[bn437516:1189968] [24] /home/farg967/software/OpenCOR-2024-08-23-Linux/plugins/OpenCOR/libPythonQtSupport.so(_ZN7OpenCOR15PythonQtSupport14evaluateScriptERK7QString+0x58)[0x7f9da534bef8]
[bn437516:1189968] [25] /home/farg967/software/OpenCOR-2024-08-23-Linux/plugins/OpenCOR/libPythonShell.so(_ZN7OpenCOR11PythonShell17PythonShellPlugin9runPythonERK11QStringListRi+0x973)[0x7f9d98ddfa03]
[bn437516:1189968] [26] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/OpenCOR[0x446966]
[bn437516:1189968] [27] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/OpenCOR[0x44a335]
[bn437516:1189968] [28] /home/farg967/software/OpenCOR-2024-08-23-Linux/bin/OpenCOR[0x41c2a7]
[bn437516:1189968] [29] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f9da3229d90]
[bn437516:1189968] *** End of error message ***
Segmentation fault (core dumped)

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

1 participant