Open nc011 opened 3 years ago
Hi @Caseyb87,
I'm able to reproduce this issue and thanks for the feedback, we'll have this in mind for our UI/UX enhancements. We can probably add pympler to the variable explorer to try to get the size in memory of the objects so we know if they are going to open or not.
Thanks for reporting!
Hi @steff456 ,
I think this is more than just an enhancement. It's a bug. Regardless of whether you can get the size or not, the console and explorer should not become unresponsive. It totally breaks the user's workflow.
Hello @steff456, I am also having this problem while running Spyder 5.2.2 and Python 3.9. I have plenty of RAM (36 GB), not sure why this is happening. Very disruptive.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)Problem Description
After attempting to open a very large dictionary (with multiple large keys) in variable explorer and closing the "Error: too large" prompt, the console and variable explorer become unresponsive. The spinning "loading" icon in the top right of the screen continues to spin.
Spyder remains responsive, e.g. can open menu items, but the console and variable explorer hang.
It seems like, although the error is being thrown, Spyder is still actually attempting to open the dictionary rather than quitting that process. Perhaps it is attempting to access the other keys in the dictionary?
What steps reproduce the problem?
Example code:
What is the expected output? What do you see instead?
By clicking close on the error dialogue pop-up, it is expected that Spyder would promptly return to a useable state. Both the console and variable explorer should be responsive and the spinning loading icon should also disappear.
As an additional improvement, it would be nice if Spyder handled this situation more elegantly than just throwing an error. For very large dictionaries such as this, it would be great if Spyder showed the key names and sizes - even if it can't open the key for editing.
Versions
Dependencies