[x3d-public] announce: updated encoding, X3D to JSON Stylesheet Converter

Don Brutzman brutzman at nps.edu
Fri Nov 13 14:46:46 PST 2015


On 11/13/2015 9:46 AM, John Carlson wrote:
> I’d like to try to load some of the files that exceed memory limitations in with the builtin JSON parse using my JSON loader.  If they pass, good.  Otherwise, I’d like to built a streaming JSON parser to see if we can get the scenes loaded.  Do you have a list of the files that exceed memory limitations?
>
> John

sure, see outputs in the following file:

>> On Nov 13, 2015, at 1:17 AM, Don Brutzman <brutzman at nps.edu <mailto:brutzman at nps.edu>> wrote:
>>
>> Thanks for the testing, this is a helpful complement that mostly matches the jslint results.
>>
>> http://www.web3d.org/x3d/content/examples/build.json.out

Example memory overrun:

C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling/GeometricShapes//IcosahedronSubdivisionLevel5.x3d processing with X3dToJson stylesheet
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOfRange(Arrays.java:3664)
	at java.lang.String.<init>(String.java:207)
	at java.lang.String.substring(String.java:1933)
	at net.sf.saxon.sort.CodepointCollator.substringAfter(CodepointCollator.java:139)
	at net.sf.saxon.functions.Contains.evaluateItem(Contains.java:64)
	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
	at net.sf.saxon.instruct.GeneralVariable.getSelectValue(GeneralVariable.java:373)
	at net.sf.saxon.instruct.Instruction.assembleParams(Instruction.java:147)
	at net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:291)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
	at net.sf.saxon.instruct.Template.expand(Template.java:220)
	at net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:440)
	at net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:259)
	at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:275)
	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
	at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:540)
	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:549)
	at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
	at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)
	at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)
	at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)
	at net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)
	at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:275)
	at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)
	at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:339)
	at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:540)
	at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
Java Result: 1

... also I will look at how to configure larger heap space in ant.
all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list