Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetLegendGraphics Server Error #21224

Closed
qgib opened this issue Jul 27, 2015 · 10 comments
Closed

GetLegendGraphics Server Error #21224

qgib opened this issue Jul 27, 2015 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Jul 27, 2015

Author Name: Uroš Preložnik (@uprel)
Original Redmine Issue: 13161
Affected QGIS version: 2.10.0
Redmine category:qgis_server


With QGIS server update to 2.10 call to certain legend images with GetLegendGraphics causes 500 Server Error (polygon symbols seems OK).

Example URL: http://localhost/wms/eu_demo?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphics&FORMAT=image/png&BOXSPACE=1&LAYERSPACE=2&SYMBOLSPACE=1&SYMBOLHEIGHT=2&LAYERFONTSIZE=8&ITEMFONTSIZE=8&LAYERS=airports&DPI=96

It worked normally in 2.8.

This is from QGIS server log file:

[3309][21:03:55] No server python plugins are available
[3309][21:03:55] *****new request
[3309][21:03:55] remote ip: 127.0.0.1
[3309][21:03:55] HTTP_USER_AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
[3309][21:03:55] BOXSPACE:1
[3309][21:03:55] DPI:96
[3309][21:03:55] FORMAT:image/png
[3309][21:03:55] ITEMFONTSIZE:8
[3309][21:03:55] LAYERFONTSIZE:8
[3309][21:03:55] LAYERS:airports
[3309][21:03:55] LAYERSPACE:2
[3309][21:03:55] MAP:/home/uros/GIS/projects/eu_demo.qgs
[3309][21:03:55] REQUEST:GetLegendGraphics
[3309][21:03:55] SERVICE:WMS
[3309][21:03:55] SYMBOLHEIGHT:2
[3309][21:03:55] SYMBOLSPACE:1
[3309][21:03:55] VERSION:1.3.0

@qgib
Copy link
Contributor Author

qgib commented Jul 30, 2015

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Normal to Severe/Regression
  • fixed_version_id was changed from Version 2.10 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Aug 5, 2015

Author Name: Bernhard Ströbl (Bernhard Ströbl)


Further information: On my WMS-Server (QGIS 2.10, Ubuntu 14.04) only polygon layers' legend graphics are displayed; any GetLegendGraphic request on a line or point layer results in a 500 error.
my Server: http://jena.de/kartenportal

@qgib
Copy link
Contributor Author

qgib commented Aug 19, 2015

Author Name: Tudor Bărăscu (@tudorbarascu)


I also encountered this issue in QGIS Master.
If someone wants to replicate it, you can download the VM described at http://qgep.github.io/docs/vm/index.html and run the following request

http://qgisplatform.demo/wms/qgep_en?SERVICE=WMS&VERSION=1.3.0&SLD_VERSION=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&LAYER=vw_qgep_cover&STYLE=

@qgib
Copy link
Contributor Author

qgib commented Aug 20, 2015

Author Name: Tom Palan (@tpalan)


I can confirm this bug with Version 2.10.0 on Linux (Debian Jessie AMD64). Apparently there is a segfault when requesting GetLegendGraphics.

@qgib
Copy link
Contributor Author

qgib commented Sep 17, 2015

Author Name: Marco Hugentobler (@mhugent)


I have tested it, and it seems to be an x-server problem (seems some changes in legend rendering now trigger the need for an X-Server).

@qgib
Copy link
Contributor Author

qgib commented Sep 24, 2015

Author Name: Uroš Preložnik (@uprel)


Marco Hugentobler wrote:

I have tested it, and it seems to be an x-server problem (seems some changes in legend rendering now trigger the need for an X-Server).

What does that mean, can with certain configuration this work? Will this be fixed in next release?

thanks,
Uros

@qgib
Copy link
Contributor Author

qgib commented Oct 5, 2015

Author Name: Jürgen Fischer (@jef-n)


  • subject was changed from QGIS Server GetLegendGraphics Server Error to GetLegendGraphics Server Error

@qgib
Copy link
Contributor Author

qgib commented Oct 8, 2015

Author Name: Tom Palan (@tpalan)


I compiled Debian packages from yesterdays (2015-10-07) git master, and it seems that the error is gone. But I also had to install 3 more packages to my system (new dependencies): libqca2 libqwt5-qt4 libqca2-plugin-ossl. Maybe this fixed the error?

@qgib
Copy link
Contributor Author

qgib commented Oct 8, 2015

Author Name: Jürgen Fischer (@jef-n)


Tom Palan wrote:

I compiled Debian packages from yesterdays (2015-10-07) git master, and it seems that the error is gone. But I also had to install 3 more packages to my system (new dependencies): libqca2 libqwt5-qt4 libqca2-plugin-ossl. Maybe this fixed the error?

Probably not. libqca2 and libqca2-plugin-ossl are for the new authentication system - that has been around in master for two weeks tops. And libqwt5-qt4 shold not be now - but even if it was, IIRC it's only used to display histograms and the GPS information widget. So that should be unrelated too and it must be something else.

@qgib
Copy link
Contributor Author

qgib commented Oct 21, 2015

Author Name: Tudor Bărăscu (@tudorbarascu)


I also tested and the issue is indeed gone.


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server Crash/Data Corruption labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant