-
-
Notifications
You must be signed in to change notification settings - Fork 197
create_app
never finishes on Julia v1.11.1 when JULIA_NUM_THREADS
is set
#990
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
Comments
|
create_app
never finishes on Julia v1.11.1
I'm working on Windows 11 using Visual Studio Code with the Julia REPL extension.. A MWE I just tried starts by generating an empty Julia application:
Next, I modified the
Then, I run
When I tried to compile the application using PackageCompiler:
|
Any chance you could do a |
I don't know how to do that but I tried it in 1.11.0 and I obtained the same bug |
I have a very similar or probably the same problem on Ubuntu and can confirm the issue. Julia Version 1.11.1 |
I am having the same problem using the same MWE. I ran multiple tests and found out that 1.11.1 only gets stuck if the env variable JULIA_NUM_THREADS is set. The tests I performed are listed below:
✔ [01m:50s] PackageCompiler: creating compiler .ji image (incremental=false) The specs for the failed case are as follows: Julia Version 1.10.5 |
@juanromerohb Can you check if |
I obtain the same results as @matthewgcooper |
create_app
never finishes on Julia v1.11.1create_app
never finishes on Julia v1.11.1 when JULIA_NUM_THREADS
is set
This is still a problem with PackageCompiler v2.2.0 and Julia 1.11.2. |
I had the same problem with
Making @orso82 aware |
enforce single threaded call of PackageCompiler.create_app see JuliaLang/PackageCompiler.jl#990 * change code fold * Fold line and not block * single line command * chmod all read julia * change project dir * add chown * enforce pull before run * add fold * Fix stuck compiling nonincremental system image by enforcing single thread * Ensure files are always owned by user * Unset env var JULIA_NUM_THREADS * do not depend on dir existence for chown
I'm not the OP, but have been trying to bisect this issue as a fun side-challenge. However, I'm consistently running into this error when calling
Is there anything wrong with defining module MyApp as below?
Edit: hmm, it seems to be caused by having a single script that generates the MyApp package, followed by calling |
Okay, bisecting took ages at 15 minutes per iteration, but it converges for me on JuliaLang/julia@ab1dda2. That's a threading-related commit, but that's also the only thing I can add since I'm not deep into the Julia code 😃. Just trying to get this issue closer to solved. Git bisect log is below, started from 1.10.9 being good, 1.11.0 being bad. Removed
Followed by updating MyApp/src/MyApp.jl to
Actual test runs during bisection using Edit 2: okay, just noticed that Edit 3: when re-testing ab1dda237f with
Edit: on an Arch Linux sytem
|
Could the difference in behaviour between setting |
I think this is a very likely hypothesis. I can confirm that the build fails with the This is also in conformance with ab1dda2 which changed some |
I can confirm that passing |
Make sure, that the final system image is built single-threaded and override any values set by "-t", "--threads" in sysimage_build_args` or provided via JULIA_NUM_THREADS. This is needed until the underlying bug is fixed (see JuliaLang#963 and especially JuliaLang#990 containing a `git bisect` to the commit introducing the problem) Fixes JuliaLang#963 and JuliaLang#990
The same app I was successfully compiling in Julia v.1.10.6 under 15 minutes no longer compiles after updating Julia to v1.11.1.
It stucks +20 minutes on
⠸ [03m:30s] PackageCompiler: compiling nonincremental system image
The error that it shows me after Ctrl^C is
The difference I noted was that before
PackageCompiler: compiling fresh sysimage (incremental=false)
, it throws me thousands of warnings like theseThe text was updated successfully, but these errors were encountered: