Skip to content

remove unregister trait-change callback in ExtensionManager.__del__ - #9040

Merged
Carreau merged 1 commit into
ipython:masterfrom
minrk:rm-extension-del
Dec 11, 2015
Merged

Carreau merged 1 commit into
ipython:masterfrom
minrk:rm-extension-del

Conversation

@minrk

@minrk minrk commented Nov 26, 2015

Copy link
Copy Markdown
Member

Due to reference cycles, this can never be called at a time when it would matter, but seems to cause weird crashes sometimes during interpreter teardown on Python 3.5 with traitlets 4.1.

I have no idea what the relevant traitlets change is, and don't have 100% confidence that there even is one.

Fatal Python error: PyImport_GetModuleDict: no module dictionary!
Current thread 0x00007f3538110700 (most recent call first):
  File "/home/travis/virtualenv/python3.5.0/lib/python3.5/site-packages/traitlets/traitlets.py", line 1076 in on_trait_change
  File "/home/travis/virtualenv/python3.5.0/lib/python3.5/site-packages/IPython/core/extensions.py", line 64 in __del__

I haven't seen this outside Travis.

cf ipython/ipyparallel#77

Due to reference cycles, this can never be called at a time when it would matter,
but seems to cause weird crashes sometimes during interpreter teardown on Python 3.5 with traitlets 4.1.
@minrk minrk added this to the 4.1 milestone Nov 27, 2015
Carreau added a commit that referenced this pull request Dec 11, 2015
remove unregister trait-change callback in ExtensionManager.__del__
@Carreau
Carreau merged commit 6178cef into ipython:master Dec 11, 2015
@minrk minrk modified the milestones: 4.0.3, 4.1 Jan 19, 2016
@minrk
minrk deleted the rm-extension-del branch January 19, 2016 11:43
minrk added a commit that referenced this pull request Jan 19, 2016
…onManager.__del__

Due to reference cycles, this can never be called at a time when it would matter, but seems to cause weird crashes sometimes during interpreter teardown on Python 3.5 with traitlets 4.1.

I have no idea what the relevant traitlets change is, and don't have 100% confidence that there even is one.

```
...
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

Successfully merging this pull request may close these issues.

2 participants