From trac_mapguide at osgeo.org Mon Aug 31 05:26:33 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 31 Aug 2026 12:26:33 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2890: Invalid index : -1 with OGR Geopackage Message-ID: <050.96be6e1a37a710177ebb1571079663ad@osgeo.org> #2890: Invalid index : -1 with OGR Geopackage ---------------------------------+--------------------------------- Reporter: Reservoirdog | Owner: (none) Type: defect | Status: new Priority: low | Milestone: Component: Rendering Service | Version: 4.0.0 Severity: trivial | Keywords: geopackage OGR GDAL External ID: | ---------------------------------+--------------------------------- I am using Mapguide OS 4.0.0.10202 with GDAL (release-1900-x64-gdal-2-4-4-) to use GeoPackages with Mapguide. All works really well, but from time to time I am getting a lot of errors in Errorlog: <2026-08-28T10:11:04> 14388 MapAgent IBB iMap - TBView [3.0.10h] 127.0.0.1 Anonymous Error: Failed to stylize layer: EEA Text An exception occurred in FDO component. Error occurred in Feature Source (Library://IBB- Datenpool/Strom/Data/Strom_Brugg_GPKG.FeatureSource): Invalid index : -1 (Cause: , Root Cause: Invalid index : -1) StackTrace: - MgMappingUtil.StylizeLayers() line 918 file C:\Workspace\mg-4.0\MgDev\Server\src\Services\Mapping\MappingUtil.cpp <2026-08-28T10:11:04> 14388 MapAgent IBB iMap - TBView [3.0.10h] 127.0.0.1 Anonymous Error: Failed to stylize layer: Trassequerschnittswechsel Text An exception occurred in FDO component. Error occurred in Feature Source (Library://IBB- Datenpool/Strom/Data/Strom_Brugg_GPKG.FeatureSource): Invalid index : -1 (Cause: , Root Cause: Invalid index : -1) StackTrace: - MgMappingUtil.StylizeLayers() line 918 file C:\Workspace\mg-4.0\MgDev\Server\src\Services\Mapping\MappingUtil.cpp I had a chat about this error with ChatGPT, it was considered it has something to do with missing attributes, which are used in display data filters (visualisation rules) The errors occur very randomly, and when occuring it seems nearly all datasources are affected at the same time? (one layer is requested, but all non-related layers also produce the error at the same time). -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Aug 31 05:26:51 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 31 Aug 2026 12:26:51 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2890: Invalid index : -1 with OGR Geopackage In-Reply-To: <050.96be6e1a37a710177ebb1571079663ad@osgeo.org> References: <050.96be6e1a37a710177ebb1571079663ad@osgeo.org> Message-ID: <065.b84a4dd1a3fdfaa03e9a010b6307fc64@osgeo.org> #2890: Invalid index : -1 with OGR Geopackage ---------------------------------+---------------------- Reporter: Reservoirdog | Owner: (none) Type: defect | Status: new Priority: low | Milestone: Component: Rendering Service | Version: 4.0.0 Severity: trivial | Resolution: Keywords: geopackage OGR GDAL | External ID: ---------------------------------+---------------------- Changes (by Reservoirdog): * Attachment "2026-08-31_142009.png" added. screenshot of maestro -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Mon Aug 31 05:27:35 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Mon, 31 Aug 2026 12:27:35 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2890: Invalid index : -1 with OGR Geopackage In-Reply-To: <050.96be6e1a37a710177ebb1571079663ad@osgeo.org> References: <050.96be6e1a37a710177ebb1571079663ad@osgeo.org> Message-ID: <065.542874caa50ec1a394dc8cbcfdac0eea@osgeo.org> #2890: Invalid index : -1 with OGR Geopackage ---------------------------------+---------------------- Reporter: Reservoirdog | Owner: (none) Type: defect | Status: new Priority: low | Milestone: Component: Rendering Service | Version: 4.0.0 Severity: trivial | Resolution: Keywords: geopackage OGR GDAL | External ID: ---------------------------------+---------------------- Changes (by Reservoirdog): * Attachment "2026-08-31_142701.png" added. screenshot of errorlog -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals