question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kernel dies unexpectedly

See original GitHub issue

Hi, I’m having a problem where my kernel consistently dies and restarts at a certain point in my notebook.

There is no debugging information that I can see anywhere, only:

[I 10:15:47.625 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 1186a28c-f408-401d-9f3e-ebdef9273ba3 restarted

The crash usually happens while trying to read a particularly large dataset from disk. This is sometime successful, though, in which case the crash happens during subsequent attempts to manipulate that dataset. I’m not sure if I’m running out of memory?

I also have an iPython parallel instance running at the same time (otherwise my %px --local commands don’t work), but there is only one node and it’s not doing any calculation.

I don’t believe it is due to a timeout, as I’ve upped the time_to_dead to no effect

import IPython as ip
ip.config.get_config()['MappingKernelManager']['time_to_dead']

600

Version:

* pyzmq (14.7.0) (installed via pip but built from source)

  • zeromq-4.1.2 (built from source)
  • ipython: both 3.1.0 and 3.2.1

Would love some pointers on debugging this.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
kylepolichcommented, Jan 18, 2018

Hi Jupyter team, just a quick suggestion for you. This page is the top Google result for the query “juypter notebook kernel died unexpectedly”. Since many people probably find their way here on searches like that, it would be great if this page had a comment directing people to the canonical page to help users debug down to the myriad of likely causes of this error.

0reactions
spacepirate0001commented, Feb 22, 2018

IN: pd.read_table(filename, sep='|', encoding='utf_8', quoting=3, error_bad_lines=False) OUT: ``` C:\Users\user\AppData\Local\Continuum\Anaconda2\lib\site-packages\IPython\core\interactiveshell.py:2717: DtypeWarning: Columns (1,51) have mixed types. Specify dtype option on import or set low_memory=False. interactivity=interactivity, compiler=compiler, result=result)


**IN:** `pd.read_table(filename, sep='|', encoding='utf_8', low_memory=False, quoting=3, error_bad_lines=False) `
**OUT:**```
[I 10:15:47.625 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 1186a28c-f408-401d-9f3e-ebdef9273ba3 restarted

Pandas 0.20.1

The issue is triggered by size of data file to be imported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

kernel keeps dying in jupyter notebook - Stack Overflow
Determining why jupyter notebook kernel dies can be daunting sometimes. When kernel dies as a result of library issues, you might not get ......
Read more >
kernel died unexpectedly and will restart automatically! - Kaggle
Every kernel has a maximum limit of 16GB and when our program crosses that limit, the kernel dies and RESETS the RAM. This...
Read more >
Kernel Dies unexpectedly · Issue #14627 · spyder-ide ... - GitHub
Description I'm running code with turtle, and was initially having problems with turtle, but now the kernel dies unexpectedly.
Read more >
The kernel appears to have died. It will restart automatically ...
Apologies for the audio distortion in the beginning of the video: I am a robot.In this video, I'll show you how to fix...
Read more >
Kernel Died error post installing tensorflow - Apple Developer
There are multiple reasons why the Jupyter kernel can die and among one of them could be some unexpected conflict between the various...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found