[Geoserver-users] geoserver wms in endless loop while rendering textsymbolizers with single dot

Hello list,

maybe I found a bug in geoserver 1.7.3 but I'm not sure. I tried to render some streetnames from osm-data and it hangs sometimes. In the german town Hamburg for example there are some streets tagged with name='.' (I really don't know why, but it is there)
This single dot causes geoserver to hang (it takes 100% CPU and never ends rendering).

Here is a snippet from my sld:
#############################
<Rule>
    <ogc:Filter>
     <ogc:Or>
       <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>highway</ogc:PropertyName>
        <ogc:Literal>unclassified</ogc:Literal>
       </ogc:PropertyIsEqualTo>
       <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>highway</ogc:PropertyName>
        <ogc:Literal>residential</ogc:Literal>
       </ogc:PropertyIsEqualTo>
     </ogc:Or>
    </ogc:Filter>
    <MaxScaleDenominator>5000</MaxScaleDenominator>
    <TextSymbolizer>
     <Geometry><ogc:PropertyName>way</ogc:PropertyName></Geometry>
     <Label><ogc:PropertyName>name</ogc:PropertyName></Label>
     <Font>
      <CssParameter name="font-family">DejaVu Sans</CssParameter>
      <CssParameter name="font-style">Normal</CssParameter>
      <CssParameter name="font-size">11</CssParameter>
     </Font>
     <LabelPlacement>
      <LinePlacement>
       <PerpendicularOffset>0</PerpendicularOffset>
      </LinePlacement>
     </LabelPlacement>
     <Halo>
      <Radius>1</Radius>
     </Halo>
     <Fill><CssParameter name="fill">#000000</CssParameter></Fill>
     <VendorOption name="spaceAround">10</VendorOption>
     <VendorOption name="group">true</VendorOption>
     <VendorOption name="labelAllGroup">true</VendorOption>
     <VendorOption name="minGroupDistance">400</VendorOption>
     <VendorOption name="repeat">400</VendorOption>
     <VendorOption name="maxDisplacement">200</VendorOption>
     <VendorOption name="followLine">true</VendorOption>
     <VendorOption name="maxAngleDelta">20</VendorOption>
    </TextSymbolizer>
   </Rule>
############################

If I zoom with openlayers to an area with a street named with a single dot it hangs. I tried out geoserver 1.7.2 and it works without problems. So its geoserver 1.7.3 specific.
I don't know whats going on. Maybe somebody can help or write a bug report.

thanks

Christoph from Dresden

Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl.
http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html

wagner.naunhof@anonymised.com ha scritto:

Hello list,

maybe I found a bug in geoserver 1.7.3 but I'm not sure. I tried to render some streetnames from osm-data and it hangs sometimes. In the german town Hamburg for example there are some streets tagged with name='.' (I really don't know why, but it is there)
This single dot causes geoserver to hang (it takes 100% CPU and never ends rendering).

Here is a snippet from my sld:
#############################
<Rule>
    <ogc:Filter>
     <ogc:Or>
       <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>highway</ogc:PropertyName>
        <ogc:Literal>unclassified</ogc:Literal>
       </ogc:PropertyIsEqualTo>
       <ogc:PropertyIsEqualTo>
        <ogc:PropertyName>highway</ogc:PropertyName>
        <ogc:Literal>residential</ogc:Literal>
       </ogc:PropertyIsEqualTo>
     </ogc:Or>
    </ogc:Filter>
    <MaxScaleDenominator>5000</MaxScaleDenominator>
    <TextSymbolizer>
     <Geometry><ogc:PropertyName>way</ogc:PropertyName></Geometry>
     <Label><ogc:PropertyName>name</ogc:PropertyName></Label>
     <Font>
      <CssParameter name="font-family">DejaVu Sans</CssParameter>
      <CssParameter name="font-style">Normal</CssParameter>
      <CssParameter name="font-size">11</CssParameter>
     </Font>
     <LabelPlacement>
      <LinePlacement>
       <PerpendicularOffset>0</PerpendicularOffset>
      </LinePlacement>
     </LabelPlacement>
     <Halo>
      <Radius>1</Radius>
     </Halo>
     <Fill><CssParameter name="fill">#000000</CssParameter></Fill>
     <VendorOption name="spaceAround">10</VendorOption>
     <VendorOption name="group">true</VendorOption>
     <VendorOption name="labelAllGroup">true</VendorOption>
     <VendorOption name="minGroupDistance">400</VendorOption>
     <VendorOption name="repeat">400</VendorOption>
     <VendorOption name="maxDisplacement">200</VendorOption>
     <VendorOption name="followLine">true</VendorOption>
     <VendorOption name="maxAngleDelta">20</VendorOption>
    </TextSymbolizer>
   </Rule>
############################

If I zoom with openlayers to an area with a street named with a single dot it hangs. I tried out geoserver 1.7.2 and it works without problems. So its geoserver 1.7.3 specific.
I don't know whats going on. Maybe somebody can help or write a bug report.

Hmmm... it might be related to the lenght of the string, "." is very short. Please open a bug report on jira.codehaus.org

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.