Frequently Asked Question
Symptom
- When printing a Webi report in PDF/XLS format, some N4V components are not correctly printed (a puzzle may appear) or there is a very long delay to print the report.
- In the N4V logs (#Need4Viz/logs/n4v_xxx_err.log), the following error appears :
Error: Failed to launch the browser process!
[18652:8652:0927/113256.289:ERROR:cache_util_win.cc(21)] Unable to move the cache: Access Denied. (0x5)
[18652:8652:0927/113256.289:ERROR:cache_util.cc(138)] Unable to move cache folder C:\Program Files (x86)\Need4Viz\nodejs\PuppeteerDataDir\ShaderCache\GPUCache to C:\Program Files (x86)\Need4Viz\nodejs\PuppeteerDataDir\ShaderCache\old_GPUCache_000
[18652:8652:0927/113256.289:ERROR:disk_cache.cc(184)] Unable to create cache
[18652:8652:0927/113256.289:ERROR:shader_disk_cache.cc(606)] Shader Cache Creation failed: -2
Environment
- Windows & Linux Server
- Need4Viz : all versions
Resolution
A/ Temp data folder not accessible
The N4V engine use the Puppeteer module (based on Chrome) to generate a PNG image sent to Webi for the PDF/XLS printing. Puppeteer use a working folder and sometime, this folder is not anymore accessible by the module.
To fix the issue, follow the steps :
- Entirely delete the PuppeteerDataDir folder (in the error logs, you should find the full path, generally it is ~Need4viz/nodejs/PuppeteerDataDir)
- Launch a Powershell window as administrator
- Run the command "pm2 start all" to restart all the N4V services
- Try to print again your Webi report
B/ Chart too large for printing
Sometime, when the component to print is a HTML scroll table (for instance), the html generated can be very huge (several megabytes) caused by the hight number of lines in the table (several thousands). In this case, the printing engine may have some difficulties to print the rendering of the HTML.
To fix the issue, reduce the number of lines of the table to print it.