Opened 7 years ago
Last modified 5 years ago
#16183 reopened defect
StackOverFlowError when using `:areaStyle` in map paint style
Reported by: | mpasha | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.04 |
Component: | Core mappaint | Version: | latest |
Keywords: | Cc: |
Description
You receive an error if you add the following to the map rendering style:
area:closed:areaStyle ⧉ area:closed:areaStyle { throwOther: tr("Перекрывающиеся области"); }
Attachments (1)
Change History (13)
comment:1 by , 7 years ago
Component: | Internal mappaint style → Core mappaint |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Milestone: | → 18.04 |
---|---|
Summary: | Error in styles → StackOverFlowError when using `:areaStyle` in map paint style |
comment:6 by , 5 years ago
Doesn't work for me. I see
WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator
when I reload validator rules geometry.mapcss while JOSM is running.
comment:7 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
by , 5 years ago
Attachment: | reload-popup.PNG added |
---|
comment:8 by , 5 years ago
Seems to be a special case. I've done this:
Open Preferences -> Validator -> Tab Tag checker rules and changed the source file for the geometry rules. When I press OK
I see a bunch of the warning messages. When I just change the file in the editor the file is loaded again without a message.
Corresponding log messages:
2020-02-27 10:35:27.801 FINE: org.openstreetmap.josm.gui.preferences.SourceEditor$EditSourceEntryDialog.setVisible(true) from org.openstreetmap.josm.gui.ExtendedDialog.showDialog(ExtendedDialog.java:255) 2020-02-27 10:35:29.405 FINE: org.openstreetmap.josm.gui.preferences.SourceEditor$EditSourceEntryDialog.setVisible(false) from org.openstreetmap.josm.gui.ExtendedDialog.buttonAction(ExtendedDialog.java:390) 2020-02-27 10:35:29.426 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.427 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.427 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.427 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.428 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.428 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.430 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.431 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.432 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:35:29.433 WARNING: Removing 'areaStyle' pseudo-class. This class is only meant for validator 2020-02-27 10:41:20.694 INFO: Source Geometry has been modified. Reloading it... 2020-02-27 10:41:20.742 INFO: Source Geometry has been modified. Reloading it...
comment:9 by , 5 years ago
Unless an bug report error shows up, everything is fine. "Removing" refers to removing from the parsed MapCSS, but not from the file. The point of r13633 was to avoid an exception.
comment:10 by , 5 years ago
At least this message is very confusing. When I load rules for the validator what does it tell me?
comment:12 by , 5 years ago
I still see the message when I press the OK button for e.g. c:\TEMP\geometry.mapcss.
Error occurs in loop: