The code to look at is probably:

java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(
        at java.lang.AbstractStringBuilder.expandCapacity(
        at java.lang.AbstractStringBuilder.append(
        at java.lang.StringBuffer.append(
        at org.python.pydev.editor.codecompletion.revisited.PythonPathHelper.markAsPyDevFileIfDetected(
        at org.python.pydev.navigator.elements.PythonFile.<init>(
        at org.python.pydev.navigator.PythonBaseModelProvider.wrapChildren(

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 with this information.



On Wed, Jun 26, 2013 at 3:05 PM, Johannes Müller <> wrote:

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:


This email is sponsored by Windows:

Build for Windows Store.
Pydev-users mailing list