Admittedly, I do have five functions on one page, so PhantomJS is probably struggling with this.That shouldn't be a problem, we have many more functions on the same page in our Venus starter site.
I should note that the time-outs (logged above) only appear on pages with multiple (somewhat complex) functions. Single functions on other pages render just fine with PhantomJS now.Could be something related to the functions/page templates it is on, or something in the markup that makes PhantomJs timeout. That could be javascript errors or some kind of response redirects.
Please try the following:
Open the function image in a new tab (one that fails to load). Try changing the url from
/Renderers/FunctionBox?...
to
/Renderers/FunctionPreview.ashx?...
that will be the page that phantomjs renders in order to generate the preview. Check in Chrome/Firefox if there're any javascript errors.
Another way to test it: run a windows command prompt and run there:
phantomjs.exe renderingServer.js --config=config.json
that will run the phantomjs console app in the mode that C1 uses it. There you can paste the request the C1 sends, that is written in the log files:
.CMSAUTH_189....53c264b&ph=content&css=div.tabs div&width=896&editable=true|C:\Composite\Composite C1 Website\BSU-Website\App_Data\Composite\Cache\PreviewImages\function\9r0F3g.png|function
press Enter and you can see if it is crashing/timeouting or behaving differently somehow.