-
-
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
StackOverflowError when indexing KeyedDistribution on 1.6 #43197
Comments
Another observation: does not error for
|
Seems to be fixed on 1.7. Would be good to find what fixed it and see if it can be backported. |
In the original issue I also found it did not occur on Julia 1.5 |
This still happens on Julia 1.6.5 |
It seems this issue was triggered by a more restrictive type parameter in PDMats: JuliaStats/PDMats.jl#150 (comment) I have no clue why and how this affects Julia 1.6 but not 1.5 or 1.7. |
versioninfo
I have only encountered this error with KeyedDistributions.jl (see invenia/KeyedDistributions.jl#24), but I am making an issue here given it's an internal Julia error and I don't see how KeyedDistributions.jl is at fault.
Minimum reproducible example with AxisKeys v0.1.22, Distributions v0.25.31, KeyedDistributions v0.1.4:
The last line uses a callable syntax implemented here.
Output:
Note that it still completes and returns the correct result.
For this minimal example, using the indexing that is implemented for the callable syntax results in no such error:
However, the error has occurred even with the syntax just above in a non-minimal case. For now, I only have a minimal example when using the callable syntax.
Other observations:
The text was updated successfully, but these errors were encountered: