Skip to content

Changes made to enable MOSEK 9 support appear to break build in a linux container #1461

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

Closed
pgkirsch opened this issue Feb 19, 2020 · 13 comments

Comments

@pgkirsch
Copy link
Contributor

#1454 seems to break the build pipeline for a linux-base-image docker container we use. Building at commit 667264d works fine.

I know your build testing includes a linux machine so I'm surprised this is happening, but do you have any ideas why we might be seeing floating point exceptions? No issues building (locally) on OSX.

Found the following solvers: mosek, mosek_cli, cvxopt
#     Replacing directory env
..!!! uWSGI process 9 got Floating Point Exception !!!
*** backtrace of 9 ***
uwsgi(uwsgi_backtrace+0x35) [0x55c3f632d375]
uwsgi(uwsgi_fpe+0x23) [0x55c3f632d783]
/lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7fe583bff060]
/root/mosek/8/tools/platform/linux64x86/bin/libmosek64.so(+0x7c12b8) [0x7fe567fba2b8]
*** end of backtrace ***
entrypoint.sh: line 9:     8 Floating point exception(core dumped) python hops-worker.py
entrypoint.sh: line 9:     9 Floating point exception(core dumped) uwsgi --ini wsgi.ini

Let me know what other information would be useful to better understand the issue.

@pgkirsch pgkirsch changed the title MOSEK 9 support appears to break build in a linux container Changes made to enable MOSEK 9 support appear to break build in a linux container Feb 19, 2020
@bqpd
Copy link
Contributor

bqpd commented Feb 19, 2020

do you know if you have MOSEK 9 installed in your container?

@bqpd
Copy link
Contributor

bqpd commented Feb 19, 2020

Spitballing other failure modes:

  • gpkit/env/settings file now has sorted entries and ends with a single newline, not double
  • verification of dual solution is slightly modified to avoid nans
  • slight changes to tests

None of these seem remotely like the kind of thing that would cause a build error. But I'm not sure what exactly might trigger a Floating Point Exception !!!

@pgkirsch
Copy link
Contributor Author

do you know if you have MOSEK 9 installed in your container?

We explicitly install mosek 8.1.0.56

Of those, the second surely seems most likely right? I'm imagining some unit tests are run which invoke the changed dual solution checking code. What's confusing is how this gets so low-level that it is OS-dependent behaviour..

@bqpd
Copy link
Contributor

bqpd commented Feb 20, 2020

oh, numerical issues always find a way to be OS specific. yeah, hmm. can you try the mosek9 commit with the previous commit's gp.py? (i can make a branch with that if you need to pull a specific branch)

@pgkirsch
Copy link
Contributor Author

Yes, will try that, thanks. (appreciate the offer -- I can do it)

@pgkirsch
Copy link
Contributor Author

Confirmed it works at commit 6eada8e (i.e. master with previous gp.py). Somehow the addition of else 0 seems to make something sad.

@bqpd
Copy link
Contributor

bqpd commented Feb 20, 2020 via email

@pgkirsch
Copy link
Contributor Author

Wait sorry... I was tired and not thinking straight. It's the removal of the else 0 that's the problem.

@bqpd
Copy link
Contributor

bqpd commented Mar 2, 2020

went back to the old one on #1463, see if that works in the container?

@pgkirsch
Copy link
Contributor Author

pgkirsch commented Mar 3, 2020

Sigh the container (and the app) still runs python 2 😔

@bqpd
Copy link
Contributor

bqpd commented Mar 3, 2020

😬

@bqpd bqpd closed this as completed Mar 4, 2020
@pgkirsch
Copy link
Contributor Author

FYI @bqpd the app has been converted to python 3 and currently works swimmingly at c7efc4f.

@bqpd
Copy link
Contributor

bqpd commented Mar 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants