https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-04-30T23:03:01ZQGIS Issue TrackingQGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=776252017-04-30T23:03:01ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Easy fix?</strong> set to <i>No</i></li><li><strong>Regression?</strong> set to <i>No</i></li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=807202017-07-06T13:30:10ZTorsten Osigustorsten@osigus.org
<ul></ul><p>Peter Meier wrote:</p>
<blockquote>
<p>Using the qgis_mapserv.fcgi.exe through Apache 2.4 on Windows. WMS GetPrint call works on all map composer items except for the label item.<br />Apache log has "End of script output before headers: qgis_mapserv.fcgi.exe" and returns 500 Internal Server Error when a label item is in the map.<br />Same issue on 32bit and 64bit of QGIS server. Error also happens on all formats (pdf, png etc).</p>
</blockquote>
<p>Same Problem on Ubuntu 16.04 LTS with QGIS 2.18.10 with text boxes (normal or html).</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=810362017-07-20T12:24:18ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Operating System</strong> deleted (<del><i>Windows</i></del>)</li><li><strong>Description</strong> updated (<a href="/journals/diff/81036?detail_id=69857" title="View differences">diff</a>)</li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Affected QGIS version</strong> changed from <i>2.16.1</i> to <i>2.18.10</i></li></ul><blockquote>
<p>Same Problem on Ubuntu 16.04 LTS with QGIS 2.18.10 with text boxes (normal or html).</p>
</blockquote>
<p>is that a headless Ubuntu Server? did you installed a fake xsever as explained for example here?</p>
<p><a class="external" href="https://www.itopen.it/qgis-server-setup-notes/">https://www.itopen.it/qgis-server-setup-notes/</a></p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=810472017-07-20T16:03:34ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Regression?</strong> changed from <i>No</i> to <i>Yes</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul><p>Nevermind I confirm the issue on 2.18.10 both on Linux as also on Windows.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=812022017-07-25T17:44:45ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Affected QGIS version</strong> changed from <i>2.18.10</i> to <i>2.18.11</i></li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=812582017-07-27T09:58:42ZJoão Gasparjoao.f.r.gaspar@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/download/11276/Logs_QGIS_Server_2.18.11.zip">Logs_QGIS_Server_2.18.11.zip</a> added</li></ul><p>I confirm in Windows 7 64-bits.<br />Please see the .zip file, i put the apache logs of QGIS Server 2.18.11 and a test .qgs project.</p>
<p>Cheers<br />João</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=814442017-08-07T16:55:49ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Thanks João Gaspar for the zip file. The QGIS Server log file is a little bit brief, Can you add the QGIS log file ?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=814462017-08-07T21:16:12ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Thanks João Gaspar for the zip file. The QGIS Server log file is a little bit brief, Can you add the QGIS log file ?</p>
</blockquote>
<p>Hi René Luc,<br />just tried with LM 3.1.3 and the demo Montepellier project on Ubuntu Xenial and QGIS Server 2.18.11 installed from QGIS.org repos.</p>
<p>Trying do a getprint (I used LM to be easily replicable for everyone) from within the Montpellier demo project, with the provided layout then the process fails (500) and in Apache log I see</p>
<p>[Mon Aug 07 21:56:24.637599 2017] [fcgid:warn] [pid 25688] [client 127.0.0.1:45236] mod_fcgid: error reading data, FastCGI server closed connection<br />[Mon Aug 07 21:56:24.637635 2017] [core:error] [pid 25688] [client 127.0.0.1:45236] End of script output before headers: qgis_mapserv.fcgi<br />[Mon Aug 07 21:56:26.720550 2017] [fcgid:error] [pid 6684] mod_fcgid: process /usr/lib/cgi-bin/qgis_mapserv.fcgi(25692) exit(communication error), get signal 11, possible coredump generated</p>
<p>As soon as I downgrade to 2.14.17 it works as expected.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=836202017-10-17T10:00:17ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Does the issue still exist in 2.18 ?<br />I have tested the dummy project with 2.18.13 and no segfault.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=836212017-10-17T10:01:57ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837342017-10-20T11:20:43ZUroš Preložnikuros@level2.si
<ul></ul><p>Hi,</p>
<p>I can confirm this bug on QGIS LTR 2.18.13 and Ubuntu server. Print composer without text label (map, legend, scale) works OK, but when you add simple text label then you get Server Error. Apache log is same as above.</p>
<p>Switching back to 2.14.x works normally.</p>
<p>regards,<br />Uroš</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837352017-10-20T11:22:23ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Affected QGIS version</strong> changed from <i>2.18.11</i> to <i>2.18.13</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837382017-10-20T11:32:20ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Have you the QGIS and QGIS Server log ?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837442017-10-20T14:29:19ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Have you the QGIS and QGIS Server log ?</p>
</blockquote>
<p>I did a complete fresh install on Ubuntu xenial, used QGIS 2.18.13 from QGIS repos + ubuntugis dependencies.<br />After setting up the fake xserver I'm able to print almost without issues > print works (no 500 error) but raster layers are printed above all the rest, despite the order set in QGIS project (also tried the "layer order" functionality) and LM plugin.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837462017-10-20T14:31:24ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>The layer order in the URL has changed between 2.14 and 2.18.</p>
<p>And with a fake server X, no segfault ?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837472017-10-20T14:34:34ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>The layer order in the URL has changed between 2.14 and 2.18.</p>
</blockquote>
<p>I tested the Montpellier demo from LM 3.1.4 (I added a raster layer in the project to test that).<br />What should we change to get the raster layers printed in the correct order?</p>
<blockquote>
<p>And with a fake server X, no segfault ?</p>
</blockquote>
<p>apparently not anymore, when I tried a while ago (<a class="issue tracker-1 status-5 priority-5 priority- closed" href="https://issues.qgis.org/issues/15440#note-8" title="QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes)... (Closed)">#15440-8</a>) it was seg faulting despite the fake xserver being correctly setup. Note: I had to setup the fake xserver despite testing on a Desktop installation of xenial, not a headless server installation.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837482017-10-20T14:36:02ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>The layer order in the URL has changed between 2.14 and 2.18.</p>
</blockquote>
<p>I tested the Montpellier demo from LM 3.1.4 (I added a raster layer in the project to test that).<br />What should we change to get the raster layers printed in the correct order?</p>
</blockquote>
<p>In LM config you have to specify the QGIS Server version to have the right order.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837492017-10-20T14:43:07ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Giovanni Manghi wrote:</p>
<blockquote>
<p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>The layer order in the URL has changed between 2.14 and 2.18.</p>
</blockquote>
<p>I tested the Montpellier demo from LM 3.1.4 (I added a raster layer in the project to test that).<br />What should we change to get the raster layers printed in the correct order?</p>
</blockquote>
<p>In LM config you have to specify the QGIS Server version to have the right order.</p>
</blockquote>
<p>oh sorry, completely forgot about that.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837662017-10-21T06:13:50ZUroš Preložnikuros@level2.si
<ul><li><strong>File</strong> <a href="/attachments/download/11572/qgis-server.log">qgis-server.log</a><a href="/attachments/11572/qgis-server.log"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li><li><strong>File</strong> <a href="/attachments/download/11573/qgis.png">qgis.png</a> added</li></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Have you the QGIS and QGIS Server log ?</p>
</blockquote>
<p>I have only QGIS Server log, QGIS is installed normally with qgis.org repositories, don't know what and where QGIS logs in this case.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=837812017-10-23T07:01:41ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Does the issue still exist in 2.18 ?<br />I have tested the dummy project with 2.18.13 and no segfault.</p>
</blockquote>
<p>I just tried also on Windows (with QGIS Server installed from osgeo4w) and the issue is confirmed: crashes when printing (with labels) with 2.18 and is ok with 2.14.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=838272017-10-23T10:42:53ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>Does the issue still exist in 2.18 ?<br />I have tested the dummy project with 2.18.13 and no segfault.</p>
</blockquote>
<p>see also this comment: <a class="external" href="https://github.com/qgis/QGIS/pull/5413#issuecomment-338619514">https://github.com/qgis/QGIS/pull/5413#issuecomment-338619514</a></p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=866692018-02-10T13:10:34ZRené-Luc ReLucrldhont@3liz.com
<ul><li><strong>Affected QGIS version</strong> changed from <i>2.18.13</i> to <i>2.18.16</i></li></ul><p>I can reproduce this issue in Debian Jessie with the debian package and not with my own compilation.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=867062018-02-12T11:01:39ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>I have testing n the same server : the package provided by qgis.org and my own build.</p>
<p>The package segfault, not the build!</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=867082018-02-12T15:37:38ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>I have testing n the same server : the package provided by qgis.org and my own build.</p>
<p>The package segfault, not the build!</p>
</blockquote>
<p>good catch!</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=869352018-02-21T14:33:13ZUroš Preložnikuros@level2.si
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>I have testing n the same server : the package provided by qgis.org and my own build.</p>
<p>The package segfault, not the build!</p>
</blockquote>
<p>Hi,<br />What does that mean. Is this solved?</p>
<p>thanks,<br />Uroš</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=869362018-02-21T14:56:25ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Uroš Preložnik wrote:</p>
<blockquote>
<p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>I have testing n the same server : the package provided by qgis.org and my own build.</p>
<p>The package segfault, not the build!</p>
</blockquote>
<p>Hi,<br />What does that mean. Is this solved?</p>
</blockquote>
<p>it means that the binaries available from the official "channels" (linux repositories, osgeo4w, etc.) are compiled in a way that they have/show the issue. If you compile yourself the code then is ok, probably because in the default compile options some flag is not used (but is used by who created official packages).</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=869572018-02-21T17:41:43ZUroš Preložnikuros@level2.si
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>it means that the binaries available from the official "channels" (linux repositories, osgeo4w, etc.) are compiled in a way that they have/show the issue. If you compile yourself the code then is ok, probably because in the default compile options some flag is not used (but is used by who created official packages).</p>
</blockquote>
<p>Thanks for explaining. I understand from developers point of view this is solved issue, but from users perspective? I mean what to do to get this working in official package in next point release?</p>
<p>We (QGIS community) need solid working QGIS server LTR for production sites.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=869612018-02-21T17:54:16ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>Thanks for explaining. I understand from developers point of view this is solved issue, but from users perspective? I mean what to do to get this working in official package in next point release?</p>
<p>We (QGIS community) need solid working QGIS server LTR for production sites.</p>
</blockquote>
<p>no, it is not solved at all. In fact is a long time that I try to raise some attention to this issue without much success. Now that 2.18 will become <strong>really</strong> the new LTR I believe that more people will hit this road block and so it will get more traction.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=869662018-02-21T18:46:37ZUroš Preložnikuros@level2.si
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>no, it is not solved at all. In fact is a long time that I try to raise some attention to this issue without much success. Now that 2.18 will become <strong>really</strong> the new LTR I believe that more people will hit this road block and so it will get more traction.</p>
</blockquote>
<p>That's quite a problem, meaning 2.18 can't be used in production. And 2.14 latest has its own issue with WFS reported here <a class="issue tracker-1 status-5 priority-5 priority- closed" href="https://issues.qgis.org/issues/17606" title="QGIS Server 2.14.19 WFS GetFeature Server Error (Closed)">#17606</a> and also can't be used if you need WFS. So for production we're stuck with 2.14.16 and not be able to update.</p>
<p>If someone will have chance maybe can be discussed in developers meeting happening now in Madeira. I know it's much more exciting to develop new features, but the reason for LTR was very clear. First and most important thing is that you have stable release.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=870512018-02-22T00:48:25ZJürgen Fischerjef@norbit.de
<ul></ul><p>hint: crashes here on debian unstable with <code>QT_GRAPHICSSYSTEM=opengl</code>, but not with <code>raster</code> or <code>native</code>.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=872432018-02-22T13:12:44ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Jürgen Fischer wrote:</p>
<blockquote>
<p>hint: crashes here on debian unstable with <code>QT_GRAPHICSSYSTEM=opengl</code>, but not with <code>raster</code> or <code>native</code>.</p>
</blockquote>
<p>How to fix it ?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=888652018-03-20T14:14:01ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>I can't reproduce the issue on the same server with 2.18.17 package.<br />Does the issue still exist ?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=888722018-03-20T21:30:21ZUroš Preložnikuros@level2.si
<ul></ul><p>René-Luc ReLuc wrote:</p>
<blockquote>
<p>I can't reproduce the issue on the same server with 2.18.17 package.<br />Does the issue still exist ?</p>
</blockquote>
<p>I can confirm issue exists on 2.18.17. I'm using LTR repository for Debian <a class="external" href="https://qgis.org/debian-ltr">https://qgis.org/debian-ltr</a> on Linux Mint and updated from 2.18.13 and issue remains. Problem is the same as described above. Print composer with text label generates server error on GetPrint request. If I run only map and legend works.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=892932018-04-18T10:22:22ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Operating System</strong> set to <i>Windows</i></li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=892982018-04-18T11:18:34ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Subject</strong> changed from <i>QGIS Server - GetPrint Internal Server error when there is a label item in map composer</i> to <i>QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printed</i></li><li><strong>Description</strong> updated (<a href="/journals/diff/89298?detail_id=78112" title="View differences">diff</a>)</li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=892992018-04-18T11:19:19ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>After some discussion with one of the main QGIS Server developers (Alessandro) I updated the description.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=893042018-04-18T12:18:18ZJürgen Fischerjef@norbit.de
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-6 priority-3 priority- closed" href="/issues/18747">Bug report #18747</a>: QGIS Server GetPrint issue on Desktop Linux installations</i> added</li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=893432018-04-19T16:35:28ZJürgen Fischerjef@norbit.de
<ul><li><strong>Description</strong> updated (<a href="/journals/diff/89343?detail_id=78158" title="View differences">diff</a>)</li></ul> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=893502018-04-20T00:37:54ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>With QGIS Server 3 there is no crash on GetPrint... but it seems to suffer of several other issues (regressions) compared to 2.*. I will file them in separate tickets. The most important one seems to be the speed (much slower).</p>
<p>Note: the only way I found to make QGIS Server 3 work on Win was use this method: <a class="external" href="http://level2.si/2018/03/qgis-server-3-0-on-windows-10/">http://level2.si/2018/03/qgis-server-3-0-on-windows-10/</a></p>
<p>If we assume that QGIS Server 3.4 will be at least on par with 2.* and that the source of this issue found (and a fix done) it remain the fact that until at least next fall QGIS Server ltr on Windows is missing arguably one its most important features.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=894252018-04-24T19:45:07ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>No one (as far as I understand) will look at this because a) on Linux has a clear "workaround" and b) on QGIS 3 does not happen.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=895302018-05-02T14:37:33ZUroš Preložnikuros@level2.si
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>No one (as far as I understand) will look at this because a) on Linux has a clear "workaround" and b) on QGIS 3 does not happen.</p>
</blockquote>
<p>The related Linux issue needs some clarification on what is the clear "workaround". I don't understand and I couldn't make it worked. I posted more description there.</p>
<p>This would be fine to say OK, you should use QGIS 3 but is it so simple? You wrote earlier there are other issues, I didn't test fully QGIS Server 3. When I will I will publish it on site level2.si.</p>
<p>It's not OK to have LTS release not working and only response is, well you should be using QGIS 3.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=895312018-05-02T15:09:52ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Uroš Preložnik wrote:</p>
<blockquote>
<p>Giovanni Manghi wrote:</p>
<blockquote>
<p>No one (as far as I understand) will look at this because a) on Linux has a clear "workaround" and b) on QGIS 3 does not happen.</p>
</blockquote>
<p>The related Linux issue needs some clarification on what is the clear "workaround". I don't understand and I couldn't make it worked. I posted more description there.</p>
<p>This would be fine to say OK, you should use QGIS 3 but is it so simple? You wrote earlier there are other issues, I didn't test fully QGIS Server 3. When I will I will publish it on site level2.si.</p>
<p>It's not OK to have LTS release not working and only response is, well you should be using QGIS 3.</p>
</blockquote>
<p>I understand and agree. QGIS Server 2.18 should work on Windows as it did the previous LTR (2.8 and 2.14). Something changed (possibly something on how the code is compiled rather than a regression in the code), the proof is that also on Desktop Linux (tested Ubuntu here) the behavior also changed meaning that up until 2.14 was <strong>not</strong> needed to install a fake xserver (something that on a real server is always expected to be necessary, as they are headless). The "workaround" is to install the fake xserver <a class="external" href="https://www.itopen.it/qgis-server-setup-notes/">https://www.itopen.it/qgis-server-setup-notes/</a> but on Windows this is not possible (not that I know). I raised the issue a couple fo times in the dev mailing list, but this didn't get much attraction. The GetPrint call for layouts with advanced elements works on QGIS Server 3 on Windows, but a preliminary test also shown other new issues (I have yet to fully investigate them).</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=895432018-05-03T04:39:35ZUroš Preložnikuros@level2.si
<ul></ul><blockquote><blockquote>
<p>Giovanni Manghi wrote:</p>
</blockquote>
<p>I understand and agree. QGIS Server 2.18 should work on Windows as it did the previous LTR (2.8 and 2.14). Something changed (possibly something on how the code is compiled rather than a regression in the code), the proof is that also on Desktop Linux (tested Ubuntu here) the behavior also changed meaning that up until 2.14 was <strong>not</strong> needed to install a fake xserver (something that on a real server is always expected to be necessary, as they are headless). The "workaround" is to install the fake xserver <a class="external" href="https://www.itopen.it/qgis-server-setup-notes/">https://www.itopen.it/qgis-server-setup-notes/</a> but on Windows this is not possible (not that I know). I raised the issue a couple fo times in the dev mailing list, but this didn't get much attraction. The GetPrint call for layouts with advanced elements works on QGIS Server 3 on Windows, but a preliminary test also shown other new issues (I have yet to fully investigate them).</p>
</blockquote>
<p>Thank you for your effort. I will try to test QGIS 3 and also enable fake xserver on Linux. I just do not understand why do you mean is not needed to install this on production Linux server. Its' normal for Linux to have only server instance (bash) without any GUI and it's working on 2.14.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=988482019-01-24T10:20:31ZMartin Hubermartin.huber@condesys.com
<ul></ul><p>Having the same issue on Windows with IIS as web application server: Printing in 2.14 works, printing in 2.18 not.<br />The environment variable DISPLAY=99 solves the problem also on Windows with IIS.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=988552019-01-24T11:01:06ZMartin Hubermartin.huber@condesys.com
<ul></ul><p>GetPrint and all other Server Requests do not run on Windows using the OSGEO4W installation of Version 3.4.4-1. There must be more problems than the dummy DISPLAY variable.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=988632019-01-24T12:15:35ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Martin Huber wrote:</p>
<blockquote>
<p>GetPrint and all other Server Requests do not run on Windows using the OSGEO4W installation of Version 3.4.4-1. There must be more problems than the dummy DISPLAY variable.</p>
</blockquote>
<p>so qgis server 3.4.4 is completely broken on Windows?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=988682019-01-24T12:42:24ZUroš Preložnikuros@level2.si
<ul></ul><p>Yes, I also noticed that and file another <a class="issue tracker-1 status-4 priority-5 priority-" href="https://issues.qgis.org/issues/20873" title="QGIS Server 3.4 broken on Windows (Feedback)">#20873</a> some time ago. Maybe better to discuss it there.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991342019-01-28T13:07:47ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Martin Huber wrote:</p>
<blockquote>
<p>Having the same issue on Windows with IIS as web application server: Printing in 2.14 works, printing in 2.18 not.<br />The environment variable DISPLAY=99 solves the problem also on Windows with IIS.</p>
</blockquote>
<p>sorry for the dumb question, how to set the DISPLAY variable on Windows?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991402019-01-28T13:41:35ZMartin Hubermartin.huber@condesys.com
<ul></ul><p>Ciao Giovanni</p>
<p>This is not a dumb question, because you will not find a single description in the whole zillions of web-pages telling you how to install QGIS Server on IIS.</p>
<p>Here the secret #1: add the qgis server executable as a FastCGI application to the root node of your IIS<br />secret #2: for a FastCGI application you can set environment variables -> also the DISPLAY<br />secret #3: create a landing point for your QGIS server request with a handler assignment deviating the call to the qgis server executable<br />This works if you manage all other IIS stuff like the permissions for the application pool etc.</p>
<p>If you have further questions, we should discuss this separately (<a class="email" href="mailto:martin.huber@condesys.com">martin.huber@condesys.com</a>).</p>
<p>Tanti saluti</p>
<p>Martin</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991432019-01-28T14:09:52ZRené-Luc ReLucrldhont@3liz.com
<ul></ul><p>Martin, you can probably update the QGIS documentation !</p>
<p>On windows, the documentation only specified Apache from Osgeo4W, no information about IIS: <a class="external" href="https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation-on-windows">https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation-on-windows</a></p>
<p>About the documentation about Apache can also updated.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991442019-01-28T14:16:51ZMartin Hubermartin.huber@condesys.com
<ul></ul><p>René-Luc, please give me the link to the doc-source and I'll do it as soon as I have some time.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991542019-01-28T16:14:13ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Martin Huber wrote:</p>
<blockquote>
<p>René-Luc, please give me the link to the doc-source and I'll do it as soon as I have some time.</p>
</blockquote>
<p>I would say here: <a class="external" href="https://github.com/qgis/QGIS-Documentation/tree/master/source/docs/user_manual/working_with_ogc/server">https://github.com/qgis/QGIS-Documentation/tree/master/source/docs/user_manual/working_with_ogc/server</a></p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991552019-01-28T16:14:50ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Martin Huber wrote:</p>
<blockquote>
<p>Ciao Giovanni</p>
<p>This is not a dumb question, because you will not find a single description in the whole zillions of web-pages telling you how to install QGIS Server on IIS.</p>
<p>Here the secret #1: add the qgis server executable as a FastCGI application to the root node of your IIS<br />secret #2: for a FastCGI application you can set environment variables -> also the DISPLAY<br />secret #3: create a landing point for your QGIS server request with a handler assignment deviating the call to the qgis server executable<br />This works if you manage all other IIS stuff like the permissions for the application pool etc.</p>
<p>If you have further questions, we should discuss this separately (<a class="email" href="mailto:martin.huber@condesys.com">martin.huber@condesys.com</a>).</p>
</blockquote>
<p>thanks!</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991562019-01-28T16:48:03ZAlessandro Pasotti
<ul></ul><p>@Martin Huber, out of curiosity, what part of the information you wrote is specific to QGIS and what part may apply to any FastCGI deployment on IIS?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991572019-01-28T17:03:56ZMartin Hubermartin.huber@condesys.com
<ul></ul><p>Alessandro Pasotti wrote:</p>
<blockquote>
<p>@Martin Huber, out of curiosity, what part of the information you wrote is specific to QGIS and what part may apply to any FastCGI deployment on IIS?</p>
</blockquote>
<p>It is all on efficient (but not necessarily obvious) FastCGI deployment on IIS which is needed to set all the environment parameters like DISPLAY that QGIS server requires to run on IIS. And these are only the core steps when all the other IIS settings and module activations are done. Do you have a link describing that step by step somewhere?</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=991582019-01-28T17:34:37ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>like DISPLAY that QGIS server requires to run on IIS</p>
</blockquote>
<p>it is probably also needed when using Apache (otherwise getprint will not work). Maybe this thicket is not relevant anymore as is for 2.18, but anyway this issue was a road block to the adoption of qgis server for many who are using Windows servers.</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=1000352019-02-13T08:13:20ZTobias Brunnertobias.brunner@zuerich.ch
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote><blockquote>
<p>like DISPLAY that QGIS server requires to run on IIS</p>
</blockquote>
<p>it is probably also needed when using Apache (otherwise getprint will not work). Maybe this thicket is not relevant anymore as is for 2.18, but anyway this issue was a road block to the adoption of qgis server for many who are using Windows servers.</p>
</blockquote>
<p>I can confirm that setting the environment variable also solves this issue on apache64/qgis 2.18.20 64bit/windows server 2012</p>
<p>FcgidInitialEnv DISPLAY ":99"</p> QGIS Application - Bug report #15440: QGIS Server: GetPrint crashes on Windows when there are advanced elements (i.e. html text boxes) in the layout being printedhttps://issues.qgis.org/issues/15440?journal_id=1000452019-02-13T11:05:05ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>wontfix</i></li></ul><blockquote>
<p>I can confirm that setting the environment variable also solves this issue on apache64/qgis 2.18.20 64bit/windows server 2012</p>
<p>FcgidInitialEnv DISPLAY ":99"</p>
</blockquote>
<p>Great!, this should really go into the QGIS 2.18 docs, are you comfortable in submitting a patch for the docs on GitHub?<br />By the way, this is the very same solution is necessary to apply on Linux servers.</p>