GC overhead limit exceeded

98 views
Skip to first unread message

coronajet

unread,
Jan 12, 2017, 6:28:04 AM1/12/17
to mapsforge-dev
Hi,

I am trying to run https://github.com/mapsforge/vtm as as standalone version on my PC under Fedora 25, 
as I was able to do with https://github.com/opensciencemap/vtm

Unfortunately I always get a GC overhead limit error:

:vtm-web-app:compileGwt
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at org.eclipse.jdt.internal.compiler.lookup.MethodScope.<init>(MethodScope.java:66)
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildMethods(ClassScope.java:348)
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.buildFieldsAndMethods(ClassScope.java:183)
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:87)
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:246)
        at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:837)

I have only 8GB of RAM , maybe this is the error. I read a lot about setting type=hd,
where can I do this in my local /mapsforge/vtm repo ?


Another question I have, is, how to improve the display quality of VTM. I have seen in the online version
than in my old local opensciencemap/vtm repo, when I run 

./gradlew :vtm-web-app:jettyDraftWar  at  http://localhost:8080/vtm-web-app

How can I set the configuration , so that I can see roofs, domes and colours in VTM ?

Another question is, if mapsforge/vtm is really what I need, or if I could still be happy with opensciencemap/vtm,
because the decisive factor for me is speed. We are running VTM in a tracking app, and 3D display of VTM is pretty slow,
even without buildings.

Which flavor is better for me , opensciencemap/vtm or mapsforge/vtm ?

Thanks a lot ;) 

Emux

unread,
Jan 12, 2017, 7:01:10 AM1/12/17
to mapsfo...@googlegroups.com
opensciencemap/vtm is the original project (see also announcement at its main page).

We created the fork some months ago in mapsforge/vtm where its development continues now.
Since then a vast amount of new features, improvements and fixes has been implemented (have a look at changelog).

The VTM web modules were enabled recently.
Unfortunately the vtm-web-app after the latest update to libGDX 1.9.5 (see #270) fails to start (with the exception you mention).
I don't think RAM is such an issue, as with libGDX 1.9.4 the vtm-web-app worked fine.

Regarding the "type=hd" option, that's a Mapsforge map-writer parameter and unrelated with VTM.

What platform you're using VTM (Android, iOS, Desktop, Browser) ?
And which maps are you interested, online vector tiles or offline Mapsforge maps?

Note: online .vtm vector tiles contain more height data for buildings, so comes the detailed rendering.
Whereas .map files don't, so the building height is common for all.

--
Message has been deleted

coronajet

unread,
Jan 12, 2017, 9:24:49 AM1/12/17
to mapsforge-dev


Hi,



do you think, you will publish a bugfix for the mentioned in  #270 in some days ? Or is there a quickfix like just a rollback to libGDX 1.9.4 possible ?


Our app is a GPS tracking application and written in Java, so VTM could do the job like    ./gradlew :vtm-desktop:run     does.
But we have also an Android application, where  something like ./gradlew :vtm-android:run   will do the job.

And in the future we are supposed to show our whole app functionality in the browser, where we will need something like  ./gradlew :vtm-web-app:jettyDraftWar 
.
We have more or less the need for a European, if not global coverage, so I hope the opensciencemap .vtm tiles will suit our needs.

But I still don't understand, why the Cruiser GL and http://opensciencemap.org/map shows up sloping roofs, church domes and coulored buildings, while
my local VTM app doesn't show anything like that, although they seem to use the same .vtm tiles.



             

So for implementing the VTM files into our app, it would be great to know , how to improve the graphics quality.

Thx ;)

Emux

unread,
Jan 12, 2017, 9:45:25 AM1/12/17
to mapsfo...@googlegroups.com
On 12/01/2017 04:05 μμ, coronajet wrote:
do you think, you will publish a fix  for the mentioned in  #270 in some days ? Or is there a quickfix like just a rollback to libGDX 1.9.4 possible ?

I hadn't the time yet to search for why the vtm-web-app stopped working..
libGDX 1.9.4 used to work, if you want to try it locally.


We have more or less the need for a European, if not global coverage, so I hope the opensciencemap .vtm tiles will suit our needs.

OpenScienceMap being a free server needs proper handling, specially if there are commercial uses.

Lately we support also Mapbox vector tiles (via Mapzen), see #57 for details.
You can find related examples in vtm-android-example and vtm-playground samples.


But I still don't understand, why the Cruiser GL and http://opensciencemap.org/map shows up sloping roofs, church domes and coulored buildings, while
my local VTM app doesn't show anything like that, although they seem to use the same .vtm tiles.

The base .vtm tiles are the same.
But there are also additional building data coming in form of s3db containing the extra info.
See examples for Android, Desktop and Web.

--
Emux
Reply all
Reply to author
Forward
0 new messages