-
-
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
InexactError: Int64(1.0) on macOS (CI) #55878
Comments
something is obviously going horrifically wrong here. It will be very hard to reproduce without an RR trace. |
the really confusing thing here is that the error message shows the number as being an int... |
The function where the error appeared for me was this one: @inline function particle_cell(x::SVector{N}, box::Box) where {N}
CartesianIndex(
ntuple(N) do i
xmin = box.computing_box[1][i]
xi = (x[i] - xmin) / box.cell_size[i]
index = floor(Int, xi) + 1
return index
end
)
end (from here: https://github.com/m3g/CellListMap.jl/blob/f85ede5118462331d23303833249f84ac6942ff3/src/Box.jl#L584) |
Tangentially related, since as far as I understand |
Unfortunately I rerun the job and I can't reproduce it, but I'm using |
Yes, that's very fast-mathy. %1 = call double @llvm.trunc.f64(double %0)
%2 = fsub double %0, %1
%3 = fcmp une double %2, 0.000000e+00
br i1 %3, label %error_path, label %ok_path And then the |
That's not annotated |
Correct. This could be dependent upon surrounding code if it inlines, but neither |
even if it is, that doesn't actually explain anything. This error can only occur if the compiler proves that |
I got the error again in this workflow run: https://github.com/m3g/ComplexMixtures.jl/actions/runs/11390346140/job/31691748110#step:6:972 |
does RR work for Mac? I really want to see what is going on here |
And again: https://github.com/m3g/ComplexMixtures.jl/actions/runs/11391544466/job/31695572484 Seems that I can get these errors with some frequency. If someone can give me some hint on how to provide further information (I don't have a Mac, unfortunately), I will be glad to help. If someone has a mac, maybe with some luck the bug can be reproduced by running the testset where this happened for me last time, or maybe just running tons of
|
Usual reminder that https://github.com/mxschmitt/action-tmate lets you log into github actions runners. |
I didn't know that existed. I logged into a macOS-latest machine, and ran hundreds of billions of Unfortunately, this is really hard to reproduce. I thought I would get it failing easily, since I got the error often today when pushing new commits to the repo. I don't know if that helps, but this is the CI workflow of the repo where the issue appears: https://github.com/m3g/ComplexMixtures.jl/blob/main/.github/workflows/ci.yml and this is the CI workflow of the tmate session I used lastly: https://github.com/lmiq/tmate/blob/main/.github/workflows/ci.yml Maybe there is some configuration difference that someone can pinpoint. |
I've not reviewed this in detail but one of your failing CI runs was with coverage on and bounds checking forced on. You might need those to reproduce? See the args that the packages were precompiled for, in the logs. |
For reproducing locally, julia-runtest runs now show how to rerun locally with the same config julia-actions/julia-runtest#124 |
I experienced this (non-reproducible) error in a CI run on the
pre
release (1.11 now), in the MacOS platform:The line where the error occurred was:
in which
xi
is aFloat64
. As far as I understand, the result offloor
should always return an exactly representable Int, so the error should not occur.When reporting this on Zulip, it, @jlumpe (sorry if the tag is wrong), reported having observed two times similar errors:
https://github.com/mikeingold/MeshIntegrals.jl/actions/runs/10965929580/job/30452792024?pr=73#step:7:191
https://github.com/JoshuaLampert/DispersiveShallowWater.jl/actions/runs/10811172112/job/29990016675?pr=150#step:7:8511
But these with 1.10.
Thus, although hard to reproduce, might be something worth investigating.
The text was updated successfully, but these errors were encountered: