Skip to content Skip to sidebar Skip to footer

Dojo 1.7 Build: Out Of Memory Errors

After upgrading to Dojo 1.7.3, our ant build that was working flawlessly for years on previous versions of Dojo is now completely non-operational due to out of memory errors: [java

Solution 1:

Finally found the problem, the releaseDir switch value had both windows and unix file separators in it. That used to work fine in Dojo < 1.6 and typically Java has no problem with it. For some reason, the Dojo 1.7 build system hits memory problems in that case.

The releaseDir, after resolving the ant tokens from the question, had a mix of both unix and windows file separators:

<arg value="releaseDir=${output.dir}/path/foo/bar" /> 
-> Became -> 
releaseDir=blah\blah\blah/path/foo/bar

And that was enough to cause the build to lock up at 'writing resources' and then crash with 'out of heap space'. (This is something Java normally handles without issue).

The fix was simple enough:

<pathid="dojo.output.tmp"><pathelementlocation=" ${output.dir}/path/foo/bar "/></path><pathconverttargetos="unix"property="dojo.output.dir"refid="dojo.output.tmp" />
...
<argvalue="releaseDir=${dojo.output.dir}" />

Post a Comment for "Dojo 1.7 Build: Out Of Memory Errors"