Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internal error occurs during building workspace ?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using flex project i don't have any erros but when eclispe build the project its getting error:

Internal error occurs while building workspace and also one window with error:

An out of Memory error has occured. Consult the running ...with so and so..

I have done few configuration to increase heap size of the memory:

1) jre(java VM ) setting
2) eclispe.ini file setting
3) eclispe icon also i configured .

but after doing every thing i am getting this error after 84 % to 89 % project build.

how to find out the solution to build the project.

I have also killed few unused process running from task manager while build the project but no benifit.

prabhat
eclipse_error.jpg
Eclipse Error
[Thumbnail for eclipse_error.jpg]
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't bother saying *what* you've changed for the VM or .ini file, so it's impossible to help. It's clear you're running out of memory.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My jre VM Setting is :

-Xms512M -Xmx1024M -XX:MaxPermSize=650M

and eclipse icon setting value is :

c:\eclipse\eclipse.exe -showlocation -vm "C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre\bin\javaw.exe" -vmargs -Xms256M -Xmx1024M -XX:MaxPermSize=256M

and my eclipse.ini file setting is:

showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vm
C:\\Program Files\\Java\\jdk1.5.0_06\\jre\\bin\\client\\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1157m
-Xmx1157m
-Xss4m
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC

please correct me if i am doing any thing wrong and for the same configuration one of my members application is working fine.

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i am running out of memory..its 2 GB memory in my machine..
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.OutOfMemoryError is coming in error log file of eclispe with stack trace.


java.lang.OutOfMemoryError
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(Unknown Source)
at flex2.compiler.PersistenceStore.write(PersistenceStore.java:149)
at flex2.compiler.API.persistCompilationUnits(API.java:4124)
at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:163)
at flex2.tools.oem.Application.save(Application.java:504)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.saveState(ASBuilder.java:522)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.saveState(ASItemBuilder.java:94)
at com.adobe.flexbuilder.project.compiler.BuilderManager.maybeRemoveOldestBuilder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.BuilderManager.getBuilder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.preBuild(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildModules(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a larger value for -Xmx. Note that with a 32-bit JVM you might be limited to around 1.5GB max

Why did you set -Xmx1157m in eclipse.ini and then overwrite that with a smaller value (-Xmx1024m) in the command line for the eclipse icon?

Was that the entire stack trace? Usually there is some text the accompanies the OOME and that text indicates exactly what memory you are out of (each OOME type has a different solution).
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is one of the stack trace but all of them like this outofMemory heap related.

but all of them are related to them only like failed to grab the pixel at run time this is related to also .

any another suggestion please let me know....i will do the change accordingly also

thanks for your response...waiting for your suggestion.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is one of the stack trace but all of them like this outofMemory heap related.

but all of them are related to them only like failed to grab the pixel at run time this is related to also .

I am sorry, but I do not understand what you are saying.

any another suggestion please let me know....i will do the change accordingly also

thanks for your response...waiting for your suggestion.

Not sure how to answer this. I made a suggestion already yet you seem to be saying that you plan to make the change later and are still awaiting more suggestions. Why? You need to first make the suggested change and only if it does not work ask for more suggestions.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry to misunderstood you. Actually i will implement as you suggested but i replied you yesterday evening once i left from my office.

and today/Tom-arrow is office closed so once i go office then i can do implement.

this i only meant to say !

prabhat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic