google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10.97k stars 2.1k forks source link

Error in jniortools.dll #3946

Open Timu-Timu opened 11 months ago

Timu-Timu commented 11 months ago

What version of OR-Tools and what language are you using? Version: ortools-java-9.7.2996 Language: Java

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) SCIP and GLOP. Tried both of them.

What operating system (Linux, Windows, ...) and version? Windows 10 Pro 21H2

What did you do? I've made a model based on a linear solver. the idea as follows: for each season (there is a seven seasons) I call clear() for a MPSolver and recreate new constraints/vars/function. It works perfectly until reaching the season four, where we add more constraints/vars into the model (for example in first three seasons we have about 2k vars and 2k constraints, but in season four we have about 2.1k vars and 2.2k constraints). So this seasons crashes with log (in attachment).

I thought that's a problem of re/creating new constraints/vars, so I started to reuse them by setBounds/setCoefficient from MPConstraint, but it didn't help.

What did you expect to see I expected to see a feasible/infeasible result.

What did you see instead? Console output as below:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc2da5e0be, pid=7188, tid=4644
#
# JRE version: OpenJDK Runtime Environment (11.0.2+9) (build 11.0.2+9)
# Java VM: OpenJDK 64-Bit Server VM (11.0.2+9, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [jniortools.dll+0x4fe0be]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\vgp\Airlines-8-34\hs_err_pid7188.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Make sure you include information that can help us debug (full error message, model Proto).

Anything else we should know about your project / environment hs_err_pid7188.log

lperron commented 11 months ago

Without a reproducible example, I cannot do anything.

Please reopen if you can provide it.

Timu-Timu commented 10 months ago

Without a reproducible example, I cannot do anything.

Please reopen if you can provide it.

Sorry, but I can't do it, only collaborators can. Please reopen this issue. Also I gave you an access to a private repo with problem. Tell me if it's necessary to give access for anyone from you team. btw, if you need english comments for code or any other help in understanding of it, I will help you.

lperron commented 10 months ago

how to I run it ? I do not have intellij

Timu-Timu commented 10 months ago

how to I run it ? I do not have intellij

Sorry about any inconvenience, I'm not using a git and any modern IDE's for coding :) So I built a Maven project and pushed it to master. Does it fit for you?

Timu-Timu commented 9 months ago

how to I run it ? I do not have intellij

Could you tell me please, is there any information about issue progress? Can I help you with it?

Mizux commented 9 months ago

Please provide us at least the .java file (and maybe the pom.xml if you have one)....

note: you can also fork and adapt this template: https://github.com/or-tools/java_or-tools

Timu-Timu commented 9 months ago

Please provide us at least the .java file (and maybe the pom.xml if you have one)....

note: you can also fork and adapt this template: https://github.com/or-tools/java_or-tools

Okay, I've also added you to a private repository named SCIP-task. At master branch you'll find a Maven project with all necessary files.