MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"

Hi Gerd, Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg13038.html) but it couldn't help me. Please, can you give me a help to deal with this problem? I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args More specifically, I'm getting this error in the tile "94422861.osm.gz" Any help will be great. Thank you. Alexandre

Hi Alexandre, I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know. I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc. Maybe this is the reason. These names are also causing a long run time in the housenumber processing. Gerd Date: Wed, 4 Mar 2015 23:32:58 -0300 From: alexandre.loss@gmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0" Hi Gerd, Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS.I found an old discussion about this error (i.e: https://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg13038.html) but it couldn't help me. Please, can you give me a help to deal with this problem? I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar And this is the command used to run mkgmap:java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^--style-file=..\Ferramentas\mkgmap-style-tracksource ^-c TRC-SC.args More specifically, I'm getting this error in the tile "94422861.osm.gz" Any help will be great. Thank you. Alexandre _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Thanks Gerd! I'll try to do a test leaving this meaningless name out of the index. I mean, for example, don't include the tags mkgmap:address in the ways or something like that. Since I'm converting the osm files from gtm (Trackmaker) ones, I can filter this. Thanks, Alexandre (Enviado via iPad)
Em 05/03/2015, às 03:28, Gerd Petermann <gpetermann_muenchen@hotmail.com> escreveu:
Hi Alexandre,
I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know.
I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc.
Maybe this is the reason. These names are also causing a long run time in the housenumber processing.
Gerd
Date: Wed, 4 Mar 2015 23:32:58 -0300 From: alexandre.loss@gmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"
Hi Gerd,
Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg13038.html) but it couldn't help me.
Please, can you give me a help to deal with this problem?
I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar
And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args
More specifically, I'm getting this error in the tile "94422861.osm.gz"
Any help will be great.
Thank you.
Alexandre
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd and Steve, I removed all meaningless names from the index, removing all mkgmap tag regarding address from these ways. They left to be shown in the MapSource address searching tool. But error persists. Alexandre 2015-03-05 3:28 GMT-03:00 Gerd Petermann <gpetermann_muenchen@hotmail.com>:
Hi Alexandre,
I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know.
I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc.
Maybe this is the reason. These names are also causing a long run time in the housenumber processing.
Gerd
------------------------------ Date: Wed, 4 Mar 2015 23:32:58 -0300 From: alexandre.loss@gmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"
Hi Gerd,
Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg13038.html) but it couldn't help me.
Please, can you give me a help to deal with this problem?
I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar
And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args
More specifically, I'm getting this error in the tile "94422861.osm.gz"
Any help will be great.
Thank you.
Alexandre
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi guys, I think I found the problem! It seems incredible, but the problem had nothing to do with meaningless names or something like that. The problem was in the ordering of the "input-file" in the "args" file. *They need to be sorted in descending order of their size.* I came to this conclusion by experimentation. At least it worked for me. I don't know if it has any theoretical foundation, but I think it is important to share this with you. Thank you. Alexandre 2015-03-05 9:32 GMT-03:00 Alexandre Loss <alexandre.loss@gmail.com>:
Hi Gerd and Steve,
I removed all meaningless names from the index, removing all mkgmap tag regarding address from these ways. They left to be shown in the MapSource address searching tool. But error persists.
Alexandre
2015-03-05 3:28 GMT-03:00 Gerd Petermann <gpetermann_muenchen@hotmail.com> :
Hi Alexandre,
I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know.
I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc.
Maybe this is the reason. These names are also causing a long run time in the housenumber processing.
Gerd
------------------------------ Date: Wed, 4 Mar 2015 23:32:58 -0300 From: alexandre.loss@gmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"
Hi Gerd,
Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg13038.html) but it couldn't help me.
Please, can you give me a help to deal with this problem?
I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar
And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args
More specifically, I'm getting this error in the tile "94422861.osm.gz"
Any help will be great.
Thank you.
Alexandre
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Alexandre, I think the information is important, but your args file contains the max-jobs option, that means the order is also dependend on the number of processors. Don't know if Steve needs the info, baybe you can say the order that doesn't work and one that works (both without the max-jobs option) Gerd Alexandre Loss wrote
Hi guys,
I think I found the problem! It seems incredible, but the problem had nothing to do with meaningless names or something like that.
The problem was in the ordering of the "input-file" in the "args" file. *They need to be sorted in descending order of their size.*
I came to this conclusion by experimentation. At least it worked for me. I don't know if it has any theoretical foundation, but I think it is important to share this with you.
Thank you.
Alexandre
2015-03-05 9:32 GMT-03:00 Alexandre Loss <
alexandre.loss@
>:
Hi Gerd and Steve,
I removed all meaningless names from the index, removing all mkgmap tag regarding address from these ways. They left to be shown in the MapSource address searching tool. But error persists.
Alexandre
2015-03-05 3:28 GMT-03:00 Gerd Petermann <
gpetermann_muenchen@
>
:
Hi Alexandre,
I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know.
I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc.
Maybe this is the reason. These names are also causing a long run time in the housenumber processing.
Gerd
------------------------------ Date: Wed, 4 Mar 2015 23:32:58 -0300 From:
alexandre.loss@
To:
mkgmap-dev@.org
Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"
Hi Gerd,
Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/
mkgmap-dev@.org
/msg13038.html)
but it couldn't help me.
Please, can you give me a help to deal with this problem?
I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar
And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args
More specifically, I'm getting this error in the tile "94422861.osm.gz"
Any help will be great.
Thank you.
Alexandre
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/MapSource-error-MDR-TRIM-ADDR-CXX-347-6-16-3-... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Gerd, Any order produces a installable map for MapSource. However, depending of the order, this map should be or not installed into a GPS. Moreover, I tested the ascending order and it works too. Very strange. Alexandre 2015-03-05 14:27 GMT-03:00 GerdP <gpetermann_muenchen@hotmail.com>:
Hi Alexandre,
I think the information is important, but your args file contains the max-jobs option, that means the order is also dependend on the number of processors. Don't know if Steve needs the info, baybe you can say the order that doesn't work and one that works (both without the max-jobs option)
Gerd
Alexandre Loss wrote
Hi guys,
I think I found the problem! It seems incredible, but the problem had nothing to do with meaningless names or something like that.
The problem was in the ordering of the "input-file" in the "args" file. *They need to be sorted in descending order of their size.*
I came to this conclusion by experimentation. At least it worked for me. I don't know if it has any theoretical foundation, but I think it is important to share this with you.
Thank you.
Alexandre
2015-03-05 9:32 GMT-03:00 Alexandre Loss <
alexandre.loss@
:
Hi Gerd and Steve,
I removed all meaningless names from the index, removing all mkgmap tag regarding address from these ways. They left to be shown in the MapSource address searching tool. But error persists.
Alexandre
2015-03-05 3:28 GMT-03:00 Gerd Petermann <
gpetermann_muenchen@
:
Hi Alexandre,
I think the message means that mkgmap has created an index that is not valid, probably because a limit was reached that mkgmap doesn't know.
I noticed that your data contains a lot of highways with rather meaningless names like "TERRA", "RUA","ESTRADA MUNICIPAL" etc.
Maybe this is the reason. These names are also causing a long run time in the housenumber processing.
Gerd
------------------------------ Date: Wed, 4 Mar 2015 23:32:58 -0300 From:
alexandre.loss@
To:
mkgmap-dev@.org
Subject: [mkgmap-dev] MapSource error: "MDR_TRIM_ADDR.CXX-347-6.16.3.0"
Hi Gerd,
Some of the tiles that I compiled with mkgmap are throw a MapSource error "MDR_TRIM_ADDR.CXX-347-6.16.3.0" when I'm trying to send the map to GPS. I found an old discussion about this error (i.e: https://www.mail-archive.com/
mkgmap-dev@.org
/msg13038.html)
but it couldn't help me.
Please, can you give me a help to deal with this problem?
I uploaded the files at http://files.mkgmap.org.uk/download/258/trc.zip and this is my styles: http://files.mkgmap.org.uk/download/259/mkgmap-style-tracksource.rar
And this is the command used to run mkgmap: java -Xmx4096m -XX:+UseConcMarkSweepGC -jar ..\Ferramentas\mkgmap.jar ^ --style-file=..\Ferramentas\mkgmap-style-tracksource ^ -c TRC-SC.args
More specifically, I'm getting this error in the tile "94422861.osm.gz"
Any help will be great.
Thank you.
Alexandre
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/MapSource-error-MDR-TRIM-ADDR-CXX-347-6-16-3-... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On 05/03/15 16:50, Alexandre Loss wrote:
The problem was in the ordering of the "input-file" in the "args" file. *They need to be sorted in descending order of their size.*
OK that is helpful - but the order is actually by map number not by size. Happens to be the same thing by coincidence in this case :) It is the mapnumber that is recorded inside the file, not the name of the file itself that matter, although that is the usually the same thing for mkgmap produced maps. I did add code so that it didn't matter what order they were given but recently I found a case where it didn't seem to work and I guess that this now confirms it. The last fix was in r3211. I'm not sure if it is possible to fix it properly or if we are just going to have to give an error if it is wrong. ..Steve

Hi Steve, Give an error if it is wrong should be a good solution, better than allow install and get a error in MapSource. Anyway, your information was very useful. But the must interesting thing is that the order can be ascending or descending. Do you confirm that the order doesn't matter since it is ordered? Thanks 2015-03-05 19:59 GMT-03:00 Steve Ratcliffe <steve@parabola.me.uk>:
On 05/03/15 16:50, Alexandre Loss wrote:
The problem was in the ordering of the "input-file" in the "args" file. *They need to be sorted in descending order of their size.*
OK that is helpful - but the order is actually by map number not by size.
Happens to be the same thing by coincidence in this case :)
It is the mapnumber that is recorded inside the file, not the name of the file itself that matter, although that is the usually the same thing for mkgmap produced maps.
I did add code so that it didn't matter what order they were given but recently I found a case where it didn't seem to work and I guess that this now confirms it. The last fix was in r3211.
I'm not sure if it is possible to fix it properly or if we are just going to have to give an error if it is wrong.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi
But the must interesting thing is that the order can be ascending or descending. Do you confirm that the order doesn't matter since it is ordered?
The maps in the MDR1 section must be in ascending order of map number. Mkgmap always sorts them into ascending order and then tries to renumber all the references to the map tile to match. This sometimes (or always) fails and is a bug. I don't know what the bug is, so I suppose that if they are originally sorted in decending order then it will happen to work. ..Steve

Ok Steve, However this isn't a serious problem. Since we know the rules, it's just a matter of apply it. Maybe a simple note in the mkgmap documentation is enough to handle of this problem. I mean, this can be treat as a rule than a error. Thank you again by your prompt support and have a nice weekend. Alexandre (Enviado via iPad)
Em 06/03/2015, às 07:37, Steve Ratcliffe <steve@parabola.me.uk> escreveu:
Hi
But the must interesting thing is that the order can be ascending or descending. Do you confirm that the order doesn't matter since it is ordered?
The maps in the MDR1 section must be in ascending order of map number.
Mkgmap always sorts them into ascending order and then tries to renumber all the references to the map tile to match. This sometimes (or always) fails and is a bug. I don't know what the bug is, so I suppose that if they are originally sorted in decending order then it will happen to work.
..Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (4)
-
Alexandre Loss
-
Gerd Petermann
-
GerdP
-
Steve Ratcliffe