Re: [Pydev-users] heap overflow error
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2013-06-26 18:13:09
|
The code to look at is probably: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2894) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:117) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:532) at java.lang.StringBuffer.append(StringBuffer.java:323) at java.io.BufferedReader.readLine(BufferedReader.java:362) at java.io.BufferedReader.readLine(BufferedReader.java:379) at org.python.pydev.shared_core.io.FileUtils.hasPythonShebang(FileUtils.java:842) at org.python.pydev.editor.codecompletion.revisited.PythonPathHelper.markAsPyDevFileIfDetected(PythonPathHelper.java:588) at org.python.pydev.navigator.elements.PythonFile.<init>(PythonFile.java:27) at org.python.pydev.navigator.PythonBaseModelProvider.wrapChildren(PythonBaseModelProvider.java:790) It seems that PyDev is opening a file which may be a huge binary file and is checking if it has a shebang, but to do that it tries to read the first 1-2 lines, which in this case seem to be taking the whole heap. A better approach could be reading the first/second line but with a limit of XX chars. Please create a ticket in the PyDev tracker at http://sw-brainwy.rhcloud.com/ with this information. Cheers, Fabio On Wed, Jun 26, 2013 at 3:05 PM, Johannes Müller <der...@gm...>wrote: > Hi, > > I use pydev 2.7.5 with eclipse 3.7.2 on Ubuntu. I just run into a heap > overflow error after crashing my virtual machine. I recreated the > project, but the error keeps coming when I unfold the CloudFusion > directory. Ignoring the error, I did not experience any further > problems, but I would like to know what actually happened. Here is the log: > http://pastebin.com/uPQJVrgB > > Regards, > Johannes > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > |