+ Start a Discussion
kjpetersonkjpeterson 

Force.com IDE Crashes when trying to view deployment log

I've been trying to deploy some apex but my test cases are failing.  I click View Log in the error window but Eclipse crashes and Eclipse completely closes.  I realize it's an our of memory exception but I don't know what else should be changed to avoid this.  I've tried setting -Xmx greater than 1g but then Eclipse won't open correctly, it throws an error.  Looking in my Eclipse folder I see this error file:

 

 

#
# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 115287498 bytes for jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp. Out of swap space?
#
# Internal Error (allocation.inline.hpp:42), pid=9808, tid=6300
# Error: jchar in C:\BUILD_AREA\jdk6_11\hotspot\src\share\vm\prims\jni.cpp
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode windows-x86)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x008e6c00): JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Stack: [0x00030000,0x00130000]

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.win32.OS.SetWindowTextW(I[C)Z+0
j org.eclipse.swt.internal.win32.OS.SetWindowText(ILorg/eclipse/swt/internal/win32/TCHAR;)Z+21
j org.eclipse.swt.widgets.Text.setText(Ljava/lang/String;)V+108
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createTabLogView()V+196
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.createSShell()V+58
j com.salesforce.ide.deployment.ui.wizards.LogViewShell.open()V+1
j com.salesforce.ide.deployment.ui.wizards.DeploymentResultsComposite$2.widgetSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+17
J org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.jface.window.Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)V
j org.eclipse.jface.window.Window.open()I+49
j com.salesforce.ide.core.internal.utils.Utils.openDialog(Lorg/eclipse/core/resources/IProject;Lorg/eclipse/jface/wizard/WizardDialog;)V+13
j com.salesforce.ide.deployment.actions.DeploymentAction.execute(Lorg/eclipse/jface/action/IAction;)V+33
j com.salesforce.ide.ui.actions.BaseAction.run(Lorg/eclipse/jface/action/IAction;)V+39
j org.eclipse.ui.internal.PluginAction.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V+110
j org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Lorg/eclipse/swt/widgets/Event;Z)V+281
j org.eclipse.jface.action.ActionContributionItem.access$2(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event;Z)V+3
j org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Lorg/eclipse/swt/widgets/Event;)V+60
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)V
J org.eclipse.swt.widgets.Display.runDeferredEvents()Z
J org.eclipse.swt.widgets.Display.readAndDispatch()Z
J org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V
j org.eclipse.ui.internal.Workbench.runUI()I+336
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/Workbench;)I+1
j org.eclipse.ui.internal.Workbench$4.run()V+23
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+81
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+102
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+210
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+114
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x5707f400 JavaThread "Worker-13" [_thread_blocked, id=9916, stack(0x58bd0000,0x58cd0000)]
0x5707f000 JavaThread "Worker-12" [_thread_blocked, id=5840, stack(0x57cb0000,0x57db0000)]
0x56e74000 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=7900, stack(0x57920000,0x57a20000)]
0x56e6b400 JavaThread "com.salesforce.ide.ui.editors.apex.ApexReconciler" daemon [_thread_blocked, id=4100, stack(0x588e0000,0x589e0000)]
0x56f16400 JavaThread "Thread-7" [_thread_blocked, id=8972, stack(0x59c70000,0x59d70000)]
0x5551e400 JavaThread "Timer-2" [_thread_blocked, id=6484, stack(0x59b70000,0x59c70000)]
0x5711ac00 JavaThread "Timer-1" [_thread_blocked, id=9728, stack(0x59a70000,0x59b70000)]
0x5711b400 JavaThread "Timer-0" [_thread_blocked, id=2824, stack(0x59970000,0x59a70000)]
0x56f7d400 JavaThread "Worker-10" [_thread_blocked, id=9392, stack(0x59770000,0x59870000)]
0x56ec9400 JavaThread "Worker-9" [_thread_blocked, id=9544, stack(0x59670000,0x59770000)]
0x56ddcc00 JavaThread "Worker-3" [_thread_blocked, id=7232, stack(0x57eb0000,0x57fb0000)]
0x56fb3800 JavaThread "Java indexing" daemon [_thread_blocked, id=9452, stack(0x58ad0000,0x58bd0000)]
0x5552d400 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=8632, stack(0x55970000,0x55a70000)]
0x554e8400 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=9524, stack(0x55870000,0x55970000)]
0x55574800 JavaThread "State Data Manager" daemon [_thread_blocked, id=7660, stack(0x55770000,0x55870000)]
0x54c04400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1304, stack(0x55270000,0x55370000)]
0x54bfe800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6156, stack(0x55170000,0x55270000)]
0x54bfd000 JavaThread "Attach Listener" daemon [_thread_blocked, id=9168, stack(0x55070000,0x55170000)]
0x54bfbc00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9460, stack(0x54f70000,0x55070000)]
0x54bec000 JavaThread "Finalizer" daemon [_thread_blocked, id=9412, stack(0x54e70000,0x54f70000)]
0x54be7400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6436, stack(0x54d70000,0x54e70000)]
=>0x008e6c00 JavaThread "main" [_thread_in_vm, id=6300, stack(0x00030000,0x00130000)]

Other Threads:
0x54be2800 VMThread [stack: 0x54c70000,0x54d70000] [id=6232]
0x54c06c00 WatcherThread [stack: 0x55370000,0x55470000] [id=8768]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 72576K, used 29935K [0x02a70000, 0x07930000, 0x07930000)
eden space 64512K, 46% used [0x02a70000, 0x047abe50, 0x06970000)
from space 8064K, 0% used [0x07150000, 0x07150000, 0x07930000)
to space 8064K, 0% used [0x06970000, 0x06970000, 0x07150000)
tenured generation total 967936K, used 512887K [0x07930000, 0x42a70000, 0x42a70000)
the space 967936K, 52% used [0x07930000, 0x26e0dc70, 0x26e0de00, 0x42a70000)
compacting perm gen total 66048K, used 66015K [0x42a70000, 0x46af0000, 0x52a70000)
the space 66048K, 99% used [0x42a70000, 0x46ae7ec8, 0x46ae8000, 0x46af0000)
No shared spaces configured.

VM Arguments:
jvm_args: -Xms256m -Xmx1g -XX:MaxPermSize=256M
java_command: <unknown>
Launcher Type: generic



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 3

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2097151k(986760k free), swap 4194303k(2657328k free)

vm_info: Java HotSpot(TM) Client VM (11.0-b16) for windows-x86 JRE (1.6.0_11-b03), built on Nov 10 2008 02:15:12 by "java_re" with MS VC++ 7.1

time: Fri Sep 25 10:10:17 2009
elapsed time: 4657 seconds

 

 

 

gordonpmgordonpm

Are you using the eclipse.ini to tweak the memory settings for the Java VM? If so, then you can use this template:

 

 --launcher.XXMaxPermSize
256m
-vmargs
-Xms256m
-Xmx2048m
-XX:MaxPermSize=2048m

 

You can add something similar to this, depending upon how much physical memory you have on your machine.

 

Let me know if this helps.

kjpetersonkjpeterson
I have tried using those but if I put the max above 1 gig Eclipse won't even start.  I have 4 gigs of ram.
gordonpmgordonpm

which version of Eclipse are u using?

Also, are you using Sun's JVM?

kjpetersonkjpeterson
I'm using Eclipse (Europa?) version 3.3.2, Java 6 Update 11.  Windows XP SP3.