-
-
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
Crash when using max() in a function #34972
Comments
Could you try with 1.3.1 and the 1.4 release candidate (both available at https://julialang.org/downloads/) |
Thanks for your reply. I checked with 1.3.1 and it also crashes at the same spot:
Same with 1.4rc2:
However, I also tried it on a remote Linux machine and it works fine there. |
When I run with
so I believe this is an incorrect |
Hi,
I just encountered a weird crash when using
max()
in a function. The error output is:versioninfo() gives:
I think I traced the error down to a function where I need to find the maximum of two values. If I do it by hand it works fine, but if I use the max() function the code crashes.
The error occurs when I use the version of
find_min_pixel( ... )
orfind_max_pixel( ... )
with max().Using the
max()
function by itself works just fine, and as you can see in the error message traces the error to the array access later in the function, not the actual call tofind_max_pixel( ... )
.You can find a repo with a minimal (not) working version here
The text was updated successfully, but these errors were encountered: