-
Notifications
You must be signed in to change notification settings - Fork 745
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
JavaScriptAnalyzer fails to parse large js file and stops indexing of all other repositories #821
Comments
Hi whizard, It's true that indexer halts once got Out of Memory... Would be great if it could carry on, not sure if there any issue on that. Maybe you share the famous js file? It's just to reproduce the issue. Suppose dropbox link will be ok, |
Here are the two files that have issues. They have very long lines ;) Paul https://drive.google.com/file/d/0B_soVnwiiVQzT3lFMnlKaTFYSFE/edit?usp=sharing |
huh |
you can try just running ctags on this file ... it will create a HUGE file which links of line to every line number, so this small file will become so big, it just kills the heap of opengrok |
Hi, we ran into the exactly same problem today, also the exact same file ;) @whizard a workaround would be to add the following line to the file '/usr/local/bin/opengrok':
Thanks in advance! :) Additional infos: |
@baurmatt - I was under the impression most of distros put patches on top of old ctags |
I ran into this as well, also on a file called big5.js. OpenGrok choked on it with OutOfMemoryError. I had to remove it from my src folder to get past the problem. Here is a call stack: 2015-09-24 00:56:46.054-0600 SEVERE t30 IndexDatabase$1.run: Problem updating lucene index database: |
I also wonder if using universal ctags here on github can mitigate this issue. |
universal-ctags commit universal-ctags/ctags@ab9b5e9 seems to refer tackling of lengthy ctag files causing "OOM" and "disk-full" as referred in universal-ctags/ctags#163 (comment) |
@santeriv this is very good news and it definitely means exuberant ctags is getting irrelevant |
I'm very happy to hear that universal-ctags solves the issue of OpenGrok. |
I have a java script file (used for testing - don't ask me why we would have such a file ;) that causes OpenGrok's JavaScriptAnalyzer to fail and after the failure all subsequent repositories are not processed nor index (it causes an Out of Memory error etc.)
I can send you the file that causes the issue.
Thanks,
Paul
The text was updated successfully, but these errors were encountered: