[Geoserver-users] Geoserver CSS Module

I have the CSS below. It causes the CSS Module to go off into Never Never Land, requiring a TomCat Restart to get it back. I presume it is in some form of infinite loop and the CPU is at 100%+

Geoserver 2.5.1 with the correct downloaded Module Version

I think it is a logic problem with my CSS, but I just cannot see it …

This happens after I paste the CSS into the Stylesheet box but before I submit it.

No Errors in the Tomcat of Geoserver Logs …

/*

  • @title OSMPH_Lines
  • @abstract Styles for all Roads at High Zoom Levels.
    */

/* ---------------- GLOBAL --------------------------------------------------------------------- */
*{
mark-mime: ‘image/svg+xml’;
}

/* ---------------- 30K - 15K--------------------------------------------------------------------- */

/* @title Traffic Lights 30K - 15K */
[highway=‘traffic_signals’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 4px;
}

/* @title Barriers 30K - 15K */
[barrier=‘gate’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 10px;
}

/* @title Parking 30K - 15K */
[amenity=‘parking’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 10px;
}

/* ---------------- 15K - 30K--------------------------------------------------------------------- */

/* @title Traffic Signals 15K - 6K */
[highway=‘traffic_signals’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 6px;
}

/* @title Barriers 15K - 6K */
[barrier=‘gate’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 12px;
}

/* @title Parking 15K - 6K */
[amenity=‘parking’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 15px;
}

/* ---------------- 6K - 3K--------------------------------------------------------------------- */

/* @title Traffic Signals 6K - 3K /
[highway=‘traffic_signals’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 8px;
}
/
@title Barriers 6K - 3K */
[barrier=‘gate’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 15px;
}

/* @title Parking 6K - 3K */
[amenity=‘parking’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 20px;
}

/* ---------------- 3K - 0K--------------------------------------------------------------------- */

/* @title Traffic Signals 3K - 0K */
[highway=‘traffic_signals’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 10px;
}

/* @title Barriers 3K - 0K */
[barrier=‘gate’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 20px;
}

/* @title Parking 3K - 0K */
[amenity=‘parking’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 25px;
}

/* ---------------- END --------------------------------------------------------------------- */

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap

See me on LinkedIn

See me on StackExchange

===============================================================================================
The contents of this email are intended only for the individual(s) to whom it is addressed and may contain
confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in error, please notify the sender immediately and
delete the email and any attachments.

===============================================================================================

Update, The process finally returned after about 25 minutes, on my 8 core 32GB ubuntu Box.

I guess there is a much better way to write the CSS to prevent this, any suggestions very welcome. This amount of time will make it a long slow process :frowning:

···

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap

See me on LinkedIn

See me on StackExchange

===============================================================================================
The contents of this email are intended only for the individual(s) to whom it is addressed and may contain
confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in error, please notify the sender immediately and
delete the email and any attachments.

===============================================================================================

On Fri, Jun 20, 2014 at 11:55 AM, Mark Cupitt <markcupitt@anonymised.com> wrote:

I have the CSS below. It causes the CSS Module to go off into Never Never Land, requiring a TomCat Restart to get it back. I presume it is in some form of infinite loop and the CPU is at 100%+

Geoserver 2.5.1 with the correct downloaded Module Version

I think it is a logic problem with my CSS, but I just cannot see it …

This happens after I paste the CSS into the Stylesheet box but before I submit it.

No Errors in the Tomcat of Geoserver Logs …

/*

  • @title OSMPH_Lines
  • @abstract Styles for all Roads at High Zoom Levels.
    */

/* ---------------- GLOBAL --------------------------------------------------------------------- */
*{
mark-mime: ‘image/svg+xml’;
}

/* ---------------- 30K - 15K--------------------------------------------------------------------- */

/* @title Traffic Lights 30K - 15K */
[highway=‘traffic_signals’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 4px;
}

/* @title Barriers 30K - 15K */
[barrier=‘gate’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 10px;
}

/* @title Parking 30K - 15K */
[amenity=‘parking’][@scale>15000][@scale<30000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 10px;
}

/* ---------------- 15K - 30K--------------------------------------------------------------------- */

/* @title Traffic Signals 15K - 6K */
[highway=‘traffic_signals’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 6px;
}

/* @title Barriers 15K - 6K */
[barrier=‘gate’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 12px;
}

/* @title Parking 15K - 6K */
[amenity=‘parking’][@scale>6000][@scale<15000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 15px;
}

/* ---------------- 6K - 3K--------------------------------------------------------------------- */

/* @title Traffic Signals 6K - 3K /
[highway=‘traffic_signals’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 8px;
}
/
@title Barriers 6K - 3K */
[barrier=‘gate’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 15px;
}

/* @title Parking 6K - 3K */
[amenity=‘parking’][@scale>3000][@scale<6000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 20px;
}

/* ---------------- 3K - 0K--------------------------------------------------------------------- */

/* @title Traffic Signals 3K - 0K */
[highway=‘traffic_signals’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 10px;
}

/* @title Barriers 3K - 0K */
[barrier=‘gate’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 20px;
}

/* @title Parking 3K - 0K */
[amenity=‘parking’][@scale<3000] {
mark: url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 25px;
}

/* ---------------- END --------------------------------------------------------------------- */

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap

See me on LinkedIn

See me on StackExchange

===============================================================================================
The contents of this email are intended only for the individual(s) to whom it is addressed and may contain
confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in error, please notify the sender immediately and
delete the email and any attachments.

===============================================================================================

Hi Mark,

I'm not a dev, but if you can confirm this behaviour on another computer
it looks clearly as an issue.

Best way to get this solved would be to create an issue on GeoServer's
issue-tracker, and include some data and the css:

http://jira.codehaus.org/browse/GEOS

In that way devs can replay your setup and (hopefully) come with a fix
for it.

Regards,

Richard Duivenvoorde

On 20-06-14 06:41, Mark Cupitt wrote:

Update, The process finally returned after about 25 minutes, on my 8
core 32GB ubuntu Box.

I guess there is a much better way to write the CSS to prevent this, any
suggestions very welcome. This amount of time will make it a long slow
process :frowning:

Regards

Mark Cupitt

"If we change the world, let it bear the mark of our intelligence"

See me on Open StreetMap <https://www.openstreetmap.org/user/Mark_Cupitt&gt;

See me on LinkedIn <http://ph.linkedin.com/in/markcupitt&gt;

*
See me on StackExchange <http://gis.stackexchange.com/users/17846/mark-c&gt;\*

===============================================================================================
The contents of this email are intended only for the individual(s) to
whom it is addressed and may contain
confidential or privileged information. If you are not the intended
recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in
error, please notify the sender immediately and
delete the email and any attachments.

