Segmentation fault with simple chart.js example (v0.12.4 both Ubuntu 16.04 and OSX 10.12) #3242

joegoyette opened this Issue Dec 8, 2016 · 4 comments


None yet

3 participants


Following code causes consistent segmentation fault on both Ubuntu 16.04 and OSX 10.12. Chart renders correctly on Mac Chrome (54) print preview.

MacBook-Pro-3:wkhtmltopdf-testing jgoyette$ wkhtmltopdf test.html out.pdf
Loading pages (1/6)
Segmentation fault: 11=======================================] 100%

Example HTML

<script src=""></script> <script> var ctx = document.getElementById("myChart"); var myChart = new Chart(ctx, {type: 'bar',data: {datasets: [{data: [12]}]},}); </script>
ashkulz commented Dec 9, 2016

Is this a regression since 0.12.3? Is the HTML complete?


Looks like a regression. Works fine on Ubuntu 16.04 with wkhtmltopdf 0.12.3. No more segmentation fault.

Note: I had to set the chart.js options "responsive: false" in order to get the chart to be rendered.

Example HTML:

jgoyette@lamp3:~$ wkhtmltox/bin/wkhtmltopdf --version
wkhtmltopdf 0.12.3 (with patched qt)

jgoyette@lamp3:~$ ./wkhtmltox/bin/wkhtmltopdf --javascript-delay 2000 test.html out.pdf
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)

ashkulz commented Dec 10, 2016

Can you try and bisect the issue to identify the offending commit? Thanks!

smogg commented Jan 12, 2017

Same here (OSX 10.12.1). Downgrading to 0.12.3 helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment