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

Runtime Error: Dictionary size changed during iteration --- Visual Studio Code #2003

Closed
wisegeeksrules opened this Issue Dec 30, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@wisegeeksrules
Copy link

wisegeeksrules commented Dec 30, 2018

I'm trying to install a library u8glib2 by Oliver and getting a "Runtime Error: Dictionary changed during iteration."

There was no other way of reporting the issue as I was getting a "success" message though I'm failing to install the library. see screenshot below.

Update:
It looks like the library has installed since it is appearing under installed libraries. The issue is I'm getting the same "Runtime Error: dictionary changed size during iteration" error when building projects which include the u8g2 library.


Retrieving maximum program size .pioenvs/esp32doit-devkit-v1/firmware.elf
Checking size .pioenvs/esp32doit-devkit-v1/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [ ] 4.6% (used 14932 bytes from 327680 bytes)
PROGRAM: [= ] 10.6% (used 222216 bytes from 2097152 bytes)
================================================= [SUCCESS] Took 82.48 seconds =================================================
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
backup_reports(MPDataPusher().get_items())
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports
for key in params:
RuntimeError: dictionary changed size during iteration
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
backup_reports(MPDataPusher().get_items())
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports
for key in params:
RuntimeError: dictionary changed size during iteration

Terminal will be reused by tasks, press any key to close it.

How do I solve the issue?
I'm running Solus Mate.

@wisegeeksrules

This comment has been minimized.

Copy link

wisegeeksrules commented Dec 30, 2018

screenshot at 2018-12-30 15-09-39

@reloxx13

This comment has been minimized.

Copy link

reloxx13 commented Dec 30, 2018

same here

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

File "c:\users\nils.platformio\python27\lib\atexit.py", line 24, in _run_exitfuncs

func(*targs, **kargs)

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 375, in _finalize

backup_reports(MPDataPusher().get_items())

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 391, in backup_reports

for key in params:

RuntimeError: dictionary changed size during iteration

Error in sys.exitfunc:

Traceback (most recent call last):

File "c:\users\nils.platformio\python27\lib\atexit.py", line 24, in _run_exitfuncs

func(*targs, **kargs)

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 375, in _finalize

backup_reports(MPDataPusher().get_items())

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 391, in backup_reports

for key in params:

RuntimeError: dictionary changed size during iteration

again and again disappointed of atom+platformio.
so how many days i have to wait now till i can create a new firmware?
worked fine a few weeks, nothing changed in that time.

could be related with https://github.com/platformio/platform-atmelsam/releases/tag/v3.4.2

@wisegeeksrules wisegeeksrules changed the title Runtime Error: Dictionary size changed during itereation Runtime Error: Dictionary size changed during itereation --- Visual Studio Code Dec 31, 2018

@wisegeeksrules wisegeeksrules changed the title Runtime Error: Dictionary size changed during itereation --- Visual Studio Code Runtime Error: Dictionary size changed during iteration --- Visual Studio Code Dec 31, 2018

@ivankravets ivankravets added the bug label Jan 9, 2019

@ivankravets ivankravets added this to the 3.6.4 milestone Jan 9, 2019

@ivankravets

This comment has been minimized.

Copy link
Member

ivankravets commented Jan 9, 2019

  1. Please enable development version of PIO Core in VSCode, see https://docs.platformio.org/en/latest/ide/vscode.html#platformio-ide-usedevelopmentpiocore
  2. Open VSCode Terminal and type pio upgrade --dev.

Does it work now?

ivankravets added a commit that referenced this issue Jan 10, 2019

@wisegeeksrules

This comment has been minimized.

Copy link

wisegeeksrules commented Jan 13, 2019

I did the first step, when I try the second step I'm getting an error :

bash: pio: command not found

@reloxx13

This comment has been minimized.

Copy link

reloxx13 commented Jan 13, 2019

yes it works, thank you!

ill try a little more now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment