Skip to content
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

rand(truncated(Normal(0, 0), 0.0, Inf)) leads to infinite loop julia 1.5.3 #1264

Open
juandarias opened this issue Jan 22, 2021 · 3 comments · May be fixed by #1273
Open

rand(truncated(Normal(0, 0), 0.0, Inf)) leads to infinite loop julia 1.5.3 #1264

juandarias opened this issue Jan 22, 2021 · 3 comments · May be fixed by #1273

Comments

@juandarias
Copy link

juandarias commented Jan 22, 2021

I found this error on the latest version 0.24.11. Julia will freeze, Ctrl+C nor Ctrl+D will interrupt the execution or closing Julia itself.

The only solution is to close the terminal or process where julia was running.

Good luck!

quildtide added a commit to quildtide/Distributions.jl that referenced this issue Feb 4, 2021
@quildtide
Copy link
Contributor

Not a crash, but an infinite loop.

@juandarias juandarias changed the title rand(truncated(Normal(0, 0), 0.0, Inf)) will crash julia 1.5.3 rand(truncated(Normal(0, 0), 0.0, Inf)) leads to infinite loop julia 1.5.3 Feb 4, 2021
@Denis-Titov
Copy link

Hi!
I'm also running into the issue that rand(truncated(Normal(0.0, 0.0); lower = 0.0)) doesn't work.
Any chance that this could be fixed?

I use rand.(truncated.(Normal.(array_of_µ, array_of_SD); lower = 0.0)) to perform bootstrapping with many parameters and some of them just happen to be 0.0 +/- 0.0 and it would be very nice to not have to bypass each of them manually.

@quildtide
Copy link
Contributor

Will be closed by #1721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants