-
-
Notifications
You must be signed in to change notification settings - Fork 412
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
IJulia sometimes hangs on startup/kernal restarts #311
Comments
Bonus info, the above is produced with precompiled I have now tried to recompile the sysimg without
|
@dhoegh, it looks like you are still using PyCall, since the above error mentions PyCall? (IJulia itself does not use PyCall.) Probably this is not an IJulia-specific problem, but rather a problem with precompiling PyCall? |
Maybe, but sometimes do the IJulia kernel just hang while starting before running anything using PyCall. No one of the above are traces where the kernel hangs at startup but rather at restart. Can it somehow be related to, I run the IPython notebook server from a python subprocess that starts the server at windows startup? |
Ok, I now caught one where the kernel just hanged at start-up. unfortunately the message is not very helpful.
|
Just for the completeness, it could maybe be JuliaLang/julia/issues/9242 even though I have not observed it in the REPL for many months. |
See also the debugging IJulia instructions on how to potentially get more information. |
Can you try writing a Windows batch script or something like that that just launches the REPL a few thousand times, to see if you can replicate this in the REPL by itself? |
I had already changed
|
I think ipython/ipython#7776 is related. The timeout seems to be causing issues, although in theory ipython should be able to recover. What was happening to me is that because of the initial timeout, when the page is reloaded or the kernel is restarted, ipython fails to adapt the protocol from version 5.0 to version 4.0. The timeout is simply caused by julia taking more than 10 seconds to warm up (which sadly is normal). Adding c.NotebookApp.tornado_settings.update( {'kernel_info_timeout': 60} ) to I still think there's a bug in ipython or ijulia (more likely ipython), but I stopped digging at this point. |
@maximerischard, sounds good, it makes sense because I have observed it occurred more often when I had IJulia to print debug information. I will give your advice a test and return with a pull request to set it as default option if it works. |
Closing as it seems this hasn't been replicated for a while. Perhaps when we switched over to protocol version 5 the problem went away? |
I am using IPython 3, Julia 0.3.8. Sometimes the IJulia kernal just hangs and using 12% cpu. The end of the output look like the following when
capture_stderr = false
andverbose = true
:It looks like some kind of error on the Julia side due to
Base.ArgumentError(msg="ref of NULL PyObject")
The text was updated successfully, but these errors were encountered: