Skip to content

Segfault when using 'distortion_method' = 'none' #1073

@matthiasfabry

Description

@matthiasfabry

Phoebe segfaults in the mesh_radiosity_problem_nbody_convex when selecting no distortion.

MWE:

import phoebe as p

lggr = p.logger()

b = p.default_binary()
b.add_dataset('lc', compute_phases=p.linspace(-0.5, 0.5, 50))
b.set_value_all('distortion_method', 'none')
b.run_compute()

stack trace:

0   libphoebe.cpython-311-darwin.so	       0x15a0ccdcb void PyArray_To3DPointVector<double>(tagPyArrayObject*, std::__1::vector<T3Dpoint<double>, std::__1::allocator<T3Dpoint<double>>>&) + 27
1   libphoebe.cpython-311-darwin.so	       0x15a088439 mesh_radiosity_problem_nbody_convex(_object*, _object*, _object*) + 1097
2   python                        	       0x1047c04e8 cfunction_call + 56
3   python                        	       0x1048b5683 _PyEval_EvalFrameDefault + 235091
4   python                        	       0x10475d898 _PyFunction_Vectorcall + 3064
5   python                        	       0x104762b4b method_vectorcall + 363
6   python                        	       0x1048bb546 _PyEval_EvalFrameDefault + 259350
7   python                        	       0x10475d898 _PyFunction_Vectorcall + 3064
8   python                        	       0x104762b4b method_vectorcall + 363
9   python                        	       0x1048bb546 _PyEval_EvalFrameDefault + 259350
10  python                        	       0x10475d898 _PyFunction_Vectorcall + 3064
11  python                        	       0x104762b4b method_vectorcall + 363
12  python                        	       0x1048bb546 _PyEval_EvalFrameDefault + 259350
13  python                        	       0x10475d898 _PyFunction_Vectorcall + 3064
14  python                        	       0x1048bb162 _PyEval_EvalFrameDefault + 258354
15  python                        	       0x10487a0d4 _PyEval_Vector + 2996
16  python                        	       0x1048794a9 PyEval_EvalCode + 249
17  python                        	       0x1048743ad builtin_exec + 381
18  python                        	       0x1048b982a _PyEval_EvalFrameDefault + 251898
19  python                        	       0x104778aea gen_send_ex2 + 202
20  python                        	       0x10488a322 _PyEval_EvalFrameDefault + 58098
21  python                        	       0x104778aea gen_send_ex2 + 202
22  python                        	       0x10488a322 _PyEval_EvalFrameDefault + 58098
23  python                        	       0x104778aea gen_send_ex2 + 202
24  python                        	       0x1047792ba gen_send + 42
25  python                        	       0x10476eaf5 method_vectorcall_O + 117
26  python                        	       0x1048b4a44 _PyEval_EvalFrameDefault + 231956
27  python                        	       0x10487a0d4 _PyEval_Vector + 2996
28  python                        	       0x1048794a9 PyEval_EvalCode + 249
29  python                        	       0x1049285b8 run_mod + 168
30  python                        	       0x1049283c5 pyrun_file + 133
31  python                        	       0x104927ea3 _PyRun_SimpleFileObject + 275
32  python                        	       0x10492783f _PyRun_AnyFileObject + 143
33  python                        	       0x10494c00b pymain_run_file_obj + 267
34  python                        	       0x10494ba85 pymain_run_file + 85
35  python                        	       0x10494b3fe Py_RunMain + 1966
36  python                        	       0x1046e96a8 main + 56
37  dyld                          	    0x7ff805d32530 start + 3056

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions