Select to view content in your preferred language

OutOfMemoryError just using MGRS grid

4431
1
Jump to solution
04-04-2016 08:43 AM
jeromegaboriau
Deactivated User

Hi everyone,

I am encountering a problem using the MGRS military grid of the JMap.

Each time I change the visibility of this grid, the memory allowed to the JVM process increases until the JVM crash saying "OutOfMemoryError".

Here is attached a sample project, with a unit test setup to show/hide the MGRS grid every seconds and reproduces the problem.

We can see at runtime (using default windows process manager) that memory allocated to the JVM process increase, until it crashes.

The bug has been discovered on Windows XP 32 bits, and has been reproduced on Windows Seven 32 bits using ArcGIS runtime 10.2.3 and Java8u45.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
jeromegaboriau
Deactivated User

Hi again,

After contacting ESRI support, it appears there is a technical issue in ArcGIS Runtime for Java, leading to a memory leak when changing the type of the grid using "setType()".

For people only interested in showing/hiding a given grid, they may define the type only once, then use the #setVisibility method.

Regards,

Pierre.

View solution in original post

1 Reply
jeromegaboriau
Deactivated User

Hi again,

After contacting ESRI support, it appears there is a technical issue in ArcGIS Runtime for Java, leading to a memory leak when changing the type of the grid using "setType()".

For people only interested in showing/hiding a given grid, they may define the type only once, then use the #setVisibility method.

Regards,

Pierre.