Blank visualizer (empty json file)
Posted: Tue Feb 23, 2021 12:58 am
Dear OpenSim team,
I get my model loaded in 3.3, 4.0, 4.1 and 4.2 and can make computations. Unfortunately the Visualizer from version 4.0 on does not show the model anymore. An error message is not displayed. After test removing single OBJ files, I got the Visualizer to work, apparently not depending on the file size of the OBJ files. An error message suggested this in the log file:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuffer.append(StringBuffer.java:270)
at java.io.StringWriter.write(StringWriter.java:101)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:112)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:53)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:59)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:53)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:59)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.opensim.threejs.JSONUtilities.writeJsonFile(JSONUtilities.java:125)
at org.opensim.view.pub.ViewDB.exportModelJsonToVisualizer(ViewDB.java:460)
at org.opensim.view.pub.ViewDB.update(ViewDB.java:399)
at java.util.Observable.notifyObservers(Observable.java:159)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:153)
[catch] at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:141)
Since a partial model is loaded, ThreeJS runs stable and also the individually removed OBJ files are loaded by ThreeJS, there seem to be problems with the generation of the Json file. These files are always empty with the full model, so ThreeJS cannot visualize anything (an error message would be helpful). Unfortunately, since there are no error messages when generating the JSON file, I'm getting no further with debugging. Also, I would like to know how to increase the Java heap memory within OpenSim.
I can provide the model on request.
Maybe related to:
viewtopicPhpbb.php?f=91&t=12917&p=37192&start=0&view=
viewtopicPhpbb.php?f=91&t=12790&p=36595&start=0&view=
viewtopicPhpbb.php?f=91&t=12702&p=36292&start=0&view=
viewtopicPhpbb.php?f=91&t=12564&p=35866&start=0&view=
viewtopicPhpbb.php?f=91&t=12414&p=35272&start=0&view=
viewtopicPhpbb.php?f=91&t=11975&p=33811&start=0&view=
viewtopicPhpbb.php?f=91&t=11769&p=33062&start=0&view=
viewtopicPhpbb.php?f=91&t=12917&p=0&start=0&view=
Doesn't help:
https://simtk-confluence.stanford.edu/d ... +Questions
I get my model loaded in 3.3, 4.0, 4.1 and 4.2 and can make computations. Unfortunately the Visualizer from version 4.0 on does not show the model anymore. An error message is not displayed. After test removing single OBJ files, I got the Visualizer to work, apparently not depending on the file size of the OBJ files. An error message suggested this in the log file:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuffer.append(StringBuffer.java:270)
at java.io.StringWriter.write(StringWriter.java:101)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:112)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:53)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:59)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:53)
at org.json.simple.JSONArray.writeJSONString(JSONArray.java:59)
at org.json.simple.JSONValue.writeJSONString(JSONValue.java:135)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:67)
at org.json.simple.JSONObject.writeJSONString(JSONObject.java:73)
at org.opensim.threejs.JSONUtilities.writeJsonFile(JSONUtilities.java:125)
at org.opensim.view.pub.ViewDB.exportModelJsonToVisualizer(ViewDB.java:460)
at org.opensim.view.pub.ViewDB.update(ViewDB.java:399)
at java.util.Observable.notifyObservers(Observable.java:159)
at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:153)
[catch] at org.opensim.view.pub.OpenSimDB.addModel(OpenSimDB.java:141)
Since a partial model is loaded, ThreeJS runs stable and also the individually removed OBJ files are loaded by ThreeJS, there seem to be problems with the generation of the Json file. These files are always empty with the full model, so ThreeJS cannot visualize anything (an error message would be helpful). Unfortunately, since there are no error messages when generating the JSON file, I'm getting no further with debugging. Also, I would like to know how to increase the Java heap memory within OpenSim.
I can provide the model on request.
Maybe related to:
viewtopicPhpbb.php?f=91&t=12917&p=37192&start=0&view=
viewtopicPhpbb.php?f=91&t=12790&p=36595&start=0&view=
viewtopicPhpbb.php?f=91&t=12702&p=36292&start=0&view=
viewtopicPhpbb.php?f=91&t=12564&p=35866&start=0&view=
viewtopicPhpbb.php?f=91&t=12414&p=35272&start=0&view=
viewtopicPhpbb.php?f=91&t=11975&p=33811&start=0&view=
viewtopicPhpbb.php?f=91&t=11769&p=33062&start=0&view=
viewtopicPhpbb.php?f=91&t=12917&p=0&start=0&view=
Doesn't help:
https://simtk-confluence.stanford.edu/d ... +Questions