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: lxml.etree.XMLSyntaxError: internal error: Huge input lookup #975

Open
frakman1 opened this issue Aug 19, 2020 · 0 comments
Open

ERROR: lxml.etree.XMLSyntaxError: internal error: Huge input lookup #975

frakman1 opened this issue Aug 19, 2020 · 0 comments
Assignees

Comments

@frakman1
Copy link

@frakman1 frakman1 commented Aug 19, 2020

I get this error when analyzing a project with 3694 files.

CONTAINER_TIMEOUT_SECONDS=6480000 CODECLIMATE_DEBUG=1 CODECLIMATE_CODE="$PWD" codeclimate analyze -f html > report.html
D, [2020-08-19T00:38:05.135210 #1] DEBUG -- : engine stderr: [cppcheck] analyzing 3694 files
D, [2020-08-19T00:38:05.135292 #1] DEBUG -- : engine stderr: [cppcheck] command: ['cppcheck', '--enable=all', '--language=c++', '--std=c++11', '--inconclusive', '--xml', '--xml-version=2', '--file-list=/tmp/tmpynzkothz']
D, [2020-08-19T00:38:05.136687 #1] DEBUG -- : engine stderr: Traceback (most recent call last):
D, [2020-08-19T00:38:05.136761 #1] DEBUG -- : engine stderr:   File "/usr/src/app/bin/codeclimate-cppcheck", line 12, in <module>
D, [2020-08-19T00:38:05.136809 #1] DEBUG -- : engine stderr:     Runner().run()
D, [2020-08-19T00:38:05.136896 #1] DEBUG -- : engine stderr:   File "/usr/src/app/lib/runner.py", line 40, in run
D, [2020-08-19T00:38:05.136969 #1] DEBUG -- : engine stderr:     issues = self._parse_results(results)
D, [2020-08-19T00:38:05.137021 #1] DEBUG -- : engine stderr:   File "/usr/src/app/lib/runner.py", line 81, in _parse_results
D, [2020-08-19T00:38:05.137123 #1] DEBUG -- : engine stderr:     root = etree.fromstring(results)
D, [2020-08-19T00:38:05.137208 #1] DEBUG -- : engine stderr:   File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring
D, [2020-08-19T00:38:05.137277 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument
D, [2020-08-19T00:38:05.137504 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 1765, in lxml.etree._parseDoc
D, [2020-08-19T00:38:05.137591 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc
D, [2020-08-19T00:38:05.137628 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc
D, [2020-08-19T00:38:05.137714 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
D, [2020-08-19T00:38:05.137858 #1] DEBUG -- : engine stderr:   File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
D, [2020-08-19T00:38:05.137953 #1] DEBUG -- : engine stderr:   File "<string>", line 157925
D, [2020-08-19T00:38:05.138014 #1] DEBUG -- : engine stderr: lxml.etree.XMLSyntaxError: internal error: Huge input lookup, line 157925, column 287
I, [2020-08-19T00:38:05.691449 #1]  INFO -- : finished engine cppcheck
error: (CC::CLI::Analyze::EngineFailure) engine cppcheck failed with status 1 and stderr

I checked first with the cppcheck team and they said:

It seems that the error is not in cppcheck. We don't use lxml internally. Instead we use xml module from the standard library in addons. So, I suppose this is a codeclimate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.