-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pkg does not complete precompilation, randomly hangs on different packages #44338
Comments
I'm not sure yet if this is directly related yet, but it seems that each time when this happens, there are julia instances spun up and consumes nearly 100% on the CPU. I have to manually kill them, just quitting Julia doesn't stop them. top:
|
Do you get errors also when triggering precompilation with |
I've set up a project with these contents:
These are all the packages you show in your demos above. I've not yet been able to reproduce it. (I'm running under |
I seem to have captured a trace. What I did was keep deleting all the files in
It looks like there's some kind of crash in I don't understand the fundamental issue, but there seems to be a pretty easy workaround: use the C equivalent of |
I realize a fix already being tested, but just to address the earlier question, I have the following in my Project.toml:
I think the number of packages is large enough such that when I precompile them, the bug is almost always triggered at some point, and it's usually toward the end of precompilation. |
This is very helpful. While I can't quite compile all those packages (NetCDF and GMT seem to require some extra configuration and I'm not bothering with that), with #44345 I don't get the hang in 5 runs. So, I think it's fixed once we merge that PR. |
I can confirm that the CPU racing condition is directly associated with the failed/hung precompilations. When I kill those racing instances, the precompilation mark the packages that it's hung on as failed (cross mark) and move onto the next package. |
In case it's helpful to report, I just hit this after wiping the compile cache dir
|
Since #43990 was merged with Julia master, I noticed that Pkg precompilation often hangs on some packages that I have installed, but there is no apparent pattern. It's also possible that the precompilation is just taking a really long time and appears to be hang. The first package I encountered this issue with was
Parsers.jl
. When this happens, ^C then repeat the precompilation usually completes the precompilation for the problematic packages. The circle animation spins indefinitely during the hanging episodes.Here is one set:
And another set:
and another set:
versioninfo():
The text was updated successfully, but these errors were encountered: