You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Every time a tab is closed, the code editor is not removed from memory.
The full list of added object can be seen here: (Executed in the internal console)
A lot of these objects, including LineNumberArea and Shortcut, are linked with CodeEditor. The question is therefore why the code editor is never removed. One can inspect the reference graph with objgraph:
The problem is therefore that the parent of each new CompletionWidget is set to the main window and never removed.
It makes more sense to have the CodeEditor as a parent, but that only displaces the problem, as the new shortest chain is: CompletionPlugin.requests grows indefinitely.
What steps reproduce the problem?
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Versions
Spyder version:
Python version:
Qt version:
PyQt version:
Operating System name/version:
Dependencies
PASTE DEPENDENCIES HERE
The text was updated successfully, but these errors were encountered:
I digged a bit more and found two other sources of CodeEditor leaks:
This one is the expected graph, but the CodeEditor is never removed. This can be solved by calling editor.setParent(None) in EditorStack.close_file
The other one shows that the shortcut list (_shortcut_data) is never emptied:
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Every time a tab is closed, the code editor is not removed from memory.
The full list of added object can be seen here: (Executed in the internal console)
A lot of these objects, including
LineNumberArea
andShortcut
, are linked withCodeEditor
. The question is therefore why the code editor is never removed. One can inspect the reference graph withobjgraph
:The problem is therefore that the parent of each new
CompletionWidget
is set to the main window and never removed.It makes more sense to have the
CodeEditor
as a parent, but that only displaces the problem, as the new shortest chain is:CompletionPlugin.requests
grows indefinitely.What steps reproduce the problem?
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: