r4836 stops Hungary & Romania

Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt

Hi Arndt, please check if the problem is fixed with r4837. If yes, your style must somehow create labels with lots of (170 or more) leading blanks. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 11:35 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, Oh, I'm just noticing, that tile 18/22 is missing (hungary). I test romania and see, that tile 10/50 is missing. The ovm tiles has 0 byte. Mkgmap version 4836 Time started: Mon Dec 27 11:28:17 CET 2021 _ This is the last see and nothing happens. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> hat am 27.12.2021 10:57 geschrieben: Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt, what's the reason for the empty/missing tiles? There must be an error message (in the log?) or a traceback Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 12:03 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, unfortunately the same result with r4837. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> hat am 27.12.2021 11:47 geschrieben: Hi Arndt, please check if the problem is fixed with r4837. If yes, your style must somehow create labels with lots of (170 or more) leading blanks. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> Gesendet: Montag, 27. Dezember 2021 11:35 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, Oh, I'm just noticing, that tile 18/22 is missing (hungary). I test romania and see, that tile 10/50 is missing. The ovm tiles has 0 byte. Mkgmap version 4836 Time started: Mon Dec 27 11:28:17 CET 2021 _ This is the last see and nothing happens. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>> hat am 27.12.2021 10:57 geschrieben: Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt, I see that you redirect the output to nul. Try to remove that to get more info Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 14:11 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, there is a problem with the names in the points file. If i set {set mkgmap:label:1='${name}'} instead of {set mkgmap:label:1='${SpeicheName}'} it works. SpeicheName includes something like that: parking=* {set SpeicheName='${SpeicheName} ${parking}' | '${parking}'} capacity=* {set SpeicheName='${SpeicheName} cap:${capacity}' | 'cap:${capacity}'} population=* {set SpeicheName='${SpeicheName} population:${population}' | 'population:${population}'} operator=* {set SpeicheName='${SpeicheName} ${operator}' | '${operator}'} brand=* {set SpeicheName='${SpeicheName} ${brand}' | '${brand}'} sport=* {set SpeicheName='${SpeicheName} ${sport}' | '${sport}'} and many other tags. In hungary & romania is that a problem. But what problem? r4827 works, 4837 not. Greetzs Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> hat am 27.12.2021 13:22 geschrieben: Hi Arndt, what's the reason for the empty/missing tiles? There must be an error message (in the log?) or a traceback Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> Gesendet: Montag, 27. Dezember 2021 12:03 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, unfortunately the same result with r4837. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>> hat am 27.12.2021 11:47 geschrieben: Hi Arndt, please check if the problem is fixed with r4837. If yes, your style must somehow create labels with lots of (170 or more) leading blanks. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>> Gesendet: Montag, 27. Dezember 2021 11:35 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, Oh, I'm just noticing, that tile 18/22 is missing (hungary). I test romania and see, that tile 10/50 is missing. The ovm tiles has 0 byte. Mkgmap version 4836 Time started: Mon Dec 27 11:28:17 CET 2021 _ This is the last see and nothing happens. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>> hat am 27.12.2021 10:57 geschrieben: Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt, cannot reproduce the problem. Please upload the tile that causes trouble to https://files.mkgmap.org.uk/ Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 16:17 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, i put this to the points file from the default style: inscription=* {set name='TEST ${inscription|substring:0:30}'} mkgmap doesn´t work. Greetz Arndt Arndt Röhrig <arndt@speichenkarte.de> hat am 27.12.2021 16:00 geschrieben: Hi Gerd, i try to remove this in the points file: inscription=* {set SpeicheName='${SpeicheName} ${inscription}' | '${inscription}'} mkgmap works! After that i try this: inscription=* {set SpeicheName='${SpeicheName} ${inscription|substring:0:30}' | '${inscription|substring:0:30}'} The result is, that more tiles will not work. Something in the tag "inscription" ,in hungary and romania, confuses mkgmap and the substring function. Greetz Arndt Arndt Röhrig <arndt@speichenkarte.de> hat am 27.12.2021 15:08 geschrieben: Hi Gerd,
nul is removed, but nothing happens.
i try this in the points file: {set mkgmap:label:1='${SpeicheName|substring:0:169}'} The result is, that more tiles will not work. Also 4827 doesn´t work with this. Very confusing? Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> hat am 27.12.2021 14:20 geschrieben: Hi Arndt, I see that you redirect the output to nul. Try to remove that to get more info Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> Gesendet: Montag, 27. Dezember 2021 14:11 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, there is a problem with the names in the points file. If i set {set mkgmap:label:1='${name}'} instead of {set mkgmap:label:1='${SpeicheName}'} it works. SpeicheName includes something like that: parking=* {set SpeicheName='${SpeicheName} ${parking}' | '${parking}'} capacity=* {set SpeicheName='${SpeicheName} cap:${capacity}' | 'cap:${capacity}'} population=* {set SpeicheName='${SpeicheName} population:${population}' | 'population:${population}'} operator=* {set SpeicheName='${SpeicheName} ${operator}' | '${operator}'} brand=* {set SpeicheName='${SpeicheName} ${brand}' | '${brand}'} sport=* {set SpeicheName='${SpeicheName} ${sport}' | '${sport}'} and many other tags. In hungary & romania is that a problem. But what problem? r4827 works, 4837 not. Greetzs Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>> hat am 27.12.2021 13:22 geschrieben: Hi Arndt, what's the reason for the empty/missing tiles? There must be an error message (in the log?) or a traceback Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>> Gesendet: Montag, 27. Dezember 2021 12:03 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, unfortunately the same result with r4837. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>> hat am 27.12.2021 11:47 geschrieben: Hi Arndt, please check if the problem is fixed with r4837. If yes, your style must somehow create labels with lots of (170 or more) leading blanks. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>> Gesendet: Montag, 27. Dezember 2021 11:35 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, Oh, I'm just noticing, that tile 18/22 is missing (hungary). I test romania and see, that tile 10/50 is missing. The ovm tiles has 0 byte. Mkgmap version 4836 Time started: Mon Dec 27 11:28:17 CET 2021 _ This is the last see and nothing happens. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>>> hat am 27.12.2021 10:57 geschrieben: Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>>> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt, I see no problems. I added the line inscription=* {set name='TEST ${inscription|substring:0:30}'} at the top of the points file and used java -jar dist\mkgmap.jar --style-file=d:\mkgmap\resources\styles\default --add-pois-to-areas f:\dwnload\temp\79320018.osm.pbf No crash, maps looks OK. Where do you add the line? What options are neded to reproduce the error? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de> Gesendet: Montag, 27. Dezember 2021 16:43 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, i did it. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> hat am 27.12.2021 16:29 geschrieben: Hi Arndt, cannot reproduce the problem. Please upload the tile that causes trouble to https://files.mkgmap.org.uk/ Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> Gesendet: Montag, 27. Dezember 2021 16:17 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, i put this to the points file from the default style: inscription=* {set name='TEST ${inscription|substring:0:30}'} mkgmap doesn´t work. Greetz Arndt Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> hat am 27.12.2021 16:00 geschrieben: Hi Gerd, i try to remove this in the points file: inscription=* {set SpeicheName='${SpeicheName} ${inscription}' | '${inscription}'} mkgmap works! After that i try this: inscription=* {set SpeicheName='${SpeicheName} ${inscription|substring:0:30}' | '${inscription|substring:0:30}'} The result is, that more tiles will not work. Something in the tag "inscription" ,in hungary and romania, confuses mkgmap and the substring function. Greetz Arndt Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>> hat am 27.12.2021 15:08 geschrieben: Hi Gerd, nul is removed, but nothing happens. i try this in the points file: {set mkgmap:label:1='${SpeicheName|substring:0:169}'} The result is, that more tiles will not work. Also 4827 doesn´t work with this. Very confusing? Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>> hat am 27.12.2021 14:20 geschrieben: Hi Arndt, I see that you redirect the output to nul. Try to remove that to get more info Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>> Gesendet: Montag, 27. Dezember 2021 14:11 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, there is a problem with the names in the points file. If i set {set mkgmap:label:1='${name}'} instead of {set mkgmap:label:1='${SpeicheName}'} it works. SpeicheName includes something like that: parking=* {set SpeicheName='${SpeicheName} ${parking}' | '${parking}'} capacity=* {set SpeicheName='${SpeicheName} cap:${capacity}' | 'cap:${capacity}'} population=* {set SpeicheName='${SpeicheName} population:${population}' | 'population:${population}'} operator=* {set SpeicheName='${SpeicheName} ${operator}' | '${operator}'} brand=* {set SpeicheName='${SpeicheName} ${brand}' | '${brand}'} sport=* {set SpeicheName='${SpeicheName} ${sport}' | '${sport}'} and many other tags. In hungary & romania is that a problem. But what problem? r4827 works, 4837 not. Greetzs Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>> hat am 27.12.2021 13:22 geschrieben: Hi Arndt, what's the reason for the empty/missing tiles? There must be an error message (in the log?) or a traceback Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>> Gesendet: Montag, 27. Dezember 2021 12:03 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, unfortunately the same result with r4837. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>>> hat am 27.12.2021 11:47 geschrieben: Hi Arndt, please check if the problem is fixed with r4837. If yes, your style must somehow create labels with lots of (170 or more) leading blanks. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>>> Gesendet: Montag, 27. Dezember 2021 11:35 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd, Oh, I'm just noticing, that tile 18/22 is missing (hungary). I test romania and see, that tile 10/50 is missing. The ovm tiles has 0 byte. Mkgmap version 4836 Time started: Mon Dec 27 11:28:17 CET 2021 _ This is the last see and nothing happens. Greetz Arndt Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>>>>> hat am 27.12.2021 10:57 geschrieben: Hi Arndt, I don't see how the changes between r4827 and r4836 could cause a silent stop. I'd expect a crash while calculating the tiles when your style produces a label starting with 170 or more blanks or or a message "MDR sub file is too large" if the global index gets too large. What exactly happens when "mkgmap stops without any reaction"? What is it supposed to do? Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>>>>> im Auftrag von Arndt Röhrig <arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de><mailto:arndt@speichenkarte.de<mailto:arndt@speichenkarte.de>>>>>> Gesendet: Montag, 27. Dezember 2021 10:40 An: Development list for mkgmap Betreff: [mkgmap-dev] r4836 stops Hungary & Romania I wish you had a merry christmas! There is a problem with my style (speichenkarte) and r4836. mkgmap stops without any reaction after building the tiles from hungary and romania. All other countrys works well. If i use r4827 mkgmap works. r4836 and the default style hungary and romania works. Have you any idea, what can i change in the style? Greetz Arndt _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Looks like uft16 surrogate pair chars are being separated by the substr. Ticker On Mon, 2021-12-27 at 19:28 +0100, Arndt Röhrig wrote:
...mayby is in the osm data a kryptic text like this: https://www.openstreetmap.org/node/9115233473

Hi all, I was able to reproduce with option --latin1 and the modified default style. The offending node seems to be https://www.openstreetmap.org/node/9122388694 mkgmap loops in method AnyCharsetEncoder.encodeText(String text) I guess the same can happen when labels are cut at length 170. The attached patch seems to fix this, but I have no idea if this is the right approach. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 27. Dezember 2021 20:06 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Looks like uft16 surrogate pair chars are being separated by the substr. Ticker On Mon, 2021-12-27 at 19:28 +0100, Arndt Röhrig wrote:
...mayby is in the osm data a kryptic text like this:
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd This fix is reasonable in the short term but has some problems: If the invalid UTF16 string is output by other means (eg diagnostics), it could cause a (more conventional) crash - but probably not looping. Anything concatenated onto this string will be lost - this could be fixed by initialising the encoder with onMalformedInput(CodingErrorAction.IGNORE); instead of catching the error. The full fix would required looking at all substr and character indexing operations on string data from OSM tags and using Character.is[High/Low/]Surrogate() or similar logic and adjusting the start/end char index or whatever Ticker On Tue, 2021-12-28 at 07:23 +0000, Gerd Petermann wrote:
Hi all,
I was able to reproduce with option --latin1 and the modified default style.
The offending node seems to be https://www.openstreetmap.org/node/9122388694
mkgmap loops in method AnyCharsetEncoder.encodeText(String text) I guess the same can happen when labels are cut at length 170.
The attached patch seems to fix this, but I have no idea if this is the right approach.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 27. Dezember 2021 20:06 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania
Looks like uft16 surrogate pair chars are being separated by the substr.
Ticker
On Mon, 2021-12-27 at 19:28 +0100, Arndt Röhrig wrote:
...mayby is in the osm data a kryptic text like this:
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Ticker, okay, maybe you find time to implement a better solution. I've committed the patch with r4838. @Arndt: Please check if this solves the problems with your maps. Not sure about this because you said mkgmap stops without any reaction while this problem was a loop. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Dienstag, 28. Dezember 2021 13:20 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd This fix is reasonable in the short term but has some problems: If the invalid UTF16 string is output by other means (eg diagnostics), it could cause a (more conventional) crash - but probably not looping. Anything concatenated onto this string will be lost - this could be fixed by initialising the encoder with onMalformedInput(CodingErrorAction.IGNORE); instead of catching the error. The full fix would required looking at all substr and character indexing operations on string data from OSM tags and using Character.is[High/Low/]Surrogate() or similar logic and adjusting the start/end char index or whatever Ticker On Tue, 2021-12-28 at 07:23 +0000, Gerd Petermann wrote:
Hi all,
I was able to reproduce with option --latin1 and the modified default style.
The offending node seems to be https://www.openstreetmap.org/node/9122388694
mkgmap loops in method AnyCharsetEncoder.encodeText(String text) I guess the same can happen when labels are cut at length 170.
The attached patch seems to fix this, but I have no idea if this is the right approach.
Gerd
________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Montag, 27. Dezember 2021 20:06 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania
Looks like uft16 surrogate pair chars are being separated by the substr.
Ticker
On Mon, 2021-12-27 at 19:28 +0100, Arndt Röhrig wrote:
...mayby is in the osm data a kryptic text like this:
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Arndt As a matter of interest, does any text show for https://www.openstreetmap.org/node/9122388694 or https://www.openstreetmap.org/node/9115233473 The text is mostly 'Old Hungarian' and I wonder if the java encoder tries any transliteration. What code-page are you using? Ticker On Tue, 2021-12-28 at 16:51 +0100, Arndt Röhrig wrote:
Hi Gerd, Hungary and Romania work just fine. Thank you for your quick and uncomplicated help! Arndt

Hi Gerd I'll look at this sometime. I while ago I found something in one of the MDR sections (probably the short strings) that handled something like this. Ticker On Tue, 2021-12-28 at 13:22 +0000, Gerd Petermann wrote:
Hi Ticker,
okay, maybe you find time to implement a better solution. I've committed the patch with r4838.
@Arndt: Please check if this solves the problems with your maps. Not sure about this because you said mkgmap stops without any reaction while this problem was a loop.
Gerd

Hi Gerd Patch attached that handles UTF16 surrogate pairs so that mkgmap style filters substring and highway-shield give correct results, the LBL trimming leaves the correct amount and neither end up with 1/2 a character. I've looked through all the substring operations and I don't think any others will cause problems. There might just be a few str.length() and str.charAt() or other indexing that might need attention but this would require a lot more searching. I've left the handling for MALFORMED_INPUT so these shouldn't matter. Ticker On Wed, 2021-12-29 at 09:16 +0000, Ticker Berkin wrote:
Hi Gerd
I'll look at this sometime. I while ago I found something in one of the MDR sections (probably the short strings) that handled something like this.
Ticker
On Tue, 2021-12-28 at 13:22 +0000, Gerd Petermann wrote:
Hi Ticker,
okay, maybe you find time to implement a better solution. I've committed the patch with r4838.
@Arndt: Please check if this solves the problems with your maps. Not sure about this because you said mkgmap stops without any reaction while this problem was a loop.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Ticker, please check. Your patch contains U+200B "ZERO WIDTH SPACE" characters which confuse my Eclipse installation. You probably created them while experimenting with the surrogates? I'll commit the modified patch. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Donnerstag, 30. Dezember 2021 14:53 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd Patch attached that handles UTF16 surrogate pairs so that mkgmap style filters substring and highway-shield give correct results, the LBL trimming leaves the correct amount and neither end up with 1/2 a character. I've looked through all the substring operations and I don't think any others will cause problems. There might just be a few str.length() and str.charAt() or other indexing that might need attention but this would require a lot more searching. I've left the handling for MALFORMED_INPUT so these shouldn't matter. Ticker On Wed, 2021-12-29 at 09:16 +0000, Ticker Berkin wrote:
Hi Gerd
I'll look at this sometime. I while ago I found something in one of the MDR sections (probably the short strings) that handled something like this.
Ticker
On Tue, 2021-12-28 at 13:22 +0000, Gerd Petermann wrote:
Hi Ticker,
okay, maybe you find time to implement a better solution. I've committed the patch with r4838.
@Arndt: Please check if this solves the problems with your maps. Not sure about this because you said mkgmap stops without any reaction while this problem was a loop.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd Sorry about that - had been copy&pasting strange chars but it wasn't from here! The Oracle java documentation has this character between: int offsetByCodePoints and (int index, int codePointOffset) Ticker On Thu, 2021-12-30 at 15:26 +0000, Gerd Petermann wrote:
Hi Ticker,
please check. Your patch contains U+200B "ZERO WIDTH SPACE" characters which confuse my Eclipse installation. You probably created them while experimenting with the surrogates?
I'll commit the modified patch.
Gerd

Hi Ticker, ah, ok, that explains it :) Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk> Gesendet: Donnerstag, 30. Dezember 2021 19:29 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] r4836 stops Hungary & Romania Hi Gerd Sorry about that - had been copy&pasting strange chars but it wasn't from here! The Oracle java documentation has this character between: int offsetByCodePoints and (int index, int codePointOffset) Ticker On Thu, 2021-12-30 at 15:26 +0000, Gerd Petermann wrote:
Hi Ticker,
please check. Your patch contains U+200B "ZERO WIDTH SPACE" characters which confuse my Eclipse installation. You probably created them while experimenting with the surrogates?
I'll commit the modified patch.
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Arndt Röhrig
-
Gerd Petermann
-
Ticker Berkin