Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge splitted tiles with land an sea vs Tiles 131/90 - java.lang.OutOfMemoryError #198

Closed
bappppp opened this issue Apr 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@bappppp
Copy link

bappppp commented Apr 10, 2023

Hello,

Thank for your dev, your project is very usefull.

Expected Behavior

No error :)

Current Behavior

Error with the tile 131/90 : "'Exception in thread "pool-2-thread-1" java.lang.OutOfMemoryError: GC overhead limit exceeded''"

Steps to Reproduce the Issue

My goal is to add some tags (drinking_water, bakery, picnic_table, toilets, & camp_site) directly in my bolt v2 (for a France's map). So i customize tags-to-keep.json and tag-wahoo.xml.
Next i launch the program : "python -m wahoomc cli -xy 131/90 -tag tag-wahoo.xml -v"
After some processing, i've an error.

Context

  • OS/Platform: Windows

Log Output / Stack Trace

INFO:--------------------------------------------------------------------------------
INFO:# Merge splitted tiles with land an sea
INFO:+ Coordinates: 131,90 (1 of 1)
DEBUG:--------------------------------------------------------------------------------
DEBUG:# Sorting land* osm files
DEBUG:subprocess:'avr. 10, 2023 10:50:13 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Osmosis Version 0.48.3'
DEBUG:subprocess:'avr. 10, 2023 10:50:13 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Preparing pipeline.'
DEBUG:subprocess:'avr. 10, 2023 10:50:13 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Launching pipeline execution.'
DEBUG:subprocess:'avr. 10, 2023 10:50:13 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Pipeline executing, waiting for completion.'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Pipeline complete.'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Total execution time: 749 milliseconds.'
DEBUG:+ Sorting land* osm files: OK
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Osmosis Version 0.48.3'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Preparing pipeline.'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.tagtransform.impl.TransformLoader parseTranslation'
DEBUG:subprocess:'INFOS: New translation: Adjust tunnel Layers'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Launching pipeline execution.'
DEBUG:subprocess:'avr. 10, 2023 10:50:14 AM org.openstreetmap.osmosis.core.Osmosis run'
DEBUG:subprocess:'INFOS: Pipeline executing, waiting for completion.'
DEBUG:subprocess:'Exception in thread "pool-2-thread-1" java.lang.OutOfMemoryError: GC overhead limit exceeded'
DEBUG:subprocess:'at org.openstreetmap.osmosis.core.domain.v0_6.TagCollectionImpl.<init>(TagCollectionImpl.java:27)'
DEBUG:subprocess:'at org.openstreetmap.osmosis.core.domain.v0_6.CommonEntityData.<init>(CommonEntityData.java:78)'
DEBUG:subprocess:'at org.openstreetmap.osmosis.core.domain.v0_6.CommonEntityData.<init>(CommonEntityData.java:56)'
DEBUG:subprocess:'at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfBlobDecoder.processNodes(PbfBlobDecoder.java:198)'
DEBUG:subprocess:'at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfBlobDecoder.processOsmPrimitives(PbfBlobDecoder.java:348)'
DEBUG:subprocess:'at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfBlobDecoder$$Lambda$3/1115071557.accept(Unknown Source)'
DEBUG:subprocess:'at java.util.Optional.ifPresent(Unknown Source)'

Thank for your helps, i can give you more informations if you need.
Or tell me, if i'm doing wrong :)

BR,

@bappppp bappppp added the bug Something isn't working label Apr 10, 2023
@bappppp
Copy link
Author

bappppp commented Apr 11, 2023

Hello,

Ok, my knowledge is too limited to understand. But i can fix this issue by lauching the command "set JAVACMD_OPTIONS=-server -Xmx2G" before your tool.

Thanks again for your tool. He is very usefull !

BR,

@bappppp bappppp closed this as completed Apr 11, 2023
@treee111 treee111 changed the title Merge splitted tiles with land an sea vs Tiles 131/90 Merge splitted tiles with land an sea vs Tiles 131/90 - java.lang.OutOfMemoryError Apr 26, 2023
@treee111
Copy link
Owner

Hi @bappppp,
nice that you found the solution by yourself! I didn't know that one can launch this command prior to execution of wahooMapsCreator.
I added this possibility to the FAQ: https://github.com/treee111/wahooMapsCreator/blob/develop/docs/FAQ.md#i-have-a-java-error-java-heap-space---out-of-memory

In 3. I have described a permanent soution, in both ways you could as well have -Xmx3G to allocate even more memory for java.

Thanks for your kind words, I am happy you use the tool! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants