I have changed -Xmx to 4096M but now I have another exception
INFO: Read 59 subtrees. Go through 115 subtrees.
Aug 02, 2016 12:59:13 AM net.osmand.swing.ExceptionHandler handle
SEVERE: Error in thread main
java.lang.NullPointerException
at
net.osmand.binary.CachedOsmandIndexes.writeToFile(CachedOsmandIndexes.java:326)
at net.osmand.swing.OsmExtractionUI.createUI(OsmExtractionUI.java:229)
at net.osmand.swing.OsmExtractionUI.<init>(OsmExtractionUI.java:164)
at net.osmand.swing.OsmExtractionUI.main(OsmExtractionUI.java:126)
java.lang.NullPointerException
at
net.osmand.binary.CachedOsmandIndexes.writeToFile(CachedOsmandIndexes.java:326)
at net.osmand.swing.OsmExtractionUI.createUI(OsmExtractionUI.java:229)
at net.osmand.swing.OsmExtractionUI.<init>(OsmExtractionUI.java:164)
at net.osmand.swing.OsmExtractionUI.main(OsmExtractionUI.java:126)
суббота, 30 июля 2016 г., 20:24:07 UTC+3 пользователь Harry van der Wolf
написал:
>
> I see that the UA.osm.pbf file is 364MB
> It will certainly not work with your max memory setting of 1024MB.
>
> A 364MB osm.pbf needs about 6-8x that amount of memory, which is 2.5-3GB.
> So please change your shell script and try again with the -Xmx4096M
> setting instead of the -Xmx1024M
>
> Harry
>
> 2016-07-29 23:39 GMT+02:00 Alex Gotviansky <[email protected] <javascript:>
> >:
>
>> I downloaded this pbf
>> http://data.gis-lab.info/osm_dump/dump/latest/UA.osm.pbf
>> Yes, it can be converted to .osm file which has around 9GB size.
>> OsmAndMapCreator version is today's latest night build -
>> http://download.osmand.net/latest-night-build/OsmAndMapCreator-main.zip
>>
>> >>It obviously crashes on the POIs. What kind of POIs?
>> I don't know. It's only my country dump.
>>
>> Maybe this info will help you.
>>
>> суббота, 30 июля 2016 г., 0:03:26 UTC+3 пользователь Harry van der Wolf
>> написал:
>>>
>>> What kind of osm.pbf file?
>>> How was it created? Where does it come from?
>>> Can you convert it with osmconvert to straight .osm or .o5m?
>>> Which version of OsmAndMapCreator?
>>> Try to allocate 4GB or so instead of 1GB -> -Xmx4096M
>>> It obviously crashes on the POIs. What kind of POIs?
>>>
>>> You give very little information.
>>>
>>> Harry
>>>
>>> 2016-07-29 21:28 GMT+02:00 Alex Gotviansky <[email protected]>:
>>>
>>>> I have pbf file which I want to convert to obf file.
>>>>
>>>> I create batch.xml file with settings and try to run
>>>> ./OsmAndMapCreator.sh
>>>> java -Djava.util.logging.config.file=logging.properties -Xms256M
>>>> -Xmx1024M -cp
>>>> "./OsmAndMapCreator.jar:./lib/OsmAnd-core.jar:./lib/*.jar;./lib-gl/*.jar"
>>>> net.osmand.swing.OsmExtractionUI
>>>>
>>>> but after short output osmandmapcreator fails with
>>>>
>>>> algot@algot-16:~/mapbuild/osmandmapcreator$
>>>> ./OsmAndMapCreator.sh
>>>> Jul 29, 2016 10:18:46 PM net.osmand.osm.MapPoiTypes init
>>>> INFO: Time to init poi types 25
>>>> Jul 29, 2016 10:18:46 PM net.osmand.binary.BinaryMapIndexReader
>>>> searchMapIndex
>>>> INFO: Search is done. Visit 2235 objects. Read 2235 objects.
>>>> Jul 29, 2016 10:18:46 PM net.osmand.binary.BinaryMapIndexReader
>>>> searchMapIndex
>>>> INFO: Read 59 subtrees. Go through 115 subtrees.
>>>> Jul 29, 2016 10:18:46 PM net.osmand.swing.ExceptionHandler handle
>>>> SEVERE: Error in thread main
>>>> com.google.protobuf.UninitializedMessageException: Message was missing
>>>> required fields. (Lite runtime could not determine which fields were
>>>> missing).
>>>> at
>>>> com.google.protobuf.AbstractMessageLite$Builder.newUninitializedMessageException(AbstractMessageLite.java:306)
>>>> at
>>>> net.osmand.binary.OsmandIndex$OsmAndStoredIndex$Builder.build(OsmandIndex.java:215)
>>>> at
>>>> net.osmand.binary.CachedOsmandIndexes.readFromFile(CachedOsmandIndexes.java:311)
>>>> at
>>>> net.osmand.swing.OsmExtractionUI.createUI(OsmExtractionUI.java:210)
>>>> at net.osmand.swing.OsmExtractionUI.<init>(OsmExtractionUI.java:164)
>>>> at net.osmand.swing.OsmExtractionUI.main(OsmExtractionUI.java:126)
>>>>
>>>> What can be wrong with osmandmapcreator?
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Osmand" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Osmand" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.