Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Dec 7, 2017
2 parents 524a1b5 + 7e7b8b4 commit b934826
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<rest.api.version>v1</rest.api.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cytoscape.api.version>[3.6.0,3.7.0)</cytoscape.api.version>
<cytoscape.api.version>3.6.0</cytoscape.api.version>
</properties>

<groupId>org.cytoscape</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,19 @@ private Response getImageForView(String fileType, Long networkId, Long viewId, I

private final Response imageGenerator(final String fileType, PresentationWriterFactory factory,
final CyNetworkView view, int width, int height) {
final Collection<RenderingEngine<?>> re = renderingEngineManager.getRenderingEngines(view);
Collection<RenderingEngine<?>> re = renderingEngineManager.getRenderingEngines(view);
try {
for (int retry = 0; re.isEmpty() && retry < 20; retry++) {
System.out.println("No renderer available. Retry count: " + retry);
Thread.sleep(100);
re = renderingEngineManager.getRenderingEngines(view);
}
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (re.isEmpty()) {
throw new IllegalArgumentException("No rendering engine.");
throw new IllegalArgumentException("No rendering engine for {\"network\":" + view.getModel().getSUID() +", \"view\":" + view.getSUID() + "}");
}
try {
RenderingEngine<?> engine = null;
Expand Down

0 comments on commit b934826

Please sign in to comment.