Idea 8 (build 9013) Vanishes Mid-Edit
I was in the middle of editing a Java class (i.e. just typing) that I had just been method-testing in the debugger with the JUnit plug-in, when Idea 8 just vanished - no error messages, no warning. There is nothing unusual in the log file.
When I restarted it, it reparsed the whole project, but took me back to where I'd been editing with no code lost, which is a relief. However, that's a scary 10 minute distraction I really didn't need.
Running under Windows XP.
If you'd like any more info, please ask.
Please sign in to leave a comment.
Update: Shortly after resuming editing, Idea displayed the 'Out Of Memory' dialog, saying 1024MB of heap memory wasn't enough. When I changed it to 1280MB and increased the max perm size from 128MB to 192MB, Idea refused to start, saying it could not find the JVM.
When I manually edited the VMOptions file and reset the heap and max perm size to their previous values, Idea ran OK again.
If the release build of Idea 8 complains that it doesn't have enough memory, but won't run if I allocate more, how do I proceed?
This was in the log:
2008-11-11 10:18:12,429 INFO - unicator.p2p.UserMonitorThread - Force finding users
2008-11-11 10:27:50,164 ERROR - pplication.impl.LaterInvocator -
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.]]>(String.java:216)
at java.lang.StringBuffer.toString(StringBuffer.java:585)
at java.io.StringWriter.toString(StringWriter.java:193)
at com.intellij.openapi.util.JDOMUtil.writeDocument(JDOMUtil.java:373)
at com.intellij.openapi.components.impl.stores.StorageUtil.printDocument(StorageUtil.java:14)
at com.intellij.openapi.components.impl.stores.FileBasedStorage$FileSaveSession.phisicalContentNeedsSave(FileBasedStorage.java:3)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSession.a(XmlElementStorage.java:8)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MySaveSession.needsSave(XmlElementStorage.java:44)
at com.intellij.openapi.components.impl.stores.FileBasedStorage$FileSaveSession.getStorageFilesToSave(FileBasedStorage.java:26)
at com.intellij.openapi.components.impl.stores.CompoundSaveSession.getAllStorageFilesToSave(CompoundSaveSession.java:22)
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MySaveSession.getAllStorageFilesToSave(StateStorageManagerImpl.java:2)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.getAllStorageFilesToSave(ComponentStoreImpl.java:26)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.getAllStorageFilesToSave(ProjectStoreImpl.java:32)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession$1.compute(ProjectStoreImpl.java:3)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession$1.compute(ProjectStoreImpl.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:339)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:139)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.b(ProjectStoreImpl.java:31)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.save(ProjectStoreImpl.java:7)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:162)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:8)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:46)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:36)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:4)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:21)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:16)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:4)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:213)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:27)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 8.0 Build #9013
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_10
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - Vendor: Sun Microsystems Inc.
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - OS: Windows XP
2008-11-11 10:27:50,273 ERROR - pplication.impl.LaterInvocator - Last Action:
2008-11-11 10:28:47,273 ERROR - pplication.impl.LaterInvocator -
Edited by: Dave Lorde on Nov 11, 2008 10:56 AM
Hello Dave,
There should be a HotSpot crash log (hs_err*.log) in the IDEA bin directory.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I've attached hs_err_pid5764.log
Attachment(s):
hs_err_pid5764.log
I tried running Idea 8 again, and it didn't complete loading the project before it ran out of memory. Then I deleted all the caches and ran it again, and it loaded OK this time, and I haven't had an 'Out Of Memory' dialog for a while (30+ mins).
It seems that the caches are growing and somehow filling up memory - I thought the point of on-disk caches was to reduce memory usage... If I have to delete the caches & rescan the project every couple of days with version 8, I'm going to revert to an earlier build, or v7.
We were planning to upgrade all our Idea licenses to v8, but I'm beginning to wonder if it's such a good idea at present...
Hello Dave,
Looks like a garbage collector crash. Don't see anything that could be our
fault.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
OK. Thanks for the feedback, Dmitry.
Any thoughts on how to get Idea to run with more than 1024m heap memory? I have a feeling this is probably a JVM problem, but have you guys managed it?
After clearing the caches, Idea now seems comfortable, but so it did when I first installed it 4 days ago...
Dang! It just happened again - typing away happily in the editor, then suddenly I'm looking at an empty desktop.
It may be a garbage collector crash, but it never happened with pre-release builds of version 8...
Once more it takes 10 mins to get back to where I was, as Idea does a full project scan.
hs_err_pid3520.log attached.
Attachment(s):
hs_err_pid3520.log
And it's happened again - like a boojum, IDEA swiftly and silently vanishes away mid edit.
It may be a garbage collector crash, but it's clearly IDEA 8 code that has exposed it...
If this continues, I'm going to have to revert to an earlier build and recommend that we don't upgrade our licenses until it's fixed.
hs_err_pid5256.log attached.
Edited by: Dave Lorde on Nov 17, 2008 10:25 AM
Hmm... why aren't the files being attached? is this a new forum bug? - Nope it's Google Chrome!
Edited by: Dave Lorde on Nov 17, 2008 10:54 AM
Attachment(s):
hs_err_pid5256.log
I'm getting a garbage collector crash as well, on a regular basis
Should we be raising bugs with Sun for these issues? This is on WinXP and JDK 6_u6
Attachment(s):
hs_err_pid6696.log