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

Can't locate object method "code" via package "-1" #246

Open
kalmarek opened this issue Apr 6, 2020 · 6 comments
Open

Can't locate object method "code" via package "-1" #246

kalmarek opened this issue Apr 6, 2020 · 6 comments

Comments

@kalmarek
Copy link
Contributor

kalmarek commented Apr 6, 2020

e.g.
https://oscarci.mathematik.uni-kl.de/job/oscar/8703/artifact/logs/build-8703/c-automorphisms.ipynb.log

@benlorenz ?

@benlorenz
Copy link
Member

What is the issue with the cache? We usually just keep it and remove the wrappers when Pkg.build() is run, there are only a few configurations stored there.
I don't see anything related to polymake_user in the log.

@kalmarek
Copy link
Contributor Author

kalmarek commented Apr 6, 2020

I've seen this error from time to time (when e.g. changing julia version?), and the standard (?) solution is to wipe ~/.julia/polymake_user... I have no idea what is the root cause though

@kalmarek kalmarek changed the title what to do with old cache in polymake_user? Can't locate object method "code" via package "-1" Apr 6, 2020
@benlorenz
Copy link
Member

The line
Can't locate object method "code" via package "-1" (perhaps you forgot to load "-1"?) at /var/jenkins_home/workspace/oscar/local/share/polymake/perllib/Polymake/Core/BigObjectType.pm line 1021.
indicates that polymake was unable to compute some of the requested properties for the object. But the error handling is wrong somewhere so the original error got lost ...
Any way to reproduce this?

@kalmarek
Copy link
Contributor Author

kalmarek commented Apr 6, 2020

@rbehrends ?

@rbehrends
Copy link

Some of these errors seem to result from multiple Polymake instances on the CI server running code concurrently with a shared ~/.polymake directory, leading to race conditions. I've isolated them properly and for now they seem to be working, though it is too early to tell if any of them have fully gone away. We'll see if any of these errors will have reoccurred tomorrow.

@rbehrends
Copy link

rbehrends commented Apr 7, 2020

After running it on a couple of CI instances overnight, it seems to happen even when race conditions cannot occur, i.e. while running tests in a strictly sequential fashion with no competing jobs. The only way I've found so far to make the error messages go away has been to isolate each test in its on POLYMAKE_USER_DIR, and I'm not certain that this even fixes the issue rather than making it much less likely.

The errors occur when testing against the master branches of all the relevant Oscar packages, which may also be a contributing factor.

Both errors still occur, i.e. both the C++ compilation error and trying to load a "-1" package.

I will try and turn this into a standalone test case that one can debug outside the CI environment.

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

No branches or pull requests

3 participants