Bug report #9295
GetPrint causes segfault if HTML formatted text is used in the template
|Affected QGIS version:||2.18.4||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||wontfix|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||17904|
This bug was discussed at least in
but I couldn't find the related ticket, please mark as duplicate if it already exists.
The bug is still present in master.
While waiting for a fix we should document this issue as a known limitation.
#3 Updated by René-Luc ReLuc over 6 years ago
The known limitation is that QGIS-Server needs a fake X server to render HTML in GetPrint.
We use it in production with getPrint, HTML and fake X server without crashes.
#4 Updated by Alessandro Pasotti over 6 years ago
I know that there are workarounds but it's still a serious bug.
This "known limitation" is not really "known" by most part of the users, AFAIK it isn't documented anywhere but in a few old emails, it should be clearly documented instead and we should try to find a system to avoid the crash when an X server isn't available, better serve a blank field instead.
If we cannot find a way to avoid the crash, as a last resource, we should add X to the package dependencies.
#6 Updated by Paolo Cavallini about 6 years ago
Don't know if it's the same issue, but we're getting:
[Thu Jul 31 13:27:07.210983 2014] [fcgid:warn] [pid 5450] (104)Connection reset by peer: [client 127.0.0.1:46153] mod_fcgid: error reading data from FastCGI server
[Thu Jul 31 13:27:07.211444 2014] [core:error] [pid 5450] [client 127.0.0.1:46153] End of script output before headers: qgis_mapserv.fcgi
even after installing and configuring xvfb. This happens quite reliably when attempting to print a layout with layers present in the template legend, but switched off in the TOC.