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

Error in jniortools.dll #3946

Open
Timu-Timu opened this issue Oct 11, 2023 · 7 comments
Open

Error in jniortools.dll #3946

Timu-Timu opened this issue Oct 11, 2023 · 7 comments
Assignees
Labels
Help Needed Modeling/Usage problem Lang: Java Java wrapper issue
Projects
Milestone

Comments

@Timu-Timu
Copy link

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
Copy link
Collaborator

lperron commented Oct 11, 2023

Without a reproducible example, I cannot do anything.

Please reopen if you can provide it.

@lperron lperron closed this as completed Oct 11, 2023
@Timu-Timu
Copy link
Author

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 lperron reopened this Oct 26, 2023
@lperron
Copy link
Collaborator

lperron commented Oct 27, 2023

how to I run it ? I do not have intellij

@Timu-Timu
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

Mizux commented Nov 16, 2023

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
Copy link
Author

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.

@Mizux Mizux added this to the v9.9 milestone Nov 17, 2023
@Mizux Mizux added Lang: Java Java wrapper issue Help Needed Modeling/Usage problem labels Nov 17, 2023
@Mizux Mizux self-assigned this Nov 17, 2023
@Mizux Mizux modified the milestones: v9.9, v10.0 Feb 13, 2024
@Mizux Mizux added this to To do in ToDo via automation Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Needed Modeling/Usage problem Lang: Java Java wrapper issue
Projects
ToDo
  
To do
Development

No branches or pull requests

3 participants