On Fri, Jun 20, 2014 at 11:55 AM, Mark Cupitt <markcupitt@anonymised.com
<mailto:markcupitt@anonymised.com>> wrote:

    I have the CSS below. It causes the CSS Module to go off into Never
    Never Land, requiring a TomCat Restart to get it back. I presume it
    is in some form of infinite loop and the CPU is at 100%+

    Geoserver 2.5.1 with the correct downloaded Module Version

    I think it is a logic problem with my CSS, but I just cannot see it ..

    This happens after I paste the CSS into the Stylesheet box but
    before I submit it.

    No Errors in the Tomcat of Geoserver Logs ..

    /*
     * @title OSMPH_Lines
     * @abstract Styles for all Roads at High Zoom Levels.
     */

     /* ---------------- GLOBAL
    --------------------------------------------------------------------- */
      *{
       mark-mime: 'image/svg+xml';
     }
     
      /* ---------------- 30K -
    15K---------------------------------------------------------------------
    */
      
      /* @title Traffic Lights 30K - 15K */
    [highway='traffic_signals'][@scale>15000][@scale<30000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
      mark-size: 4px;
      }
      
      /* @title Barriers 30K - 15K */
    [barrier='gate'][@scale>15000][@scale<30000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
      mark-size: 10px;
      }

      /* @title Parking 30K - 15K */
    [amenity='parking'][@scale>15000][@scale<30000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
      mark-size: 10px;
      }

       /* ---------------- 15K -
    30K---------------------------------------------------------------------
    */
       
          /* @title Traffic Signals 15K - 6K */
    [highway='traffic_signals'][@scale>6000][@scale<15000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
      mark-size: 6px;
      }
      
           /* @title Barriers 15K - 6K */
    [barrier='gate'][@scale>6000][@scale<15000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
      mark-size: 12px;
      }

          /* @title Parking 15K - 6K */
    [amenity='parking'][@scale>6000][@scale<15000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
      mark-size: 15px;
      }

      /* ---------------- 6K -
    3K---------------------------------------------------------------------
    */
       
          /* @title Traffic Signals 6K - 3K */
    [highway='traffic_signals'][@scale>3000][@scale<6000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
      mark-size: 8px;
      }
          /* @title Barriers 6K - 3K */
    [barrier='gate'][@scale>3000][@scale<6000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
      mark-size: 15px;
      }

          /* @title Parking 6K - 3K */
    [amenity='parking'][@scale>3000][@scale<6000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
      mark-size: 20px;
      }
      
       /* ---------------- 3K -
    0K---------------------------------------------------------------------
    */
      
          /* @title Traffic Signals 3K - 0K */
    [highway='traffic_signals'][@scale<3000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
      mark-size: 10px;
      }
     
          /* @title Barriers 3K - 0K */
    [barrier='gate'][@scale<3000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
      mark-size: 20px;
      }
      
          /* @title Parking 3K - 0K */
    [amenity='parking'][@scale<3000] {
      mark:
    url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
      mark-size: 25px;
      }

         /* ---------------- END
    --------------------------------------------------------------------- */
      
    Regards

    Mark Cupitt

    "If we change the world, let it bear the mark of our intelligence"

    See me on Open StreetMap
    <https://www.openstreetmap.org/user/Mark_Cupitt&gt;

    See me on LinkedIn <http://ph.linkedin.com/in/markcupitt&gt;

    *
    See me on StackExchange
    <http://gis.stackexchange.com/users/17846/mark-c&gt;\*

    ===============================================================================================
    The contents of this email are intended only for the individual(s)
    to whom it is addressed and may contain
    confidential or privileged information. If you are not the intended
    recipient, you must not disclose, copy, distribute,
    or use the contents of this email. If you have received this email
    in error, please notify the sender immediately and
    delete the email and any attachments.
    ===============================================================================================

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Richard, Done … Cheers Mark

···

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap

See me on LinkedIn

See me on StackExchange

===============================================================================================
The contents of this email are intended only for the individual(s) to whom it is addressed and may contain
confidential or privileged information. If you are not the intended recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in error, please notify the sender immediately and
delete the email and any attachments.

===============================================================================================

On Fri, Jun 20, 2014 at 2:17 PM, Richard Duivenvoorde <rdmailings@anonymised.com> wrote:

Hi Mark,

I’m not a dev, but if you can confirm this behaviour on another computer
it looks clearly as an issue.

Best way to get this solved would be to create an issue on GeoServer’s
issue-tracker, and include some data and the css:

http://jira.codehaus.org/browse/GEOS

In that way devs can replay your setup and (hopefully) come with a fix
for it.

Regards,

Richard Duivenvoorde

On 20-06-14 06:41, Mark Cupitt wrote:

Update, The process finally returned after about 25 minutes, on my 8
core 32GB ubuntu Box.

I guess there is a much better way to write the CSS to prevent this, any
suggestions very welcome. This amount of time will make it a long slow
process :frowning:

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap <https://www.openstreetmap.org/user/Mark_Cupitt>

See me on LinkedIn <http://ph.linkedin.com/in/markcupitt>

See me on StackExchange <http://gis.stackexchange.com/users/17846/mark-c>*

===============================================================================================
The contents of this email are intended only for the individual(s) to
whom it is addressed and may contain
confidential or privileged information. If you are not the intended
recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email in
error, please notify the sender immediately and
delete the email and any attachments.

On Fri, Jun 20, 2014 at 11:55 AM, Mark Cupitt <markcupitt@anonymised.com

mailto:[markcupitt@anonymised.com](mailto:markcupitt@anonymised.com..84...)> wrote:

I have the CSS below. It causes the CSS Module to go off into Never
Never Land, requiring a TomCat Restart to get it back. I presume it
is in some form of infinite loop and the CPU is at 100%+

Geoserver 2.5.1 with the correct downloaded Module Version

I think it is a logic problem with my CSS, but I just cannot see it …

This happens after I paste the CSS into the Stylesheet box but
before I submit it.

No Errors in the Tomcat of Geoserver Logs …

/*

  • @title OSMPH_Lines
  • @abstract Styles for all Roads at High Zoom Levels.
    */

/* ---------------- GLOBAL
--------------------------------------------------------------------- */
*{
mark-mime: ‘image/svg+xml’;
}

/* ---------------- 30K -
15K---------------------------------------------------------------------
*/

/* @title Traffic Lights 30K - 15K */
[highway=‘traffic_signals’][@scale>15000][@scale<30000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 4px;
}

/* @title Barriers 30K - 15K */
[barrier=‘gate’][@scale>15000][@scale<30000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 10px;
}

/* @title Parking 30K - 15K */
[amenity=‘parking’][@scale>15000][@scale<30000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 10px;
}

/* ---------------- 15K -
30K---------------------------------------------------------------------
*/

/* @title Traffic Signals 15K - 6K */
[highway=‘traffic_signals’][@scale>6000][@scale<15000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 6px;
}

/* @title Barriers 15K - 6K */
[barrier=‘gate’][@scale>6000][@scale<15000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 12px;
}

/* @title Parking 15K - 6K */
[amenity=‘parking’][@scale>6000][@scale<15000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 15px;
}

/* ---------------- 6K -
3K---------------------------------------------------------------------
*/

/* @title Traffic Signals 6K - 3K /
[highway=‘traffic_signals’][@scale>3000][@scale<6000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 8px;
}
/
@title Barriers 6K - 3K */
[barrier=‘gate’][@scale>3000][@scale<6000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 15px;
}

/* @title Parking 6K - 3K */
[amenity=‘parking’][@scale>3000][@scale<6000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 20px;
}

/* ---------------- 3K -
0K---------------------------------------------------------------------
*/

/* @title Traffic Signals 3K - 0K */
[highway=‘traffic_signals’][@scale<3000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/trafficlight.svg’);
mark-size: 10px;
}

/* @title Barriers 3K - 0K */
[barrier=‘gate’][@scale<3000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/barrier_liftgate.svg’);
mark-size: 20px;
}

/* @title Parking 3K - 0K */
[amenity=‘parking’][@scale<3000] {
mark:
url('http://icons.markware.net/geoserver/icons/traffic/parking.svg’);
mark-size: 25px;
}

/* ---------------- END
--------------------------------------------------------------------- */

Regards

Mark Cupitt

“If we change the world, let it bear the mark of our intelligence”

See me on Open StreetMap

<https://www.openstreetmap.org/user/Mark_Cupitt>

See me on LinkedIn <http://ph.linkedin.com/in/markcupitt>

See me on StackExchange
<http://gis.stackexchange.com/users/17846/mark-c>*

===============================================================================================
The contents of this email are intended only for the individual(s)
to whom it is addressed and may contain
confidential or privileged information. If you are not the intended
recipient, you must not disclose, copy, distribute,
or use the contents of this email. If you have received this email
in error, please notify the sender immediately and
delete the email and any attachments.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users