Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Java Heap Size

  1. #1
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default Java Heap Size

    Getting a little further with the 'Sencha Cmd' learning process.

    Just hit a bit of a brick wall though, literally, after putting some code in.
    Code:
    C:\Altus\repos\Clients\CompanyName\ProductName\web>sencha app build
    Sencha Cmd v3.0.0.250
    [INF]           init-properties:
    [INF]           init-sencha-command:
    [INF]           init:
    [INF]           -before-app-build:
    [INF]           app-build-impl:
    [INF]           production:
    [INF]           -before-init-local:
    [INF]           -init-local:
    [INF]           -after-init-local:
    [INF]           init-local:
    [INF]           find-cmd:
    [INF]           -before-init:
    [INF]           -init:
    [INF]           -after-init:
    [INF]           init:
    [INF]           -before-build:
    [INF]           sass:
    [INF]           -before-sass:
    [INF]           -sass:
    [INF]           [shellscript]
    [INF]           [shellscript] C:\Altus\repos\Clients\CompanyName\ProductName\web\resources\sass\default>compass compile --boring --f
    orce
    [INF]           [shellscript] identical app.css
    [INF]           Compressed 0 of 1 (1 up to date)
    [INF]                [copy] Copying 1 file to C:\Altus\repos\Clients\CompanyName\ProductName\web\build\Clients.CompanyName.ProductName\production
    [INF]           -after-sass:
    [INF]           theme:
    [INF]           -before-theme:
    [INF]           -theme:
    [INF]           Building theme
    [INF]           Capturing theme image
    [INF]           Capture complete
    [INF]           Slicing theme
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:324)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: java.lang.OutOfMemoryError: Java heap space
    [ERR]                   at java.awt.image.DataBufferByte.<init>(Unknown Source)
    [ERR]                   at java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)
    [ERR]                   at java.awt.image.Raster.createWritableRaster(Unknown Source)
    [ERR]                   at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
    [ERR]                   at javax.imageio.ImageReader.getDestination(Unknown Source)
    [ERR]                   at com.sun.imageio.plugins.png.PNGImageReader.readImage(Unknown Source)
    [ERR]                   at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
    [ERR]                   at javax.imageio.ImageIO.read(Unknown Source)
    [ERR]                   at javax.imageio.ImageIO.read(Unknown Source)
    [ERR]                   at com.sencha.tools.slicer.Slicer.loadImage(Slicer.java:50)
    [ERR]                   at com.sencha.command.theme.ThemeCommands$SliceCommand.execute(ThemeCommands.java:270)
    [ERR]                   at com.sencha.command.theme.ThemeCommands$BuildCommand.execute(ThemeCommands.java:174)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]           Total time: 20 s
    [ERR]           econds
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR]           C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:207: The following error occurred while executing this line:
    [ERR]           C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:213: com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:226: The following error occurred while executing this line:
    [ERR]           C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:207: The following error occurred while executing this line:
    [ERR]           C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:213: com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   ... 31 more
    [ERR]           Caused by: C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:207: The following error occurred while executing this line:
    [ERR]           C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:213: com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:324)
    [ERR]                   at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]                   ... 52 more
    [ERR]           Caused by: C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:213: com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERR]                   ... 68 more
    [ERR]           Caused by: com.sencha.exceptions.BasicException: Java heap space
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   ... 77 more
    [ERR]           Caused by: java.lang.OutOfMemoryError: Java heap space
    [ERR]                   at java.awt.image.DataBufferByte.<init>(Unknown Source)
    [ERR]                   at java.awt.image.ComponentSampleModel.createDataBuffer(Unknown Source)
    [ERR]                   at java.awt.image.Raster.createWritableRaster(Unknown Source)
    [ERR]                   at javax.imageio.ImageTypeSpecifier.createBufferedImage(Unknown Source)
    [ERR]                   at javax.imageio.ImageReader.getDestination(Unknown Source)
    [ERR]                   at com.sun.imageio.plugins.png.PNGImageReader.readImage
    [ERR]           (Unknown Source)
    [ERR]                   at com.sun.imageio.plugins.png.PNGImageReader.read(Unknown Source)
    [ERR]                   at javax.imageio.ImageIO.read(Unknown Source)
    [ERR]                   at javax.imageio.ImageIO.read(Unknown Source)
    [ERR]                   at com.sencha.tools.slicer.Slicer.loadImage(Slicer.java:50)
    [ERR]                   at com.sencha.command.theme.ThemeCommands$SliceCommand.execute(ThemeCommands.java:270)
    [ERR]                   at com.sencha.command.theme.ThemeCommands$BuildCommand.execute(ThemeCommands.java:174)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERR]           Total time: 20 seconds
    [ERR]           com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:207: The following error occurred while executing this line:
    C:\Altus\repos\Clients\CompanyName\ProductName\web\.sencha\app\build-impl.xml:213: com.sencha.exceptions.BasicException: Java heap space
    Now, I suppose it could be a recursion issue that causing it to run out of memory, but might also be that it's just run out of space.

    Could use a fix or suggestion asap please.
    Found a few things about increasing the java heap size, but I'm no java ninja, and don't intend to start routing around in the Cmd file structure.

    Cheers,
    Westy
    Product Architect
    Altus Ltd.

  2. #2
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Ok, I lied, and went digging in the Cmd src.

    In sencha.wsh.js I see that java is called, and a toolCfg of 'cmd.jvm.args' is accessed.
    Assuming that means I can add an array, or comma delimited list to my sencha.cfg?

    I'll try, since there's obviously no-one reading given the response to yesterdays posts
    Product Architect
    Altus Ltd.

  3. #3
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Hmm, can't put in application or workspace sencha.cfg, only the sencha.cfg in the Sencha Cmd directory - not ideal.

    Got past it though by updating line in config file from:
    Code:
    cmd.jvm.args=-Xms128m -Xmx512m
    to
    Code:
    cmd.jvm.args=-Xms128m -Xmx1024m
    Product Architect
    Altus Ltd.

  4. #4
    Sencha User mberrie's Avatar
    Join Date
    Feb 2011
    Location
    Bangkok, Thailand
    Posts
    506

    Default

    Do you have by any chance the 64bit version of Java installed?

    I ran into similar problems a while back and I forced Sencha Cmd to use the 32bit JVM which solved my memory problems.

    The higher memory consumption of 64bit vs 32bit version is to be expected. Not sure if more than that is going on here - it seemed kind of odd that this change was enough to drop below the 512MB.
    However, I didn't have time to look into it.

    3.0.0.250/sencha.cfg
    @@ -35,4 +35,4 @@
    cmd.jvm.args=-Xms128m -Xmx512m
    # 32-bit JRE if both are installed on the system. Restoring this option will
    # disable the use of the 64-bit JRE and will instead only run a 32-bit JRE.
    -# cmd.jvm.use.32bit=1
    +cmd.jvm.use.32bit=1

  5. #5
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Hmm, possibly.

    Code:
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
    Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
    Product Architect
    Altus Ltd.

  6. #6
    Sencha User
    Join Date
    Mar 2013
    Posts
    1

    Default

    So I have the same problem! I can not build my theme it outputs me an error.

    Java heap space

    I tried to change cfg file and paste there

    cmd.jvm.use.32bit=1

    then tried to set

    cmd.jvm.use.64bit=1

    then I changed value of cmd.jvm.args=-Xms128m -Xmx1024m

    and nothing helps me! I think the problem in this! I using Windows 64bit ..

  7. #7
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,037

    Default

    Tweaking the heap size in your applications config file doesn't seem to work, at least for Sencha Cmd v3.0.0.250 as I'm still using.

    You have to set the following in the sencha cmd config file (e.g. "C:\sencha\Sencha\Cmd\3.0.0.250\sencha.cfg"):
    cmd.jvm.args=-Xms128m -Xmx1024m

    I never had any joy with forcing 32/64 bit.

    Hope that helps,
    Westy
    Product Architect
    Altus Ltd.

  8. #8
    Ext GWT Premium Member
    Join Date
    Oct 2009
    Posts
    4

    Default Use export ANT_OPTS="-Xms1024m -Xmx2048m" in OSX

    We use ant to do our builds. On OSX it kept running out of heap space.

    added:

    export ANT_OPTS="-Xms1024m -Xmx2048m"

    in our ~/.profile file

  9. #9
    Sencha Premium Member
    Join Date
    Feb 2011
    Location
    Reston, VA
    Posts
    53

    Default

    Getting this error as well. Tweaking the settings in sencha.cfg doesn't seem to do anything...

  10. #10
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Location
    Enschede, The Netherlands
    Posts
    53

    Default

    For future reference, newer versions of Sencha Cmd read their vm options from the sencha.vmoptions file, as mentioned in this post.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •