History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16367
Type: Bug Bug
Status: Open Open
Assignee: Anna Kozlova
Reporter: Peter Lawrey
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

An operation got OutOfMemoryError when more than 400 MB is free.

Created: 15 Nov 07 15:24   Updated: 27 Feb 08 20:58
Component/s: Unit Testing. JUnit

Build: 7,531
Severity: Medium


 Description  « Hide
This error occurred after cancelling a unit test which was being debugged. After ignoring the popup window there was about 400 MB free.

2007-11-15 11:01:24,934 [171096029] ERROR - plication.impl.ApplicationImpl -
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
at java.lang.StringBuilder.append(StringBuilder.java:203)
at com.intellij.execution.junit2.SegmentedInputStream.d(SegmentedInputStream.java:7)
at com.intellij.execution.junit2.SegmentedInputStream.c(SegmentedInputStream.java:75)
at com.intellij.execution.junit2.SegmentedInputStream.available(SegmentedInputStream.java:86)
at com.intellij.execution.junit.SegmentedInputStreamReader.ready(SegmentedInputStreamReader.java:5)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.readNextByte(OSProcessHandler.java:288)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.run(OSProcessHandler.java:262)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:7)



 All   Comments   Work Log   Change History      Sort Order:
Jess Garms - 27 Feb 08 20:58
I ran into the same exception with 200 MB free, while performing a diff operation. This is written to the console:

[1097849] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 7.0.2 Build #7590
[1097849] ERROR - plication.impl.ApplicationImpl - JDK: 1.5.0_13
[1097849] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) Client VM
[1097849] ERROR - plication.impl.ApplicationImpl - Vendor: Apple Inc.
[1097849] ERROR - plication.impl.ApplicationImpl - OS: Mac OS X
[1097849] ERROR - plication.impl.ApplicationImpl - Last Action: Compare.LastVersion
java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:575)
at java.lang.StringBuilder.append(StringBuilder.java:204)
at com.intellij.execution.junit2.SegmentedInputStream.d(SegmentedInputStream.java:7)
at com.intellij.execution.junit2.SegmentedInputStream.c(SegmentedInputStream.java:41)
at com.intellij.execution.junit2.SegmentedInputStream.available(SegmentedInputStream.java:4)
at com.intellij.execution.junit.SegmentedInputStreamReader.ready(SegmentedInputStreamReader.java:6)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.readNextByte(OSProcessHandler.java:288)
at com.intellij.execution.process.OSProcessHandler$ReadProcessThread.run(OSProcessHandler.java:262)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:7)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:6)

I'm unable to reproduce the problem though. Restarting IntelliJ and performing the same diff doesn't result in an exception.