"TypeError: str() takes at most 1 argument (2 given)" in backend

Issue #11 resolved
Botond Ballo repo owner created an issue

I got this error while running the "cfviz" command while debugging Firefox:

(rr) cfviz
('Chose function', u'ComputeClipForMaskItem', 'in file', '/home/botond/dev/mozilla/central/layout/generic/nsFrame.cpp')
('Line range is [', 2601, ',', 2695, ']')
('Executed lines:', [2602, 2604, 2605, 2607, 2608, 2610, 2609, 2611, 2613, 2614, 2616, 2617, 2622, 2626, 2627, 2667, 2668, 2677, 2684, 2687, 2691, 2692, 2693, 2695])
('Adjusted executed lines:', [1, 3, 4, 6, 7, 9, 8, 10, 12, 13, 15, 16, 21, 25, 26, 66, 67, 76, 83, 86, 90, 91, 92, 94])
Traceback (most recent call last):
  File "/home/botond/dev/personal/cfviz/backend/cfviz.py", line 88, in invoke
    json_file.write(bytes(json_data, 'UTF-8'))
TypeError: str() takes at most 1 argument (2 given)
Error occurred in Python command: str() takes at most 1 argument (2 given)

Comments (2)

  1. Log in to comment