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

REPL hangs at startup on windows #9242

Closed
dhoegh opened this issue Dec 3, 2014 · 20 comments
Closed

REPL hangs at startup on windows #9242

dhoegh opened this issue Dec 3, 2014 · 20 comments
Labels
REPL Julia's REPL (Read Eval Print Loop) system:windows Affects only Windows

Comments

@dhoegh
Copy link
Contributor

dhoegh commented Dec 3, 2014

I have noticed that Julia 0.3.3 REPL sometimes hangs at startup on windows se:
image
I have seen this on my own computer and some of my colleagues.

@tkelman
Copy link
Contributor

tkelman commented Dec 4, 2014

My usual suspect here is HOMEDRIVE or HOMEPATH maybe being on a non-responsive network drive?

@dhoegh
Copy link
Contributor Author

dhoegh commented Dec 4, 2014

Hmm I do not have any network drives. But the variables looks weird:

julia> ENV["HOMEDRIVE"]
"C:"

julia> ENV["HOMEPATH"]
"\\Users\\Hoegh"

My guess is ENV["HOMEDRIVE"] should be "C:\\" and ENV["HOMEPATH"]="C:\\Users\\Hoegh" How are those set?

@tkelman
Copy link
Contributor

tkelman commented Dec 4, 2014

That looks normal, those are set by your Windows configuration (and some corporate setups have them set to network drives which can cause issues). Looks like that's not the problem here. When you watch in task manager is there any CPU usage, does the memory use stay constant or change over time?

@dhoegh
Copy link
Contributor Author

dhoegh commented Dec 4, 2014

It uses one threads CPU=12%. I haven't observed the memory, I will try to look at it when it happens next time.

@ihnorton ihnorton added the system:windows Affects only Windows label Dec 21, 2014
@axsk
Copy link
Contributor

axsk commented Jan 20, 2015

I am experiencing the same problem since I started using julia months ago.
It seems to happen randomly, around 1 out of 8 times here.
The CPU stays around 25% and memory usage is constant 86MB (whereas a fresh working instance has around 97MB).

I am running Version 0.4.0-dev+2249 (x86_64-w64-mingw32) on Windows 8. It occurs when starting from cygwin as well as from the native cmd shell.

@tkelman
Copy link
Contributor

tkelman commented Jan 21, 2015

@axsk is this while you're running some calculation, or immediately on startup?

@axsk
Copy link
Contributor

axsk commented Jan 21, 2015

immediately on startup, as in the screenshot above

@tkelman
Copy link
Contributor

tkelman commented Jan 21, 2015

Hmm, thanks. @dhoegh has this happened to you recently? Are you also on Windows 8 by any chance?

@dhoegh
Copy link
Contributor Author

dhoegh commented Jan 21, 2015

It has happened recently, but I would probably say 1/20 startups. I am on Windows 7.

@tkelman
Copy link
Contributor

tkelman commented Jan 21, 2015

If it's always on x86_64, then this could potentially be an alternate manifestation of #7942, not sure.

@dhoegh
Copy link
Contributor Author

dhoegh commented Jan 21, 2015

I and my colleagues have only x86_64 so it is possible.

@tkelman
Copy link
Contributor

tkelman commented Jan 21, 2015

32-bit Julia runs just fine in 64 bit Windows. If you have the disk space and the time and wouldn't mind trying out 32-bit Julia for a little while, it would be interesting to see whether or not you ever encounter the same issue there. You can install both 32 and 64 bit Julia in parallel to different locations, you may need to do Pkg.build a few times to switch package binaries back and forth but otherwise it should be comparable.

@axsk
Copy link
Contributor

axsk commented Jan 22, 2015

I am now trying the 32-bit version, and had no freeze so far (around 20 starts so far).

Interestingely the REPL starts up around 7 times so fast:

32 bit 64 bit
0.8s 5.8s

Should I open a new issue for this?

Also I am not able to reproduce the 64bit freeze/hang with julia -P "exit()", so maybe it is connected to IO or something like that?

@tkelman
Copy link
Contributor

tkelman commented Jan 22, 2015

Thanks for collecting that info. Are you using the nightlies or release? Is there a sys.dll file under lib/julia?

so maybe it is connected to IO or something like that?

I think @ihnorton had a theory that there might be some race condition somewhere between libuv and codegen, so possibly.

@axsk
Copy link
Contributor

axsk commented Jan 22, 2015

I am now using the nightlies from today. Yes there is that sys.dll.

@tkelman
Copy link
Contributor

tkelman commented Jan 22, 2015

Oh right, I never reverted Jameson's commit that put sys.dll back into the 32-bit nightlies, only on release-0.3. So you'll get faster startup with sys.dll, but backtraces will probably be missing line numbers and file names. If you want line numbers and file names in your backtraces, you can delete or rename sys.dll. Hopefully we'll fix all this before 0.4.0 gets released, so you don't have to choose one or the other.

@dhoegh
Copy link
Contributor Author

dhoegh commented May 31, 2015

I have now observed this on master to:(
image

@mikewl
Copy link
Contributor

mikewl commented Jun 1, 2015

I have experienced this on 0.3 and master too.

Very rarely and only on Haswell in my experience. I have not experienced it on my Ivy-Bridge box at all.

@dhoegh dhoegh changed the title Julia 0.3.3 REPL hangs at startup on windows REPL hangs at startup on windows Jun 1, 2015
@jakebolewski jakebolewski added the REPL Julia's REPL (Read Eval Print Loop) label Jun 2, 2015
@tkelman
Copy link
Contributor

tkelman commented Jun 2, 2015

I feel like this might be the same underlying issue as #7942 and probably not REPL-related at all.

@tkelman
Copy link
Contributor

tkelman commented Jul 2, 2015

closing as dupe of #7942

@tkelman tkelman closed this as completed Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop) system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

6 participants