Opened 17 years ago
Closed 13 years ago
#305 closed defect (fixed)
OGR Provider gives infinite Loop
Reported by: | ksgeograf | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Feature Service | Version: | 2.1.0 |
Severity: | major | Keywords: | OGR Infinite loop 100% CPU GEOMETRY query SELECTFEATURES |
Cc: | External ID: |
Description
Text from the mailing list:
Query the layer with an attribute query, gives expected results. Query the layer with a geometry query, gives expected results, UNLESS there is exactly one feature in the result set. In this case the server goes into a nearly infinite loop. Investigating the issue by debugging, I found out that the query completes perfectly, and then the client sends an infinite stream of GetFeature packages. Breaking the run in the debugger, gave me the same feature in the result multiple times. Quering an SDF feature source gave no such problems. Changing the columns returned gave the same result.
The new thing that I have found out, is that the QUERYMAPFEATURES does not exhibit this problem. I find that very weird, as it should do exactly the same: query by geometry. I can now simulate a SELECTFEATURES by making a dummy runtime map, with a dummy layer visible. With the resultset, I can query the featuresource with the ID's. It works, but it is cumbersome and very slow.
With this new info, can anyone give a guess as to what the problem might be?
Attachments (4)
Change History (9)
by , 17 years ago
Attachment: | MGTest.zip added |
---|
comment:1 by , 17 years ago
If the featuresource is saved as: "Library://OGR Infinite Loop Error/MG Test OGR.FeatureSource", the following query runs correct: http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=SELECTFEATURES&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library%3A%2F%2FOGR+Infinite+Loop+Error%2FMG+Test+OGR.FeatureSource&CLASSNAME=OGRSchema%3AMGTest&FILTER=FID%3D1
The only difference is the Filter. Stopping the service while the last query runs, will reveal that the same row is being returned indefinitely.
comment:2 by , 17 years ago
Milestone: | 2.0 |
---|
comment:3 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Old ticket; closing. If still a concern, please retest at version 2.1 and re-open.
comment:4 by , 15 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Version: | 1.2.0 → 2.1.0 |
Stil a problem in 2.1, I will attach an MGP for easier reproduction.
by , 15 years ago
Attachment: | OGR Infinite Loop Error.mgp added |
---|
Package with a complete OGR featuresource that fits the links in the issue
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Cannot observe this problem in 2.4. Considering it fixed.
Sample TAB file with a single polygon