Process finished with exit code 138 (interrupted by signal 10: SIGBUS)

1,274 views
Skip to first unread message

Konstantinos Nasiotis

unread,
Jun 7, 2022, 11:27:10 AM6/7/22
to or-tools-discuss
Hi,

i am trying to use CPsolver (ortools 9.3.10497, python 3.9.13, M1 processor) for my project, and I am getting this BUS error:
Process finished with exit code 138 (interrupted by signal 10: SIGBUS)

when my script calls this line:
status = solver.SolveWithSolutionCallback(model, solution_printer)


I tried to recreate the issue with the self-sustained minimal script below, but this example script runs properly.

from ortools.sat.python import cp_model
solver = cp_model.CpSolver()
solver.parameters.max_time_in_seconds = 600
solution_printer = cp_model.ObjectiveSolutionPrinter()
model = cp_model.CpModel()
status = solver.SolveWithSolutionCallback(model, solution_printer)
solution_status = solver.StatusName(status)


After searching online, there are suggestions that the error might be related to multiple tests running simultaneously, but I'm not sure.

Anybody encountered this issue before?

Thanks

Laurent Perron

unread,
Jun 7, 2022, 12:00:18 PM6/7/22
to or-tools-discuss
Can you try without the callback ?
Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00



--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/352148e8-830d-4aab-b01c-30b90df98faen%40googlegroups.com.

Konstantinos Nasiotis

unread,
Jun 7, 2022, 12:03:15 PM6/7/22
to or-tools-discuss
You mean like this?
self.solver.Solve(self.model, solution_printer)

Same error.

Laurent Perron

unread,
Jun 7, 2022, 12:09:11 PM6/7/22
to or-tools-discuss
no, Solve(model)

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


Konstantinos Nasiotis

unread,
Jun 7, 2022, 12:13:02 PM6/7/22
to or-tools-discuss
self.solver.Solve(self.model)

same error.

Laurent Perron

unread,
Jun 7, 2022, 12:39:36 PM6/7/22
to or-tools-discuss
can you send me the model ?

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


CV_OR

unread,
Jul 26, 2022, 7:45:17 AM7/26/22
to or-tools-discuss
Hi, 

I have the same error with ortools 9.3.10497, python 3.9.2, M1 processor. 

I basically get the error even if I try to run the examples in the Guide without any modification (e.g. just copy/past the TSP complete program in the guide https://developers.google.com/optimization/routing/tsp). 

Specifically, the error message in the terminal is "Bus error: 10" and seems to arise in this line:

search_parameters = pywrapcp.DefaultRoutingSearchParameters()

Any clue on what is happening?

Laurent Perron

unread,
Jul 26, 2022, 8:06:44 AM7/26/22
to or-tools-discuss
This is a different solver. 

Mizux Seiha

unread,
Jul 26, 2022, 8:26:23 AM7/26/22
to or-tools-discuss
how did you get your python 3.9.2 on M1 ? using homebrew, native or downloaded from python.org ?

Otherwise:
`from ortools.sat.python import cp_model` this is need to use the CP-SAT Solver
samples here: https://github.com/google/or-tools/tree/main/ortools/sat/samples

and `from ortools.constraint_solver import pywrapcp` to use the Legacy/Deprecated CP Solver
sampels here: https://github.com/google/or-tools/tree/main/ortools/constraint_solver/samples


CV_OR

unread,
Jul 26, 2022, 8:35:38 AM7/26/22
to or-tools-discuss
I have followed the Installation Guide, so I did it using brew:

brew install python 
python3 -m pip install -U --user wheel six

Reply all
Reply to author
Forward
0 new messages