# X-Pack: Report Generation errors from png-js

**URL:** <https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492>\
**Category:** Kibana\
**Created:** [April 3, 2018, 2:53am UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492 "2018-04-03T02:53:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcmac](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mcmac](https://discuss.elastic.co/u/mcmac)\
**Post date:** [April 3, 2018, 2:53am UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492/1 "2018-04-03T02:53:01Z")

</div>

Every time I attempt to generate a report from the dashboard, the errors below pop up and kibana restarts.

OS: CentOS 7  
Kibana: 6.2.2

Errors:  
Apr 3 02:35:37 kiban-srv kibana: /usr/share/kibana/plugins/x-pack/node\_modules/png-js/png-node.js:242  
Apr 3 02:35:37 kiban-srv kibana: throw new Error("Invalid filter algorithm: " + data[pos - 1]);  
Apr 3 02:35:37 kiban-srv kibana: ^  
Apr 3 02:35:37 kiban-srv kibana: Error: Invalid filter algorithm: 255  
Apr 3 02:35:37 kiban-srv kibana: at /usr/share/kibana/plugins/x-pack/node\_modules/png-js/png-node.js:242:21  
Apr 3 02:35:37 kiban-srv kibana: at Inflate.onEnd (zlib.js:227:5)  
Apr 3 02:35:37 kiban-srv kibana: at emitNone (events.js:91:20)  
Apr 3 02:35:37 kiban-srv kibana: at Inflate.emit (events.js:185:7)  
Apr 3 02:35:37 kiban-srv kibana: at endReadableNT (\_stream\_readable.js:974:12)  
Apr 3 02:35:37 kiban-srv kibana: at \_combinedTickCallback (internal/process/next\_tick.js:80:11)  
Apr 3 02:35:37 kiban-srv kibana: at process.\_tickDomainCallback (internal/process/next\_tick.js:128:9)

Kibana Config:  
xpack.reporting.queue.timeout: 300000  
xpack.reporting.kibanaServer.port: 443  
xpack.reporting.kibanaServer.protocol: https  
xpack.reporting.kibanaServer.hostname: mysite.mysite  
xpack.security.authProviders:  
- saml  
- basic  
xpack.security.public:  
hostname: mysite.mysite  
port: 443  
protocol: https  
xpack.security.secureCookies: true

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [April 3, 2018, 3:11pm UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492/2 "2018-04-03T15:11:05Z")

</div>

Can you try to switch to chromium browser and see if it works?

```auto
xpack.reporting.capture.browser.type: chromium
xpack.reporting.capture.browser.chromium.disableSandbox: true

```

I think sandboxing doesn't work on centOS 7, so the above will turn that off too.

Not sure if it'll make a difference since the error is coming out of the png library, but worth a shot. There are some issues with Phantom and it will be deprecated once we officially switch to Chromium.

---

<div class="post-metadata">

**Author:** ![mcmac](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mcmac](https://discuss.elastic.co/u/mcmac)\
**Post date:** [April 3, 2018, 3:28pm UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492/3 "2018-04-03T15:28:04Z")

</div>

I added those lines ( actually tried this already, uncommented them). I get the same error and Kibana crashes/restarts.

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [April 3, 2018, 3:58pm UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492/4 "2018-04-03T15:58:33Z")

</div>

Whats on the dashboard? Does it work for an empty dashboard? A dashboard with a single bar chart? How about if you try generating a report from the visualize app?

Are you doing the print or preserve layout option?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 1, 2018, 3:58pm UTC](https://discuss.elastic.co/t/x-pack-report-generation-errors-from-png-js/126492/5 "2018-05-01T15:58:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
