Bug report #10198
mapserver does not update when project file changes
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | |||
Category: | QGIS Server | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | Yes | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 18647 |
Description
The cache should be updated thanks to QFileSystemWatcher in QgsConfigCache, but processEvents() is never called in the main loop.
Once processEvents() is added, there is a crash when updating the project and submitting another wms GetPrint request because QgsMapLayerRegistry is not cleaned up between calls.
Adding QgsMapLayerRegistry::instance()->removeAllMapLayers() in the loop solves that.
I'll submit a PR today.
Associated revisions
History
#1
Updated by Vincent Mora almost 11 years ago
- Crashes QGIS or corrupts data changed from No to Yes
- Pull Request or Patch supplied changed from No to Yes
- Resolution set to fixed/implemented
PR is there https://github.com/qgis/QGIS/pull/1337
#2
Updated by Marco Hugentobler almost 11 years ago
- Status changed from Open to Closed
Fixed in changeset 436973dc033b4d2324be2f20310a5b37a96d3c4d.