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(Chi()) and rand(Chisq()) hang in recent julia-0.4 #293

Closed
davidavdav opened this issue Nov 2, 2014 · 7 comments
Closed

rand(Chi()) and rand(Chisq()) hang in recent julia-0.4 #293

davidavdav opened this issue Nov 2, 2014 · 7 comments

Comments

@davidavdav
Copy link

Hi,

Since a couple of days, a few of the Univariate distributions cause julia-0.4dev to hang when a random number is requested:

$ julia
Version 0.4.0-dev+1368 (2014-10-31 22:45 UTC)
Commit a25f17d* (1 day old master)

using Distributions
rand(Chisq(1.0), 10)
## nothing happens, no CPU load either, looks like a blocking wait. 

This is the case for at least Chi() and Chisq().

Cheers,

---david

@lindahua
Copy link
Contributor

lindahua commented Nov 2, 2014

It is calling the internal r-math library to generate random numbers. Probably recent changes in Julia-0.4 causes the failure of using r-math?

@lindahua
Copy link
Contributor

lindahua commented Nov 2, 2014

I verify this problem -- actually everything that relies on Rmath is broken in Julia 0.4 ....

@davidavdav
Copy link
Author

Yes, that is probably it. I noticed that my package that depends on Distributions didn't pass Travis for julianightlies on a time-out. My guess is that is is in a recent (less than 7 days) change in Julia.

@ViralBShah
Copy link
Contributor

Fixed by fixing JuliaLang/julia#8874

@lindahua
Copy link
Contributor

lindahua commented Nov 4, 2014

Thanks @ViralBShah. Distributions.jl is working on both 0.3 and 0.4 as of now.

@davidavdav
Copy link
Author

Thank both of you for picking this up so quickly, now my rand(GMM) works again on nightlies.

@ViralBShah
Copy link
Contributor

Note that the RNGs in Distributions will no longer be synced with the one in Base.

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

No branches or pull requests

3 participants