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

Lizard failure error: recursion depth #29

Open
robobenklein opened this issue Feb 20, 2020 · 1 comment
Open

Lizard failure error: recursion depth #29

robobenklein opened this issue Feb 20, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@robobenklein
Copy link
Member

[2020-02-20 04:44:42] [    INFO] [worker main_loop] Claimed job: 5e28c9211342c9331683f806, going to work.
[2020-02-20 04:44:43] [    INFO] [worker checkin] Checkin completed: setup
[2020-02-20 04:44:43] [    INFO] [worker checkin] Checkin completed: clone
[2020-02-20 04:44:43] [    INFO] [worker run_job] Beginning clone for job 5e28c9211342c9331683f806
[2020-02-20 04:44:52] [    INFO] [worker checkin] Checkin completed: analyze
[2020-02-20 04:44:55] [   ERROR] [worker run_job] Unknown exception when calling the analysis_function!
[2020-02-20 04:44:55] [   ERROR] [worker __main__] Unknown exception: maximum recursion depth exceeded
[2020-02-20 04:44:55] [    INFO] [worker checkin] Checkin completed: error
Traceback (most recent call last):
  File "/home/ca-worker/venv/bin/ca-worker", line 8, in <module>
    sys.exit(__main__())
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 257, in __main__
    raise e
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 243, in __main__
    main_loop()
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 271, in main_loop
    run_job(job)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 146, in run_job
    raise e # will let the main loop report error to server
  File "/home/ca-worker/venv/lib/python3.6/site-packages/cadistributor/worker.py", line 138, in run_job
    result = config['analysis']['function'](repodir)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/caanalyzer/__main__.py", line 8, in analyze
    output = the_thing.analyze(input_path=path)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/caanalyzer/analyzer.py", line 137, in analyze
    i = lizard.analyze_file(file_path)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard.py", line 538, in __call__
    filename, auto_read(filename))
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard.py", line 557, in analyze_source_code
    for _ in reader(tokens, reader):
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard_languages/code_reader.py", line 161, in __call__
    state(token)
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard_languages/code_reader.py", line 45, in __call__
    if self._state(token):
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard_languages/code_reader.py", line 45, in __call__
    if self._state(token):
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard_languages/code_reader.py", line 45, in __call__
    if self._state(token):
  [Previous line repeated 243 more times]
  File "/home/ca-worker/venv/lib/python3.6/site-packages/lizard_languages/js_style_language_states.py", line 32, in _state_global
    JavaScriptStyleLanguageStates(self.context))
RecursionError: maximum recursion depth exceeded

that's a weird one, worker state:

{
    "endpoint" : "https://ca-core.unhexium.dev",
    "error" : {
        "type" : "<class 'RecursionError'>",
        "str" : "maximum recursion depth exceeded",
        "time" : ISODate("2020-02-20T04:44:55.431Z")
    },
    "job" : {
        "_id" : ObjectId("5e28c9211342c9331683f806"),
        "function" : "caanalyzer.__main__:analyze",
        "repodir" : "job-5e28c9211342c9331683f806",
        "url" : "https://github.com/wagtail/wagtail.git",
        "workdir" : "/tmp/ca-workdir/ca-worker-coretester1"
    },
    "lastcheckin" : ISODate("2020-02-20T04:44:55.431Z"),
    "lastcheckin_human" : "2020-02-20 04:44:55 ",
    "status" : "error"
}
@robobenklein robobenklein added the bug Something isn't working label Feb 20, 2020
@argvrutter
Copy link

argvrutter commented Feb 20, 2020 via email

@robobenklein robobenklein added this to the million repo ready milestone Feb 20, 2020
jtbryan added a commit that referenced this issue Mar 1, 2020
jtbryan added a commit that referenced this issue Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants