2

I got an error while executing Python x Selenium Webdriver script in chromium. It seems like script did his job, but i don't like this messeges in console. Does anybody know how to fix that?

[10112:9544:0823/174401:ERROR:latency_info.cc(164)] RenderWidgetHostImpl::OnSwapCompositorFrame, LatencyInfo vector size 117 is too big.

Screenshot:

enter image description here

Nihal
  • 5,262
  • 7
  • 23
  • 41
Raman
  • 107
  • 1
  • 3
  • 12

1 Answers1

0

you are getting this error because you are sending or fetching large amount of data in one go. to avoid that in python you can divide it into small chunks. which will solve the problem.

you can use chunk generator or the library:

def chunks(l, n):
    # Yield successive n-sized chunks from l
    for i in range(0, len(l), n):
        yield l[i:i + n]

or

from boltons import iterutils
somelong_str = ' your data '
iterutils.chunked(somelong_str, 128)

refer : this link

Nihal
  • 5,262
  • 7
  • 23
  • 41