-
Notifications
You must be signed in to change notification settings - Fork 37
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
Memory allocation problems #129
Comments
What platform are you on? Can you reproduce on a different Julia version? I don't have 1.4 installed, and can't reproduce this on Mac. I'm guessing this is some sort of race condition, where we GC a GLPK environment, then GLPK's C finalizer runs, but before it runs, we've already created a new GLPK environment and it just happened to have the same memory address? Not really sure. Hard to say without being able to reproduce. |
@baggepinnen please try and reproduce on the latest master. I significantly changed how we handle the C pointers, so hopefully this should have fixed the errors. |
I can't reproduce the error on v0.13.0. Unfortunately, I do no longer have access to the machine where the error occurred the first time. |
Closing because this isn't reproducible. |
I experienced this error with JuMP + GLPK on Windows following the Travelling Salesperson example after executing it about 10 times. The model runs in an Oxygen.jl endpoint. I started Julia with Log
Update: It happens every ~15 executions. |
Does it happen if you don't use threads? I don't know if GLPK is thread safe. Do you have a reproducible example? |
It does not happen with only one thread. Indeed, it says GLPK is not thread safe in the README of this repository:
Mystery solved 🎉 |
I'm not sure if this is a fundamental limitation of GLPK or how we compile and call it. If anyone has suggestions for improvements we're open to them. For now, I'd just use |
I'm defining a function that solves a problem using JuMP and GLPK. After calling the function some 10+ times it suddenly throws an error like this
and occasionally the following
or
I've checked that my input data is okay. There seems to be no issue on GLPK.jl mentioning this. Anyone familiar with it?
The function is the following
and some typical input data are
The text was updated successfully, but these errors were encountered: