Opened 5 years ago
Last modified 4 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 Changed 5 years ago by
Component: | Internal mappaint style → Core mappaint |
---|
comment:2 Changed 5 years ago by
comment:3 Changed 5 years ago by
Milestone: | → 18.04 |
---|---|
Summary: | Error in styles → StackOverFlowError when using `:areaStyle` in map paint style |
comment:6 Changed 4 years ago by
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 Changed 4 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Changed 4 years ago by
Attachment: | reload-popup.PNG added |
---|
comment:8 Changed 4 years ago by
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 Changed 4 years ago by
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 Changed 4 years ago by
At least this message is very confusing. When I load rules for the validator what does it tell me?
comment:12 Changed 4 years ago by
I still see the message when I press the OK button for e.g. c:\TEMP\geometry.mapcss.
Error occurs in loop: