Giter Club home page Giter Club logo

Comments (8)

bodono avatar bodono commented on June 15, 2024

What do you mean by memory error? I can't tell what's happening there. Is it a leak, or accessing unallocated memory or something else?

from scs.

SteveDiamond avatar SteveDiamond commented on June 15, 2024

I don't really know. I've never seen a problem like this before. Python says there was a double free or corruption, so my guess is that some array is being freed in SCS that shouldn't have been.

The problem only happens when I run nosetests, which evaluates many functions in parallel. I can't replicate it in the python shell running functions serially, so I wasn't able to get a clearer debugging message about the nature of the memory error.

You can replicate/investigate the problem by going to this snapshot

https://www.terminal.com/snapshot/ebc22d6220b84351c0bbe45e0a3428fbbd8815117127d860e948b369ebc335e4

and running the following:

nosetests cvxpy/tests/test_scs.py

from scs.

bodono avatar bodono commented on June 15, 2024

Looks like it's got something to do with the warm-start vectors that can be passed in. Still working on it.

from scs.

SteveDiamond avatar SteveDiamond commented on June 15, 2024

That makes a lot of sense. It also happens when I run

nosetests cvxpy/performance_tests/test_warmstart.py

from scs.

bodono avatar bodono commented on June 15, 2024

Ok, I've figured it out, it's that I'm free-ing the warm-starts twice basically. I just looked at that code again and there are a couple of weird things that I would like to fix in one go. I'll push a new version tomorrow, it's getting late here...

from scs.

SteveDiamond avatar SteveDiamond commented on June 15, 2024

That's awesome you figured it out! No rush, push when you're ready.

On Mon, Jun 8, 2015 at 5:17 PM, bodono [email protected] wrote:

Ok, I've figured it out, it's that I'm free-ing the warm-starts twice
basically. I just looked at that code again and there are a couple of weird
things that I would like to fix in one go. I'll push a new version
tomorrow, it's getting late here...


Reply to this email directly or view it on GitHub
#41 (comment).

from scs.

bodono avatar bodono commented on June 15, 2024

Just pushed a fix.

from scs.

SteveDiamond avatar SteveDiamond commented on June 15, 2024

Great! It works for me now. Can you tag a new version and upload it to pypi?

from scs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.