Skip to content
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

Error in Variable explorer when modifying nested objects in wrong order #1977

Closed
spyder-bot opened this issue Feb 17, 2015 · 1 comment
Closed

Comments

@spyder-bot
Copy link
Collaborator

From CTPaHHuK...@gmail.com on 2014-09-20T01:54:15Z

  1. Create file

    t = [[[1, 1], [1, 2], [1, 3], [1, 3]], [0, 2], [0, 3], [0, 4], [0, 6], [0, 7], [0, 8]]
    t = 1

  2. Run Debug file

  3. Run current line (first)

  4. Switch Variable explorer and edit 't' (image)

  5. Press the 'OK' button in the sequence (red numbers)
    Mistake the second press.

What is the expected output?

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditor.py", line 459, in \<lambda>
    lambda eid=id(editor): self.editor_accepted(eid))
  File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditor.py", line 467, in editor_accepted
    index = data['model'].get_index_from_key(data['key'])
  File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditor.py", line 219, in get_index_from_key
    return self.createIndex(self.keys.index(key), 0)
RuntimeError: wrapped C/C++ object of type DictModel has been deleted

If only First run:
Empty Variable explorer
Second run: ok.

If only First run:
Is not possible to continue debugging(press button 'Run current line').
To continue need switch to Ipython console.
Second run: continue debugging ok.

What version of the product are you using? On what operating system? Windows7, Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)]

Spyder 2.4.0dev
hg heads
changeset: 4091:acf756421eab
changeset: 4089:cf2ed4c20e5d

Attachment: 123.jpg

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1977

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-02-08T11:27:02Z

Summary: Variable explorer (RuntimeError:) (was: Variable explorer(RuntimeError:))
Labels: Cat-VariableExplorer MS-v2.4

@ccordoba12 ccordoba12 changed the title Variable explorer (RuntimeError:) Error in Variable explorer when changing types of a variable during debugging May 6, 2015
@ccordoba12 ccordoba12 modified the milestones: v3.1, v3.0 Jul 25, 2015
@ccordoba12 ccordoba12 modified the milestones: v3.2, v3.x Apr 26, 2017
@ccordoba12 ccordoba12 changed the title Error in Variable explorer when changing types of a variable during debugging Error in Variable explorer when modifying variables in wrong order May 29, 2017
@ccordoba12 ccordoba12 changed the title Error in Variable explorer when modifying variables in wrong order Error in Variable explorer when modifying nested objects in wrong order May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants