Bug report #5794

QGIS_mapserv crashes if I add an empty layer in the mapfile

Added by aboudreault - almost 12 years ago. Updated about 7 years ago.

Status:Closed
Priority:Normal
Assignee:Marco Hugentobler
Category:QGIS Server
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:15285

Description

Using qgis_mapserv 1.7.4, when I try to specify a mapfile that contains an empty layer (no data) ... it crashes with: terminate called after throwing an instance of 'QgsCsException'. I normally create a mapfile and setup everything on the application.... then some data are loaded by the client in the layer using a tool.

History

#1 Updated by Giovanni Manghi almost 12 years ago

  • Assignee set to Marco Hugentobler

dod you tested qgis 1.8?

#2 Updated by Paolo Cavallini over 11 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#3 Updated by Jürgen Fischer almost 10 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#4 Updated by lars Lingner over 9 years ago

I can confirm this issue on Ubuntu server 14.04. with qgis-mapserver 2.4.0-0precise2 amd64

uname -a
Linux 1344330903-6 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Running with Apache mod_fcgi

I could also provide a Coredump file.

#5 Updated by Giovanni Manghi over 8 years ago

As far as I can see still an issue on 2.8.3 and master.

#6 Updated by lars Lingner over 7 years ago

With version 2.16 this issue seams to be solved. I made a test with an empty query result from a postgis view, QGis Server doesn't crash anymore.

#7 Updated by Giovanni Manghi about 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

I also tested it today, and is ok now.

Also available in: Atom PDF