We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using more than one worker, the log handler callback will crash the jvm
To reprodue
final CpSolver solver = new CpSolver(); StringBuilder logBuilder = new StringBuilder(); Consumer<String> appendToLog = (String message) -> { System.out.println( "Current Thread Name:" + Thread.currentThread().getName() + " Id:" + Thread.currentThread().getId() + " msg:" + message ); logBuilder.append(message).append('\n'); }; solver.setLogCallback(appendToLog); solver.getParameters() .setLogToStdout(false) .setLogSearchProgress(true) .setNumSearchWorkers(12); CpSolverStatus status = solver.solve(model);
The text was updated successfully, but these errors were encountered:
java(sat): Fix log handler when having NumSearchWorkers > 1
e5a5b8e
Mizux
No branches or pull requests
When using more than one worker, the log handler callback will crash the jvm
To reprodue
The text was updated successfully, but these errors were encountered: