Unhandled event loop exception: Java heap space when opening megaco-3.11.3/src/text/megaco_text_parser_prev3c.erl
In the interest of stress-testing the Clean Up feature I found and attempted to open the largest Erlang module in the standard distribution:
When I did I got a crash dialog saying that Eclipse titled "Unhandled event loop exception" with the message "Java heap space" in it. Here are the details and stack trace from the error log:
megaco-3.11.3/src/text/megaco_text_parser_prev3c.erl
When I did I got a crash dialog saying that Eclipse titled "Unhandled event loop exception" with the message "Java heap space" in it. Here are the details and stack trace from the error log:
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CA
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data /Users/alain/Documents/workspace/../runtime-ErlIDE -dev \
file:/Users/alain/Documents/workspace/.metadata/.plugins/org.eclipse.pde.core/ErlIDE/dev.properties -os macosx -ws cocoa -arch x86_64
Error
Tue Dec 15 21:44:37 NST 2009
Unhandled event loop exception
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.swt.custom.StyledTextRenderer.setStyleRanges(StyledTextRenderer.java:1168)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9062)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9123)
at org.eclipse.jface.text.TextViewer.applyTextPresentation(TextViewer.java:4801)
at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4853)
at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:579)
at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:568)
at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564)
at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:119)
at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2870)
at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2919)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:545)
at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:375)
at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:500)
at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:3951)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3466)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:427)
at org.erlide.ui.editors.erl.ErlangEditor.createPartControl(ErlangEditor.java:1150)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
Leave a comment
on 2009-12-16 09:04 *
By Vlad Dumitrescu
What are your memory settings for Eclipse?
It works fine for me and memory consumption doesn't go over 195MB.
BTW, I use
-Xms196m
-Xmx512m
when developing for Java+Erlang, to be on the safe side.
It works fine for me and memory consumption doesn't go over 195MB.
BTW, I use
-Xms196m
-Xmx512m
when developing for Java+Erlang, to be on the safe side.
I dropped the megaco_text_parser_prev3c.erl into a blank Erlang project and opened it. There were a lot of compile errors. I expect that has something to do with not opening successfully.
This was in a debug session on the master at the time I filed the ticket. The problem does not occur on the release version.
Here is my eclipse.ini (which is annoying buried on Mac OS X):
This was in a debug session on the master at the time I filed the ticket. The problem does not occur on the release version.
Here is my eclipse.ini (which is annoying buried on Mac OS X):
-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.1.R35x_v20090707
-product
org.eclipse.epp.package.rcp.product
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
on 2009-12-21 20:13 *
By Vlad Dumitrescu
The fix that Jakob mentions is only in the 'next' branch. Will be available in 'master' when we make a new release. If you really need it now, please base your branch on 'next'.
on 2010-04-18 16:23 *
By Vlad Dumitrescu
Updating tickets (#134, #40, #43, #80, #100, #113, #120, #129, #131, #137, #156, #157, #179, #211, #222, #228, #231, #242, #326, #349, #379, #451, #455, #459, #523, #524, #530, #41, #46, #52, #58, #61, #62, #64, #76, #83, #89, #93, #95, #115, #116, #119, #121, #130, #135, #145, #149, #152, #155, #159, #163, #164, #168, #169, #170, #175, #181, #182, #188, #194, #199, #200, #205, #208, #210, #218, #219, #223, #224, #235, #237, #238, #239, #240, #241, #244, #252, #261, #265, #274, #276, #281, #283, #285, #294, #298, #316, #317, #318, #331, #332, #335, #336, #339, #340, #351, #354, #358, #364, #366, #372, #374, #375, #377, #378, #380, #383, #392, #394, #398, #405, #407, #410, #411, #412, #413, #415, #418, #422, #423, #424, #425, #427, #429, #430, #432, #436, #437, #438, #440, #442, #443, #445, #446, #447, #448, #449, #450, #452, #454, #460, #464, #465, #470, #471, #474, #477, #478, #479, #483, #484, #492, #493, #494, #495, #497, #498, #499, #506, #508, #510, #511, #512, #514, #515, #516, #517, #519, #521, #536, #537, #540, #541, #542, #543, #545, #546, #42, #44, #53, #54, #56, #67, #68, #69, #84, #87, #98, #99, #101, #106, #117, #118, #132, #144, #160, #166, #195, #216, #234, #249, #255, #264, #313, #314, #321, #328, #359, #387, #416, #419, #421, #428, #439, #463, #485, #488, #489, #528, #59, #123, #433)
on 2010-05-31 08:40 *
By Vlad Dumitrescu
Updating tickets (#503, #529, #40, #43, #120, #157, #179, #211, #222, #228, #326, #379, #451, #459, #523, #524, #530, #559, #535, #176, #177, #386, #389, #409, #434, #473, #41, #52, #62, #64, #83, #93, #115, #135, #145, #149, #155, #159, #163, #181, #194, #199, #200, #208, #210, #219, #224, #261, #265, #274, #281, #283, #285, #294, #298, #316, #318, #331, #332, #335, #336, #358, #375, #383, #394, #398, #412, #413, #415, #422, #423, #424, #425, #432, #440, #442, #443, #446, #448, #449, #450, #452, #454, #460, #464, #471, #474, #479, #483, #484, #492, #497, #506, #510, #512, #516, #519, #521, #536, #537, #541, #543, #546, #555, #556, #561, #564, #565, #291, #431, #502, #520, #522, #532, #469, #42, #44, #69, #87, #132, #195, #234, #255, #264, #313, #387, #419, #421, #428, #439, #488, #489, #558, #123, #433, #80, #113, #137, #242, #349, #455, #46, #58, #61, #76, #89, #95, #116, #121, #152, #168, #169, #170, #175, #188, #205, #218, #223, #237, #240, #241, #252, #276, #317, #339, #340, #351, #354, #364, #366, #372, #374, #377, #380, #405, #407, #410, #429, #430, #436, #437, #438, #445, #447, #470, #477, #478, #493, #494, #495, #498, #499, #511, #545, #548, #562, #563, #373, #401, #475, #560, #53, #84, #98, #99, #106, #117, #118, #166, #216, #249, #314, #321, #328, #359, #463, #485, #134, #100, #156, #427, #554, #551, #552, #550, #553, #129, #131, #231, #114, #323, #325, #119, #130, #164, #182, #235, #238, #239, #244, #378, #392, #411, #465, #508, #514, #515, #517, #557, #54, #67, #68, #101, #144, #160, #416, #528)
on 2010-09-09 10:48 *
By Vlad Dumitrescu
Status changed from New to Fixed
Status changed from New to Fixed
Works for me, and the required memory is under 90M (for the whole Eclipse), so I deem this to be working allright now.
Please reopen if the problem is still there.
Please reopen if the problem is still there.