-
Notifications
You must be signed in to change notification settings - Fork 76
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
kernel keeps crashing #101
Comments
You can run |
Thanks, I tried that and the random crash occurred again. Here is what I am seeing now in the terminal right before the crash: Assertion failed: nbytes == sizeof dummy (/Volumes/100GB/conda/conda-bld/zeromq_1505916310977/work/src/signaler.cpp:206) I can do all the same commands in Matlab directly with no issue. Sometimes I get further than this in the notebook. |
Which version of |
4.2.1 if that helps. Thanks. |
FYI, I used conda install zeromq=4.2.1 but that did not fix the issue. Same error message under the debug. I ran the same notebook on my Windows device today. In runs perfectly. So it's something to do with my Mac. |
I am starting to believe (but don't know for sure) that autosave is somehow related. Is there a way anyone knows to disable it when running a matlab kernel? There is no %autosave magic available |
Here are the instructions for turning off autosave: https://stackoverflow.com/a/45980165/2814123 |
Thanks again. It appears that disabling the autosave has stopped the random crashing. Not perfect, but it's a work around for now. Going to leave this open though. |
Crud! I spoke too soon. I just got further than ever before. Still crashes randomly. |
Is there a lot of output associated with the cells? |
Not really. In some cases, just simple evaluations. |
Ah, it looks like this is a known issue with |
Thanks. I am not sure how to interpret that. I have a mac and I have a somewhat different error message (" nbytes == sizeof dummy" vs "Connection reset by peer"). I tried updating a few packages, but eventually that just prevented Jupyter from launching at all. So I reinstalled Anaconda but am back where I started: Matlab kernel randomly crashes (every few evaluations). |
Does it happen if you use the Python kernel? |
Near as I can tell, Python kernels are stable. Not had the issue |
Yep, definitely a Matlab kernel thing. |
Do you mind trying with Calysto Bash? It is also based on |
Thanks for continuing to help me. I installed Calysto Bash, but I am not sure to do from there. |
Oh wow, you are quite right. Looks like that kernel needs some updating. In the mean time you could try https://github.com/Calysto/calysto_prolog. |
Thank you again. I am not sure what I am supposed to do with a prolog kernel. One thing I did try tonight was to spend a good deal of time sending commands and variables to and from MATLAB via the matlab engine (using the console in Spyder). No crashes. So I am pretty sure it's related to either Jupyter or the kernel. But I thought I should check that it is not a bug in Python engine for matlab. I don't think it is. But of course, since the error is random, who knows? I just know the error happen frequent enough in Jupyter that I can get it to happens usually after less than 5 minutes. |
I updated the bash kernel, if you'd like to give that a try again. |
Hello I get the same error:
It also crashes randomly when I try to execute a command on the matlab kernel I also followed the instructions detaled above but I was not able to solve this |
I'm running into the same problem, it looks a little bit different:
I'm using a Linux system with Matlab 2016b, Python 3.5.4, installed using Miniconda. And the following Python packages: For me it's usable to some extent, sometimes I can use the notebook for an hour or so without issues, but sometimes it just crashes and does not recover for a while. |
Apologies, I'm not sure what else to try and I don't have a Matlab license to try and reproduce. |
I solved it by reinstalling zeromq, however not by pip install. This method of installation did not work for some reason. Follow it’s github instructions |
@JuanRdBO Great news! We can put a note on the README. Can you say a bit about your situation? On WIndows? Which instructions did you follow? Was it this: https://github.com/zeromq/pyzmq/wiki/Building-and-Installing-PyZMQ#building-pyzmq-from-source |
Also, how did you install jupyter? Do you use anaconda? |
This issue occurred in a macbook pro mid 2012 with macOS High Sierra v. 10.13. I installed jupyter following the instructions on this github, so a standard installation. Then I installed the matlab kernel following this GitHub. The solution was installing zeromq using the instructions provided here in zeromq.org's website. Actually it was just a line of code: |
I had the same with my Macbook and Matlab R2017b installed on my machine. |
Just to keep this issue alive, I can report that I have the same issue on my Mac with a similar set up to @JuanRdBO. @2dvisio's suggestion to run with It might be out there but I wonder if the issue is with the cases where the output is suppressed on Matlab. I ran the example notebook and noted that the crash always occurred around
So I removed the semicolon, re-ran and the notebook executed to the end without a crash. Just a thought! P.S. I am creating setup instructions (as a Jupyter notebook) for a class I am teaching in February. Here is a link to the notebook cpjobling/EG-247-Resources/setup. |
Thanks @cpjobling for the information! Perhaps this will help someone with a Mac and Matlab be able to further debug this. (I notice that you mention Windows on your course notebook. You might also mention Linux/Ubuntu as I suspect that that is the most tested, and best supported, environment.) |
Thanks @dsblank ... unfortunately, Linux is not commonly used by undergraduate students -- at least at Swansea University where I teach. A mention for postgrads might be appropriate. I could try helping out with the debugging if you could give me some hints on what to look for. |
(Linux wasn't common at my school either, until I started suggesting and helping students get started. Ubuntu is easier to use than ever.) Regarding debugging: Do you get messages on the console? Does the --debug flag give more info? Is the error consistent every time? You have up-to-date zmp python code? Up-to-date everything? Have you tried Octave? We also support it via metakernel: https://github.com/Calysto/octave_kernel/ Also, have you thought about running from a JupyterHub server? I wouldn't teach without it, but it does take a dedicated computer. I've taught classes on an old, slow machine, and on a very nice $10k machine. Not that hard to setup, and once going, my college saw the benefits and it is now a college-wide supported machine: https://jupyter.brynmawr.edu/hub/login |
I installed a brand new copy of the latest Anaconda Release (4.30.0) yesterday. Matlab-Python link for Matlab 9.3.0.713579 (R2017b) and matlab_kernel both installed using the instructions given in the Started kernel using
Run all cells. Point of crash is rather random. Here is a listing of the console log for a failure at a = [1,2,3]
As for consistency, the crash occurs at various points in the notebook but the error message is always the same:
I don't know how to check if the I'll take your suggestions on how to encourage the use of Linux and deploying Jupyter Hub into account in my future plans for my course. Our problem is that as an Engineering school, we've gotten tied-in to Matlab for teaching! |
I’m having the same problem when I run: jupyter notebook matlab_kernel.ipynb --debug
Each time I try to restart the Matlab kernel from Safari my Console System.log shows:
Jan 8 11:07:35 RRR-iMac com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.IDECacheDeleteAppExtension.3797): Path not allowed in target domain: type = pid, path = /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/XPCServices/RootDebuggingXPCService.xpc error = 147: The specified service did not ship in the requestor's bundle, origin = /Applications/Xcode.app/Contents/PlugIns/IDECacheDeleteAppExtension.appex
This seems to be pointing at two problems neither of which I understand.
Google search shows I’m not alone. See this from users of R:
stefano-meschiari/Systemic2#26 <stefano-meschiari/Systemic2#26>
I hope this is helpful.
Regards
Rob
… On 7/01/2018, at 04:23, Chris P. Jobling ***@***.***> wrote:
jupyter notebook matlab_kernel.ipynb --debug
|
I have installed the version of zmq via I have tried to search a 4.2.3 package for conda but unsuccessfully. |
Any update on this issue? I am not on Mac but Ubuntu 18.04. For me the Kernel also keep crashing but not really at random. I have narrowed it down that calling the rand function is likely to make the Kernel crash and restart. Maybe my problem is not related to the above issues though as --debug does not seems to chow any error. It just output that the kernel is restarting. Thanks for the help. |
@buschbapti This sounds different. Do you see any error message in the window where you start "jupyter notebook"? |
I'm on a Linux desktop 18.04, and I'm getting the same issue, random crashing after a few commands and the error message
Installing zmq via As a side note, this is after installing via I've also tried installing it in my user python, rather than the anaconda one. I get the same problem as OP there, but was able to install via |
I am able to start a notebook and evaluate a few cells. But I usually can't get too far before the kernel crashes (there is no predictability to it). If I use Cell -> run all, it will die every time.
The terminal window shows no error messages. Just notes that the kernel is restarting.
Ideas ?
The text was updated successfully, but these errors were encountered: