You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading a large YAML config file, planetiler throws the following exception:
Exception in thread "main" org.snakeyaml.engine.v2.exceptions.YamlEngineException: The incoming YAML document exceeds the limit: 3145728 code points.
at org.snakeyaml.engine.v2.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:304)
at org.snakeyaml.engine.v2.scanner.ScannerImpl.checkToken(ScannerImpl.java:193)
at org.snakeyaml.engine.v2.parser.ParserImpl$ParseIndentlessSequenceEntryKey.produce(ParserImpl.java:661)
at org.snakeyaml.engine.v2.parser.ParserImpl.lambda$produce$1(ParserImpl.java:232)
at java.base/java.util.Optional.ifPresent(Unknown Source)
at org.snakeyaml.engine.v2.parser.ParserImpl.produce(ParserImpl.java:232)
at org.snakeyaml.engine.v2.parser.ParserImpl.peekEvent(ParserImpl.java:206)
at org.snakeyaml.engine.v2.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:57)
at org.snakeyaml.engine.v2.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:43)
at org.snakeyaml.engine.v2.comments.CommentEventsCollector.collectEvents(CommentEventsCollector.java:135)
at org.snakeyaml.engine.v2.comments.CommentEventsCollector.collectEvents(CommentEventsCollector.java:115)
at org.snakeyaml.engine.v2.composer.Composer.composeScalarNode(Composer.java:244)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:206)
at org.snakeyaml.engine.v2.composer.Composer.composeSequenceNode(Composer.java:277)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:208)
at org.snakeyaml.engine.v2.composer.Composer.composeValueNode(Composer.java:364)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingChildren(Composer.java:343)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingNode(Composer.java:321)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:210)
at org.snakeyaml.engine.v2.composer.Composer.composeSequenceNode(Composer.java:277)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:208)
at org.snakeyaml.engine.v2.composer.Composer.composeValueNode(Composer.java:364)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingChildren(Composer.java:343)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingNode(Composer.java:321)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:210)
at org.snakeyaml.engine.v2.composer.Composer.composeSequenceNode(Composer.java:277)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:208)
at org.snakeyaml.engine.v2.composer.Composer.composeValueNode(Composer.java:364)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingChildren(Composer.java:343)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingNode(Composer.java:321)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:210)
at org.snakeyaml.engine.v2.composer.Composer.composeSequenceNode(Composer.java:277)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:208)
at org.snakeyaml.engine.v2.composer.Composer.composeValueNode(Composer.java:364)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingChildren(Composer.java:343)
at org.snakeyaml.engine.v2.composer.Composer.composeMappingNode(Composer.java:321)
at org.snakeyaml.engine.v2.composer.Composer.composeNode(Composer.java:210)
at org.snakeyaml.engine.v2.composer.Composer.next(Composer.java:162)
at org.snakeyaml.engine.v2.composer.Composer.getSingleNode(Composer.java:128)
at org.snakeyaml.engine.v2.api.Load.loadOne(Load.java:110)
at org.snakeyaml.engine.v2.api.Load.loadFromInputStream(Load.java:123)
at com.onthegomap.planetiler.util.YAML.load(YAML.java:35)
at com.onthegomap.planetiler.util.YAML.load(YAML.java:27)
at com.onthegomap.planetiler.custommap.configschema.SchemaConfig.load(SchemaConfig.java:39)
at com.onthegomap.planetiler.custommap.ConfiguredMapMain.main(ConfiguredMapMain.java:36)
at com.onthegomap.planetiler.Main.main(Main.java:102)
This occurred for me when trying to load a 7.5mb Yaml file. Since the size of the input Yaml is known, it should be possible to get the SnakeYaml input filesize limit to match the size of the input file:
When loading a large YAML config file, planetiler throws the following exception:
This occurred for me when trying to load a 7.5mb Yaml file. Since the size of the input Yaml is known, it should be possible to get the SnakeYaml input filesize limit to match the size of the input file:
See: https://stackoverflow.com/questions/74805240/how-to-parse-large-yaml-file-in-java-or-kotlin
The text was updated successfully, but these errors were encountered: